Slawek Kaplonski 11b41d73b4 [Fullstack] Wait for SG to be applied by L2 agent
In fullstack test_securitygroup there were used simple
net_helpers.assert_ping() and assert_not_ping() functions
which tries to ping IP address 3 times with some short timeout
and test fails if result of ping will not be as expected.

Unfortunately sometimes in fullstack tests it might be not enough
if test is creating new SG or SG rule or apply SG to port and
just after that checks connection because L2 agent don't have
enough time to apply all rules on "host".
This patch changes it to use block_until_ping() and
block_until_no_ping() methods from FakeMachine fixture.
It will also check if ping is possible/not possible but
will try to check it for 1 minute before fails.

Similar change is also done for methods which checks TCP
connectivity using netcat helper class. It now uses
common_utils.wait_until_true() helper function instead of
fail immediatelly.

Change-Id: I9e523d803e3c49d5d090ae5b9d36d43ce7311535
Closes-Bug: #1774006
Closes-Bug: #1767829
2018-06-06 13:39:45 +00:00
2016-06-28 22:46:19 +02:00
2018-05-10 10:07:39 +00:00
2016-10-17 17:06:19 +05:30
2014-05-16 13:40:04 -04:00
2017-06-13 19:26:49 +00:00
2017-08-31 16:44:51 +02:00
2017-08-03 09:47:25 +08:00
2017-03-04 11:19:58 +00:00
2018-05-05 02:26:21 +00:00

Team and repository tags

image

Welcome!

To learn more about neutron:

Get in touch via email. Use [Neutron] in your subject.

To learn how to contribute:

CONTRIBUTING.rst

S
Description
OpenStack Networking (Neutron)
Readme
1.1 GiB
Languages
Python 99.6%
Shell 0.4%