]> git.puffer.fish Git - mirror/frr.git/commit
tests: fix bgp-auth topotest 8598/head
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 30 Apr 2021 22:31:26 +0000 (01:31 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 30 Apr 2021 22:31:26 +0000 (01:31 +0300)
commitb32454e10c0b7dfd7800e153234e063458190e62
tree7befa958b45deadc77cc445195279520d987c49f
parent058d0236b61e53722b4974791e8e019a892959b5
tests: fix bgp-auth topotest

Individual tests must not depend on each other. In particular, a test
can't be sure that the previous test config is applied or cleared.
It is definitely not true when a single test is executed, for example:
`test_bgp_auth.py::test_prefix_peer_remove_passwords`.

This commit makes all tests independent of each other. It also adds a
call to check_all_peers_established at the start of "remove_passwords"
tests to make sure that we not only block new peers with an incorrect
password, but also clean the existing peers.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
tests/topotests/bgp-auth/test_bgp_auth.py