Merge "Fix functest "test_server_metadata()" in test_sever.py"

This commit is contained in:
Jenkins 2016-05-30 03:29:14 +00:00 committed by Gerrit Code Review
commit 1dfc7d4b94

View File

@ -129,6 +129,8 @@ class ServerTests(test.TestCase):
1) Boot server in setUp
2) Set properties for server
3) Check server properties in server show output
4) Unset properties for server
5) Check server properties in server show output
"""
self.wait_for_status("ACTIVE")
# metadata
@ -138,6 +140,12 @@ class ServerTests(test.TestCase):
raw_output = self.openstack('server show ' + self.NAME + opts)
self.assertEqual(self.NAME + "\na='b', c='d'\n", raw_output)
raw_output = self.openstack(
'server unset --property a ' + self.NAME)
opts = self.get_show_opts(["name", "properties"])
raw_output = self.openstack('server show ' + self.NAME + opts)
self.assertEqual(self.NAME + "\nc='d'\n", raw_output)
def test_server_suspend_resume(self):
"""Test server suspend and resume commands.