tests: give firewallvm more time to apply the rules
Not everyone use fast SSD drive and 4+ core CPU...
This commit is contained in:
parent
961ae3588f
commit
20c32e7233
@ -206,7 +206,7 @@ class VmNetworkingMixin(qubes.tests.SystemTestsMixin):
|
|||||||
})
|
})
|
||||||
self.proxy.write_iptables_qubesdb_entry()
|
self.proxy.write_iptables_qubesdb_entry()
|
||||||
# Ugly hack b/c there is no feedback when the rules are actually applied
|
# Ugly hack b/c there is no feedback when the rules are actually applied
|
||||||
time.sleep(1)
|
time.sleep(3)
|
||||||
self.assertEqual(self.run_cmd(self.testvm1, self.ping_ip), 0,
|
self.assertEqual(self.run_cmd(self.testvm1, self.ping_ip), 0,
|
||||||
"Ping by IP failed (should be allowed now)")
|
"Ping by IP failed (should be allowed now)")
|
||||||
self.assertNotEqual(self.run_cmd(self.testvm1, self.ping_name), 0,
|
self.assertNotEqual(self.run_cmd(self.testvm1, self.ping_name), 0,
|
||||||
@ -221,7 +221,7 @@ class VmNetworkingMixin(qubes.tests.SystemTestsMixin):
|
|||||||
})
|
})
|
||||||
self.proxy.write_iptables_qubesdb_entry()
|
self.proxy.write_iptables_qubesdb_entry()
|
||||||
# Ugly hack b/c there is no feedback when the rules are actually applied
|
# Ugly hack b/c there is no feedback when the rules are actually applied
|
||||||
time.sleep(1)
|
time.sleep(3)
|
||||||
self.assertEqual(self.run_cmd(self.testvm1, self.ping_name), 0,
|
self.assertEqual(self.run_cmd(self.testvm1, self.ping_name), 0,
|
||||||
"Ping by name failed (should be allowed now)")
|
"Ping by name failed (should be allowed now)")
|
||||||
self.assertNotEqual(self.run_cmd(self.testvm1, nc_cmd), 0,
|
self.assertNotEqual(self.run_cmd(self.testvm1, nc_cmd), 0,
|
||||||
@ -240,7 +240,7 @@ class VmNetworkingMixin(qubes.tests.SystemTestsMixin):
|
|||||||
}] })
|
}] })
|
||||||
self.proxy.write_iptables_qubesdb_entry()
|
self.proxy.write_iptables_qubesdb_entry()
|
||||||
# Ugly hack b/c there is no feedback when the rules are actually applied
|
# Ugly hack b/c there is no feedback when the rules are actually applied
|
||||||
time.sleep(1)
|
time.sleep(3)
|
||||||
self.assertEqual(self.run_cmd(self.testvm1, nc_cmd), 0,
|
self.assertEqual(self.run_cmd(self.testvm1, nc_cmd), 0,
|
||||||
"TCP connection failed (should be allowed now)")
|
"TCP connection failed (should be allowed now)")
|
||||||
|
|
||||||
@ -258,7 +258,7 @@ class VmNetworkingMixin(qubes.tests.SystemTestsMixin):
|
|||||||
})
|
})
|
||||||
self.proxy.write_iptables_qubesdb_entry()
|
self.proxy.write_iptables_qubesdb_entry()
|
||||||
# Ugly hack b/c there is no feedback when the rules are actually applied
|
# Ugly hack b/c there is no feedback when the rules are actually applied
|
||||||
time.sleep(1)
|
time.sleep(3)
|
||||||
self.assertNotEqual(self.run_cmd(self.testvm1, nc_cmd), 0,
|
self.assertNotEqual(self.run_cmd(self.testvm1, nc_cmd), 0,
|
||||||
"TCP connection should be blocked")
|
"TCP connection should be blocked")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user