Skip to content

Commit 9c72515

Browse files
authored
Use shared warnings and wait times in IS-IS integration tests (#2538)
1 parent 8bf3297 commit 9c72515

File tree

9 files changed

+41
-31
lines changed

9 files changed

+41
-31
lines changed

tests/integration/isis/01-ipv4.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ message: |
55
the adjacent routers is a level-1-2 router to catch the potential router
66
level mismatch.
77
8+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
9+
810
module: [ isis ]
911
defaults.interfaces.mtu: 1500
1012

@@ -33,7 +35,7 @@ validate:
3335
adj:
3436
description: Check IS-IS adjacencies
3537
wait_msg: Waiting for IS-IS adjacency process to complete
36-
wait: 30
38+
wait: isis_adj_p2p
3739
nodes: [ x1, x2 ]
3840
plugin: isis_neighbor('dut',area='49.0042')
3941
adj_l:
@@ -43,7 +45,7 @@ validate:
4345
pfx:
4446
description: Check IS-IS prefix
4547
wait_msg: Waiting for IS-IS SPF run
46-
wait: 45
48+
wait: isis_spf_long
4749
nodes: [ x1 ]
4850
plugin: isis_prefix(pfx=nodes.x2.loopback.ipv4,level='1')
4951
sys_id:
@@ -56,6 +58,6 @@ validate:
5658
ping:
5759
description: End-to-end connectivity test
5860
wait_msg: Waiting for IS-IS SPF run
59-
wait: 10
61+
wait: ping_long
6062
nodes: [ x1 ]
6163
plugin: ping(nodes.x2.loopback.ipv4,src=nodes.x1.loopback.ipv4)

tests/integration/isis/02-ipv6.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ message: |
66
module: [ isis ]
77

88
defaults.interfaces.mtu: 1500
9-
defaults.sources.extra: [ defaults-ipv6.yml ]
9+
defaults.sources.extra: [ defaults-ipv6.yml, ../wait_times.yml, ../warnings.yml ]
1010

1111
groups:
1212
probes:
@@ -34,18 +34,18 @@ validate:
3434
adj:
3535
description: Check IS-IS adjacencies
3636
wait_msg: Waiting for IS-IS adjacency process to complete
37-
wait: 30
37+
wait: isis_adj_p2p
3838
nodes: [ x1, x2 ]
3939
plugin: isis_neighbor('dut',level='L2')
4040
pfx:
4141
description: Check IS-IS IPv6 prefix
4242
wait_msg: Waiting for IS-IS SPF run
43-
wait: 45
43+
wait: isis_spf_long
4444
nodes: [ x1 ]
4545
plugin: isis_prefix(pfx=nodes.x2.loopback.ipv6,af='ipv6')
4646
ping:
4747
description: End-to-end IPv6 connectivity test
4848
wait_msg: Waiting for IS-IS SPF run
49-
wait: 10
49+
wait: ping_long
5050
nodes: [ x1 ]
5151
plugin: ping(nodes.x2.loopback.ipv6,src=nodes.x1.loopback.ipv6,af='ipv6')

tests/integration/isis/03-dual-stack.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ message: |
77
module: [ isis ]
88

99
defaults.interfaces.mtu: 1500
10-
defaults.sources.extra: [ defaults-ds.yml ]
10+
defaults.sources.extra: [ defaults-ds.yml, ../wait_times.yml, ../warnings.yml ]
1111

1212
groups:
1313
probes:
@@ -32,25 +32,25 @@ validate:
3232
adj:
3333
description: Check IS-IS adjacencies
3434
wait_msg: Waiting for IS-IS adjacency process to complete
35-
wait: 30
35+
wait: isis_adj_p2p
3636
nodes: [ x1, x2 ]
3737
plugin: isis_neighbor('dut',level='L1L2')
3838
pfx_v4:
3939
description: Check IS-IS IPv4 prefix
4040
wait_msg: Waiting for IS-IS SPF run
41-
wait: 45
41+
wait: isis_spf_long
4242
nodes: [ x1 ]
4343
plugin: isis_prefix(pfx=nodes.x2.loopback.ipv4,level='1')
4444
pfx_v6:
4545
description: Check IS-IS IPv6 prefix
4646
wait_msg: Waiting for IS-IS SPF run
47-
wait: 10
47+
wait: isis_spf
4848
nodes: [ x1 ]
4949
plugin: isis_prefix(pfx=nodes.x2.loopback.ipv6,af='ipv6',level='2')
5050
ping_v4:
5151
description: End-to-end IPv4 connectivity test
5252
wait_msg: Waiting for IS-IS SPF run
53-
wait: 5
53+
wait: ping
5454
nodes: [ x1 ]
5555
plugin: ping(nodes.x2.loopback.ipv4,src=nodes.x1.loopback.ipv4)
5656
ping_v6:

tests/integration/isis/10-network.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ message: |
44
interfaces with IS-IS network type set to 'broadcast' and 'point-to-point'. It
55
has to establish IS-IS adjacencies over both.
66
7+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
8+
79
module: [ isis ]
810
defaults.interfaces.mtu: 1500
911

@@ -40,6 +42,6 @@ validate:
4042
adj:
4143
description: Check IS-IS adjacencies
4244
wait_msg: Waiting for IS-IS adjacency process to complete
43-
wait: 50
45+
wait: isis_adj_lan
4446
nodes: [ x1, x2 ]
4547
plugin: isis_neighbor('dut',state='Up')

tests/integration/isis/11-cost.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ message: |
33
This lab tests whether (large) IS-IS costs are correctly applied
44
to physical interfaces, and whether the device is using wide metrics.
55
6+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
7+
68
module: [ isis ]
79
defaults.interfaces.mtu: 1500
810

@@ -34,31 +36,31 @@ validate:
3436
adj:
3537
description: Check IS-IS adjacencies
3638
wait_msg: Waiting for IS-IS adjacency process to complete
37-
wait: 30
39+
wait: isis_adj_lan
3840
nodes: [ x1, x2 ]
3941
plugin: isis_neighbor('dut')
4042
pfx_l1_x1:
4143
description: Check L1 IS-IS prefix on X1
4244
wait_msg: Waiting for IS-IS SPF run
43-
wait: 45
45+
wait: isis_spf_long
4446
nodes: [ x1 ]
4547
plugin: isis_prefix(pfx=nodes.x2.loopback.ipv4,level='1')
4648
pfx_l2_x1:
4749
description: Check L2 IS-IS prefix on X1
4850
wait_msg: Waiting for IS-IS SPF run
49-
wait: 5
51+
wait: isis_spf
5052
nodes: [ x1 ]
5153
plugin: isis_prefix(pfx=nodes.x2.loopback.ipv4,level='2')
5254
pfx_l1_x2:
5355
description: Check L1 IS-IS prefix on X2
5456
wait_msg: Waiting for IS-IS SPF run
55-
wait: 30
57+
wait: isis_spf
5658
nodes: [ x2 ]
5759
plugin: isis_prefix(pfx=nodes.x1.loopback.ipv4,level='1')
5860
pfx_l2_x2:
5961
description: Check L2 IS-IS prefix on X2
6062
wait_msg: Waiting for IS-IS SPF run
61-
wait: 15
63+
wait: isis_spf
6264
nodes: [ x2 ]
6365
plugin: isis_prefix(pfx=nodes.x1.loopback.ipv4,level='2')
6466
c_x1_l1:

tests/integration/isis/12-passive.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ message: |
33
This lab tests whether the OSPF interfaces on device under test are correctly
44
configured as passive interfaces.
55
6+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
7+
68
module: [ isis ]
79
defaults.interfaces.mtu: 1500
810

@@ -51,7 +53,7 @@ validate:
5153
pass: Link X2-DUT reenabled
5254
adj_x1:
5355
description: Is DUT a neigbor of X1?
54-
wait: 30
56+
wait: isis_adj_p2p
5557
wait_msg: Waiting for OSPF adjacency process to complete
5658
pass: OK, X1 has DUT as a neighbor
5759
nodes: [ x1 ]

tests/integration/isis/21-import-ds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defaults.interfaces.mtu: 1500
66

77
defaults.paths.prepend.plugin: [ "topology:../plugin" ]
88
plugin: [ static_import ]
9-
defaults.sources.extra: [ ../wait_times.yml ]
9+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
1010

1111
addressing:
1212
loopback:

tests/integration/isis/30-vrf.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ message: |
1111
* r3 and r4 should be able to ping each other
1212
* r1 should not be able to reach r3
1313
14-
defaults.sources.extra: [ defaults-ds.yml ]
14+
defaults.sources.extra: [ defaults-ds.yml, ../wait_times.yml, ../warnings.yml ]
1515
isis.type: level-2
1616

1717
groups:
@@ -63,20 +63,20 @@ validate:
6363
isis:
6464
description: Check IS-IS adjacencies with DUT
6565
wait_msg: Waiting for IS-IS adjacency process to complete
66-
wait: 30
66+
wait: isis_adj_p2p
6767
nodes: [ r1, r3 ]
6868
plugin: isis_neighbor('dut',level='L2')
6969
stop_on_error: true
7070
red_c_isis4:
7171
description: Check connected IPv4 subnet as IS-IS prefix on R1
72-
wait: 15
72+
wait: isis_spf
7373
wait_msg: Waiting for IS-IS convergence
7474
fail: DUT is not redistributing connected subnets into IS-IS
7575
nodes: [ r1 ]
7676
plugin: isis_prefix(pfx=nodes.r2.interfaces[0].ipv4,level='2')
7777
red_c_isis6:
7878
description: Check connected IPv6 subnet as IS-IS prefix on R1
79-
wait: 3
79+
wait: isis_spf
8080
wait_msg: Waiting for IS-IS convergence
8181
fail: DUT is not redistributing connected subnets into IS-IS
8282
nodes: [ r1 ]
@@ -85,28 +85,28 @@ validate:
8585
description: Check for IPv4 BGP prefix in IS-IS
8686
wait_msg: Waiting for BGP and IS-IS convergence
8787
fail: BGP is not redistributed into IS-IS
88-
wait: 10
88+
wait: isis_spf
8989
nodes: [ r1 ]
9090
plugin: isis_prefix(pfx=nodes.r2.loopback.ipv4,af='ipv4',level='2')
9191
red_bgp_isis6:
9292
description: Check for IPv6 BGP prefix in IS-IS
9393
wait_msg: Waiting for BGP and IS-IS convergence
9494
fail: BGP is not redistributed into IS-IS
95-
wait: 5
95+
wait: isis_spf
9696
nodes: [ r1 ]
9797
plugin: isis_prefix(nodes.r2.loopback.ipv6,af='ipv6',level='2')
9898
red_isis_bgp4:
9999
description: Check for IS-IS IPv4 prefix in BGP
100100
wait_msg: Waiting for IS-IS and BGP convergence
101101
fail: IS-IS IPv4 prefixes are not redistributed into BGP
102-
wait: 10
102+
wait: bgp_scan_long
103103
nodes: [ r2 ]
104104
plugin: bgp_prefix(nodes.r1.loopback.ipv4,af='ipv4')
105105
red_isis_bgp6:
106106
description: Check for IS-IS IPv6 prefix in BGP
107107
wait_msg: Waiting for IS-IS and BGP convergence
108108
fail: IS-IS IPv6 prefixes are not redistributed into BGP
109-
wait: 5
109+
wait: bgp_scan_time
110110
nodes: [ r2 ]
111111
plugin: bgp_prefix(nodes.r1.loopback.ipv6,af='ipv6')
112112
red_lb_ping4:
@@ -127,11 +127,11 @@ validate:
127127
plugin: ping(nodes.r1.interfaces[0].ipv4,af='ipv4')
128128
blue_lb_ping4:
129129
description: Loopback-to-loopback IPv4 reachability test in VRF blue
130-
wait: 10
130+
wait: ping_long
131131
nodes: [ r3 ]
132132
plugin: ping('r4',src=nodes.r3.loopback.ipv4,af='ipv4')
133-
blue_lb_ping:
133+
blue_lb_ping6:
134134
description: Loopback-to-loopback IPv6 reachability test in VRF blue
135-
wait: 10
135+
wait: ping_long
136136
nodes: [ r3 ]
137137
plugin: ping(nodes.r4.loopback.ipv6,src=nodes.r3.loopback.ipv6,af='ipv6')

tests/integration/wait_times.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ const.validate:
2424
bgp_ios_redist: 60 # The ridiculously long time it takes Cisco IOS/XE to start redistribution into IPv6 AF
2525

2626
isis_adj_p2p: 20
27+
isis_adj_lan: 50
2728
isis_spf: 15
29+
isis_spf_long: 45
2830

2931
rip_start: 60
3032
rip_update: 20

0 commit comments

Comments
 (0)