File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed
test/case/infix_containers Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def _verify(server):
5454
5555 with test .step ("Verify container 'web' has started" ):
5656 c = infamy .Container (target )
57- until (lambda : c .running (NAME ), attempts = 10 )
57+ until (lambda : c .running (NAME ), attempts = 60 )
5858
5959 with test .step ("Verify container 'web' is reachable on http://container-host.local:91" ):
6060 until (lambda : _verify (addr ), attempts = 10 )
@@ -64,12 +64,12 @@ def _verify(server):
6464 c .action (NAME , "stop" )
6565
6666 with test .step ("Verify container 'web' is stopped" ):
67- until (lambda : not c .running (NAME ), attempts = 10 )
67+ until (lambda : not c .running (NAME ), attempts = 30 )
6868
6969 with test .step ("Restart container 'web'" ):
7070 c .action (NAME , "restart" )
7171
7272 with test .step ("Verify container 'web' is reachable on http://container-host.local:91" ):
7373 # Wait for it to restart and respond, or fail
74- until (lambda : _verify (addr ), attempts = 10 )
74+ until (lambda : _verify (addr ), attempts = 60 )
7575 test .succeed ()
Original file line number Diff line number Diff line change 7878
7979 with test .step ("Verify container has started" ):
8080 c = infamy .Container (target )
81- until (lambda : c .running (NAME ), attempts = 10 )
81+ until (lambda : c .running (NAME ), attempts = 60 )
8282
8383 _ , hport = env .ltop .xlate ("host" , "data" )
8484 url = infamy .Furl (URL )
Original file line number Diff line number Diff line change 176176
177177 with test .step ("Verify firewall container has started" ):
178178 c = infamy .Container (target )
179- until (lambda : c .running (NFTNM ), attempts = 10 )
179+ until (lambda : c .running (NFTNM ), attempts = 60 )
180180
181181 with test .step ("Verify web container has started" ):
182182 c = infamy .Container (target )
183- until (lambda : c .running (WEBNM ), attempts = 10 )
183+ until (lambda : c .running (WEBNM ), attempts = 60 )
184184
185185 with infamy .IsolatedMacVlan (hport ) as ns :
186186 NEEDLE = "tiny web server from the curiOS docker"
Original file line number Diff line number Diff line change 7272
7373 with test .step ("Verify container has started" ):
7474 c = infamy .Container (target )
75- until (lambda : c .running (cont_name ), attempts = 10 )
75+ until (lambda : c .running (cont_name ), attempts = 60 )
7676
7777 with test .step ("Verify the new hostname set by the container" ):
78- until (lambda : c .running (cont_name ) != target .get_data ("/ietf-system:system" )["system" ]["hostname" ], attempts = 10 )
78+ until (lambda : c .running (cont_name ) != target .get_data ("/ietf-system:system" )["system" ]["hostname" ], attempts = 30 )
7979 test .succeed ()
Original file line number Diff line number Diff line change 5757
5858 with test .step ("Verify container has started" ):
5959 c = infamy .Container (target )
60- until (lambda : c .running (NAME ), attempts = 10 )
60+ until (lambda : c .running (NAME ), attempts = 60 )
6161
6262 _ , hport = env .ltop .xlate ("host" , "data" )
6363 url = infamy .Furl (URL )
8888 })
8989
9090 with test .step ("Verify server is restarted and returns new content" ):
91- until (lambda : url .nscheck (ns , MESG ), attempts = 10 )
91+ until (lambda : url .nscheck (ns , MESG ), attempts = 60 )
9292
9393 test .succeed ()
Original file line number Diff line number Diff line change 9494
9595 with test .step ("Verify container 'web-br0-veth' has started" ):
9696 c = infamy .Container (target )
97- until (lambda : c .running (NAME ), attempts = 10 )
97+ until (lambda : c .running (NAME ), attempts = 60 )
9898
9999 _ , hport = env .ltop .xlate ("host" , "data" )
100100 url = infamy .Furl (URL )
Original file line number Diff line number Diff line change 4646
4747 with test .step ("Verify container has started" ):
4848 c = infamy .Container (target )
49- until (lambda : c .running (NAME ), attempts = 10 )
49+ until (lambda : c .running (NAME ), attempts = 60 )
5050
5151 with test .step ("Modify container volume content" ):
5252 cmd = f"sudo container shell { NAME } 'echo { MESG } >/var/www/index.html'"
6666 # print(f"Container {NAME} upgraded: {out.stdout}")
6767
6868 with test .step ("Verify container volume content survived upgrade" ):
69- until (lambda : url .check (MESG ), attempts = 10 )
69+ until (lambda : url .check (MESG ), attempts = 60 )
7070
7171 test .succeed ()
You can’t perform that action at this time.
0 commit comments