Update Heat CLI test to pass with random hash

The failing test assumes ordering of the returned JSON
blob and asserts that the given server resource precedes
another resource.  This updates it and allows the test
to pass when the resource is listed at the end of the
section, which may happen depending on hash + dict
ordering.

Change-Id: I279a1a1f3081214b0a2b0f712d311d148acd7b8e
This commit is contained in:
Adam Gandelman 2014-08-25 21:50:51 -07:00
parent 9d7d28b66f
commit 50e4cf91d1

View File

@ -56,7 +56,7 @@ class SimpleReadOnlyHeatClientTest(tempest.cli.ClientTestBase):
def test_heat_resource_template_fmt_arg_long_json(self):
ret = self.heat('resource-template --format json OS::Nova::Server')
self.assertIn('"Type": "OS::Nova::Server",', ret)
self.assertIn('"Type": "OS::Nova::Server"', ret)
self.assertIsInstance(json.loads(ret), dict)
def test_heat_resource_type_list(self):