From 50e4cf91d1b021d54e862ebe7edb27ecf38963b7 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Mon, 25 Aug 2014 21:50:51 -0700 Subject: [PATCH] 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 --- tempest/cli/simple_read_only/orchestration/test_heat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tempest/cli/simple_read_only/orchestration/test_heat.py b/tempest/cli/simple_read_only/orchestration/test_heat.py index 8e413a9409..019818bc7f 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 @@ 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):