@@ -287,8 +287,8 @@ def test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true(self):
287287 )
288288
289289 expected = 1
290- ssh_command = "wget -t 1 -T 5 www.google.com"
291- check_string = "HTTP request sent, awaiting response... 200 OK"
290+ ssh_command = "curl -v -m 1 -o index.html -sL www.google.com"
291+ check_string = "200 OK"
292292 result = check_router_command (virtual_machine , nat_rule .ipaddress , ssh_command , check_string , self )
293293
294294 self .assertEqual (
@@ -307,8 +307,8 @@ def test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true(self):
307307 )
308308
309309 expected = 0
310- ssh_command = "wget -t 1 -T 1 www.google.com"
311- check_string = "HTTP request sent, awaiting response... 200 OK"
310+ ssh_command = "curl -v -m 1 -o index.html -sL www.google.com"
311+ check_string = "200 OK"
312312 result = check_router_command (virtual_machine , nat_rule .ipaddress , ssh_command , check_string , self )
313313
314314 self .assertEqual (
@@ -451,8 +451,8 @@ def test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false(self):
451451 )
452452
453453 expected = 0
454- ssh_command = "wget -t 1 -T 1 www.google.com"
455- check_string = "HTTP request sent, awaiting response... 200 OK"
454+ ssh_command = "curl -v -m 1 -o index.html -sL www.google.com"
455+ check_string = "200 OK"
456456 result = check_router_command (virtual_machine , nat_rule .ipaddress , ssh_command , check_string , self )
457457
458458 self .assertEqual (
@@ -480,8 +480,8 @@ def test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false(self):
480480 )
481481
482482 expected = 1
483- ssh_command = "wget -t 1 -T 5 www.google.com"
484- check_string = "HTTP request sent, awaiting response... 200 OK"
483+ ssh_command = "curl -v -m 1 -o index.html -sL www.google.com"
484+ check_string = "200 OK"
485485 result = check_router_command (virtual_machine , nat_rule .ipaddress , ssh_command , check_string , self )
486486
487487 self .assertEqual (
@@ -840,8 +840,8 @@ def test_01_isolate_network_FW_PF_default_routes_egress_true(self):
840840 )
841841
842842 expected = 1
843- ssh_command = "wget -t 1 -T 5 www.google.com"
844- check_string = "HTTP request sent, awaiting response... 200 OK"
843+ ssh_command = "curl -v -m 1 -o index.html -sL www.google.com"
844+ check_string = "200 OK"
845845 result = check_router_command (virtual_machine , nat_rule .ipaddress , ssh_command , check_string , self )
846846
847847 self .assertEqual (
@@ -860,8 +860,8 @@ def test_01_isolate_network_FW_PF_default_routes_egress_true(self):
860860 )
861861
862862 expected = 0
863- ssh_command = "wget -t 1 -T 1 www.google.com"
864- check_string = "HTTP request sent, awaiting response... 200 OK"
863+ ssh_command = "curl -v -m 1 -o index.html -sL www.google.com"
864+ check_string = "200 OK"
865865 result = check_router_command (virtual_machine , nat_rule .ipaddress , ssh_command , check_string , self )
866866
867867 self .assertEqual (
@@ -995,8 +995,8 @@ def test_02_isolate_network_FW_PF_default_routes_egress_false(self):
995995 )
996996
997997 expected = 0
998- ssh_command = "wget -t 1 -T 1 www.google.com"
999- check_string = "HTTP request sent, awaiting response... 200 OK"
998+ ssh_command = "curl -v -m 1 -o index.html -sL www.google.com"
999+ check_string = "200 OK"
10001000 result = check_router_command (virtual_machine , nat_rule .ipaddress , ssh_command , check_string , self )
10011001
10021002 self .assertEqual (
@@ -1015,8 +1015,8 @@ def test_02_isolate_network_FW_PF_default_routes_egress_false(self):
10151015 )
10161016
10171017 expected = 1
1018- ssh_command = "wget -t 1 -T 5 www.google.com"
1019- check_string = "HTTP request sent, awaiting response... 200 OK"
1018+ ssh_command = "curl -v -m 1 -o index.html -sL www.google.com"
1019+ check_string = "200 OK"
10201020 result = check_router_command (virtual_machine , nat_rule .ipaddress , ssh_command , check_string , self )
10211021
10221022 self .assertEqual (
0 commit comments