neutron/neutron/tests/functional/agent/l3
Slawek Kaplonski bed8c6d580 [Functional] Fix expected number of the enqueue_state_change calls
In the HA router's keepalived state change monitor tests, it was
expected that enqueue_state_change method will be called 3 or 4 times.
But after some changes in the keepalived_state_change monitor which were
done some time ago, it may be now that it will be called just 2 or 3
times:
- 2 when initial status will be "primary" and it will be just
  transition to "backup",
- 3 when initial status will be "backup", then it will transition to
  "primary" and finally to "backup" again.

To reflect those 2 possibilities, test was changed that it will expect
2 or 3 calls and will check only that last 2 will be always transition
to "primary" and then to "backup".

Additionally this patch adds some extra logging in that test so it will
be easier to check what was going on in that test.

Conflicts:
    neutron/tests/functional/agent/l3/test_ha_router.py

Closes-Bug: #1954751
Change-Id: Ib5de7e65839f52c35c43801969e3f0c16dead5bb
(cherry picked from commit c6a6c5ae12)
(cherry picked from commit 533ca2c99c)
2021-12-22 15:15:58 +01:00
..
bin Replace "ip monitor" command with Pyroute2 implementation 2019-12-08 22:38:45 +00:00
extensions Agent - Conntrack Helper 2019-08-29 10:41:13 +02:00
__init__.py Replace keepalived notifier bash script with Python ip monitor 2015-03-18 18:59:33 -04:00
framework.py [Functional] Fix expected number of the enqueue_state_change calls 2021-12-22 15:15:58 +01:00
test_dvr_router.py [DVR] Fix update of the MTU in the DVR HA routers 2021-11-10 11:35:59 +01:00
test_ha_router.py [Functional] Fix expected number of the enqueue_state_change calls 2021-12-22 15:15:58 +01:00
test_keepalived_state_change.py Read keepalived initial state in parallel to interface monitoring 2021-06-18 09:36:42 +02:00
test_legacy_router.py [DVR] Fix update of the MTU in the SNAT namespace 2021-10-13 12:35:00 +00:00
test_metadata_proxy.py Deprecate config option "ovs_integration_bridge" 2020-02-17 11:02:16 +00:00
test_namespace_manager.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00