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
diff --git a/tempest/cli/simple_read_only/orchestration/test_heat.py b/tempest/cli/simple_read_only/orchestration/test_heat.py
index 8e413a9..019818b 100644
--- a/tempest/cli/simple_read_only/orchestration/test_heat.py
+++ b/tempest/cli/simple_read_only/orchestration/test_heat.py
@@ -56,7 +56,7 @@
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):