mirror_frr/tests
Donald Sharp abdb6bcebd tests: Do not use peerUptime as a measure of if a clear worked
The peerUptime data received from a `show bgp ipv4 uni summ json`
gives you the time in seconds since the peer has come up.
The clear_bgp_and_verify function is checking the peerUptime
for before and after and if they are the same then the test
was declaring a clear failure.

The problem with this is of course that the tests can run fast
enough that the peerUptime is the same for before and after the clear.

Modify the test case to use peerUptimeEstablishedEpoch.
This value is the seconds since the epoch since the establishment
of the peer.  This will allow us to know that a clear happened.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-07-31 12:33:55 -04:00
..
bgpd *: use array_size instead of raw division 2019-02-25 23:00:16 +00:00
helpers lib: Add '--command-log-always` to all daemons startup 2019-05-31 10:06:42 -04:00
isisd isisd: Don't set subtlv structure if we didn't unpack any subtlvs 2019-05-10 13:24:38 +02:00
lib tests: remove strlen assert in inet_ntop tests 2019-07-15 17:19:14 +00:00
ospf6d build: non-recursive tests 2018-09-08 21:26:54 +02:00
topotests tests: Do not use peerUptime as a measure of if a clear worked 2019-07-31 12:33:55 -04:00
.gitignore tests: add prefix2str test 2019-06-13 18:30:28 +00:00
Makefile build: non-recursive tests 2018-09-08 21:26:54 +02:00
pytest.ini tests: Exclude topotests from consideration 2018-11-27 20:22:10 -05:00
runtests.py tests: add pytest testrunners 2017-02-13 17:43:47 +01:00
subdir.am lib: remove snprintf from prefix2str 2019-06-13 17:08:05 +00:00