Skip to content

Commit 8479d19

Browse files
committed
test: fix wget does not work in macchinina vms on vmware80u1
fixes error below ``` {Cmd: wget -t 1 -T 1 www.google.com via Host: 10.0.55.186} {returns: ["wget: '/usr/lib/libpcre.so.1' is not an ELF file", "wget: can't load library 'libpcre.so.1'"]} ```
1 parent 2e98f4d commit 8479d19

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/integration/smoke/test_routers_network_ops.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)