Replace usage of ifup and ifdown in the reboot test with ifconfig.

pull/6/head
Alex Robinson 2015-08-07 00:29:36 +00:00
parent 8cd7431b3d
commit e650e098f4
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ var _ = Describe("Reboot", func() {
It("each node by switching off the network interface and ensure they function upon switch on", func() {
// switch the network interface off for a while to simulate a network outage
// We sleep 10 seconds to give some time for ssh command to cleanly finish before network is down.
testReboot(c, "nohup sh -c 'sleep 10 && sudo ifdown eth0 && sleep 120 && sudo ifup eth0' >/dev/null 2>&1 &")
testReboot(c, "nohup sh -c 'sleep 10 && sudo ifconfig eth0 down && sleep 120 && sudo ifconfig eth0 up' >/dev/null 2>&1 &")
})
It("each node by dropping all inbound packets for a while and ensure they function afterwards", func() {