Add functional tests server reboot

Change-Id: I1699ac826519ccc177159423c7b6727ffaf4abff
This commit is contained in:
TerryHowe 2015-06-12 10:49:03 -06:00 committed by Terry Howe
parent a9f85736ef
commit ea103cab1d

View File

@ -130,7 +130,6 @@ class ServerTests(test.TestCase):
self.assertNotEqual("", ip) self.assertNotEqual("", ip)
raw_output = self.openstack('ip floating add ' + ip + ' ' + self.NAME) raw_output = self.openstack('ip floating add ' + ip + ' ' + self.NAME)
self.assertEqual("", raw_output) self.assertEqual("", raw_output)
opts = self.get_show_opts(["addresses"])
raw_output = self.openstack('server show ' + self.NAME) raw_output = self.openstack('server show ' + self.NAME)
self.assertIn(ip, raw_output) self.assertIn(ip, raw_output)
# detach ip # detach ip
@ -141,3 +140,7 @@ class ServerTests(test.TestCase):
self.assertNotIn(ip, raw_output) self.assertNotIn(ip, raw_output)
raw_output = self.openstack('ip floating delete ' + ipid) raw_output = self.openstack('ip floating delete ' + ipid)
self.assertEqual("", raw_output) self.assertEqual("", raw_output)
# reboot
raw_output = self.openstack('server reboot ' + self.NAME)
self.assertEqual("", raw_output)
self.wait_for("ACTIVE")