11b41d73b48d46b7725bb97d4b85158d8bc2acfb
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
Team and repository tags
Welcome!
To learn more about neutron:
- Documentation: https://docs.openstack.org
- Features: https://specs.openstack.org/openstack/neutron-specs
- Defects: https://launchpad.net/neutron
Get in touch via email. Use [Neutron] in your subject.
To learn how to contribute:
CONTRIBUTING.rst
Languages
Python
99.6%
Shell
0.4%