Skip to content

Commit 8bf3297

Browse files
authored
Use shared warning/wait times in initial/vrf integration tests (#2537)
1 parent e7fa635 commit 8bf3297

23 files changed

+89
-60
lines changed

tests/integration/initial/01-interfaces.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ message:
33
This scenario tests basic interface, IPv4, and IPv6 configuration,
44
including generation of IPv6 Router Advertisements
55

6-
defaults.sources.extra: [ ../wait_times.yml ]
6+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
77

88
addressing:
99
loopback:

tests/integration/initial/02-loopback.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
message:
33
This scenario tests additional loopback interfaces
44

5-
defaults.sources.extra: [ ../wait_times.yml ]
5+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
66

77
addressing:
88
loopback:

tests/integration/initial/03-unnumbered.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
3+
24
addressing:
35
loopback:
46
ipv6: 2001:db8:0::/48

tests/integration/initial/04-mtu.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ message:
22
This scenario tests MTU configuration and path MTU discovery
33
(generation of ICMP unreachables)
44

5+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
6+
57
addressing:
68
loopback:
79
ipv6: 2001:db8:0::/48
@@ -48,15 +50,15 @@ defaults.devices.vptx.netlab_validate.v6_p1300.wait: 30
4850
validate:
4951
v4_p1300:
5052
description: Initial IPv4 ping => target(1300)
51-
wait: 10
53+
wait: ping_long
5254
nodes: [ p1 ]
5355
exec:
5456
eos: ping t1300
5557
valid: |
5658
'bytes from' in stdout
5759
v6_p1300:
5860
description: Initial IPv6 ping => target(1300)
59-
wait: 10
61+
wait: ping_long
6062
nodes: [ p1 ]
6163
exec:
6264
eos: ping ipv6 t1300
@@ -65,15 +67,15 @@ validate:
6567
6668
v4_p1400:
6769
description: Initial IPv4 ping => target(1400)
68-
wait: 10
70+
wait: ping_long
6971
nodes: [ p1 ]
7072
exec:
7173
eos: ping t1400
7274
valid: |
7375
'bytes from' in stdout
7476
v6_p1400:
7577
description: Initial IPv6 ping => target(1400)
76-
wait: 10
78+
wait: ping_long
7779
nodes: [ p1 ]
7880
exec:
7981
eos: ping ipv6 t1400

tests/integration/initial/05-host.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ message:
33
This scenario tests basic interface, IPv4, and IPv6 configuration,
44
including generation of IPv6 Router Advertisements
55

6+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
7+
68
addressing:
79
loopback:
810
ipv6: 2001:db8:0::/48
@@ -54,13 +56,13 @@ links:
5456
validate:
5557
ping_dut_v4:
5658
description: IPv4 ping H2 => DUT
57-
wait: 10
59+
wait: ping_long
5860
wait_msg: Wait for IPv4 interfaces to become operational
5961
nodes: [ h2 ]
6062
plugin: ping(nodes.dut.interfaces[0].ipv4,af='ipv4')
6163
ping_dut_v6:
6264
description: IPv6 ping H2 => DUT
63-
wait: 10
65+
wait: ping_long
6466
wait_msg: Wait for IPv6 interfaces to become operational
6567
nodes: [ h2 ]
6668
plugin: ping(nodes.dut.interfaces[0].ipv6,af='ipv6')
@@ -79,7 +81,7 @@ validate:
7981
plugin: ping('h1',af='ipv6',expect='fail')
8082
level: warning
8183
wait_ra:
82-
wait: 30
84+
wait: ra_send
8385
description: Wait for the IPv6 RA messages
8486
ra_suppress:
8587
description: Check for RA-generated default route

tests/integration/initial/06-bridge.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ message: |
99
* Whether the device configuration template handles VLAN 1, or the device
1010
quirks take extra efforts to work around that
1111
12+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
13+
1214
groups:
1315
_auto_create: True
1416
hosts:
@@ -29,13 +31,13 @@ links:
2931
validate:
3032
ping_h3:
3133
description: IPv4 ping H3 from H1/H2
32-
wait: 40
34+
wait: stp_forwarding
3335
wait_msg: Wait for STP to do its job
3436
nodes: [ h1, h2 ]
3537
plugin: ping('h3')
3638
ping_h5:
3739
description: IPv4 ping H5 from H4
38-
wait: 20
40+
wait: stp_forwarding
3941
wait_msg: Wait for STP to do its job
4042
nodes: [ h4 ]
4143
plugin: ping('h5')

tests/integration/initial/07-router.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ message:
33
This scenario tests basic interface, IPv4, and IPv6 configuration,
44
including generation of IPv6 Router Advertisements
55

6-
defaults.sources.extra: [ ../wait_times.yml ]
6+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
77

88
addressing:
99
loopback:

tests/integration/vrf/01-multi-vrf.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ message: |
77
* h3 and h4 should be able to ping each other
88
* h1 should not be able to reach h3
99
10+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
11+
1012
groups:
1113
_auto_create: True
1214
hosts:
@@ -26,12 +28,12 @@ vrfs:
2628
validate:
2729
red:
2830
description: Ping-based reachability test in VRF red
29-
wait: 15
31+
wait: ping_long
3032
nodes: [ h1 ]
3133
plugin: ping('h3')
3234
ping_blue:
3335
description: Ping-based reachability test in VRF blue
34-
wait: 15
36+
wait: ping_long
3537
nodes: [ h2 ]
3638
plugin: ping('h4')
3739
inter_vlan:

tests/integration/vrf/02-multi-vrf-ipv6.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ message: |
77
* h3 and h4 should be able to ping each other
88
* h1 should not be able to reach h3
99
10-
defaults.sources.extra: [ defaults-ipv6-only.yml ]
10+
defaults.sources.extra: [ defaults-ipv6-only.yml, ../wait_times.yml, ../warnings.yml ]
1111

1212
groups:
1313
_auto_create: True
@@ -28,20 +28,20 @@ vrfs:
2828
validate:
2929
ra:
3030
description: Check RA-generated default route
31-
wait: 40
31+
wait: ra_send
3232
wait_msg: Waiting for RA message to generate the default route
3333
nodes: [ h1, h2, h3, h4 ]
3434
plugin: default6()
3535
stop_on_error: True
3636
red:
3737
description: Ping-based reachability test in VRF red
38-
wait: 10
38+
wait: ping_long
3939
wait_msg: Waiting for RA to generate the default route
4040
nodes: [ h1 ]
4141
plugin: ping('h3',af='ipv6')
4242
ping_blue:
4343
description: Ping-based reachability test in VRF blue
44-
wait: 10
44+
wait: ping_long
4545
wait_msg: Waiting for RA to generate the default route
4646
nodes: [ h2 ]
4747
plugin: ping('h4',af='ipv6')

tests/integration/vrf/03-multi-vrf-loopback.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ message: |
77
* h3 and h4 should be able to ping each other and the VRF loopback interface
88
* h1 should not be able to reach h3
99
10+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
11+
1012
groups:
1113
_auto_create: True
1214
hosts:
@@ -32,12 +34,12 @@ nodes:
3234
validate:
3335
red:
3436
description: Ping-based reachability test in VRF red (wait up to 10 seconds)
35-
wait: 10
37+
wait: ping_long
3638
nodes: [ h1 ]
3739
plugin: ping('h2')
3840
ping:
3941
description: Ping-based reachability test in VRF blue
40-
wait: 5
42+
wait: ping
4143
nodes: [ h3 ]
4244
plugin: ping('h4')
4345
red_lb:

0 commit comments

Comments
 (0)