Use Heat resource to validate resource_type_show

Patch I01aaadf86bf86f2a01bfd3fd28541522ef5a99cf added new functionality,
which raise error, if resource related endpoint is not registred in
keystone. Due to heatclient functional tests job starts only heat and
keystone service, we should use Heat resources for testing. The good
candidate for it is OS::Heat::RandomString.

Change-Id: I274a6db5c886ce8e19968e6e2ae8b16e93315cb7
Closes-Bug: #1482661
This commit is contained in:
Sergey Kraynev
2015-08-07 10:14:13 -04:00
parent 142d0996ec
commit 948dcb57d2

View File

@@ -56,7 +56,7 @@ class SimpleReadOnlyHeatClientTest(base.ClientTestBase):
self.assertTableStruct(rsrc_types, ['resource_type'])
def test_heat_resource_type_show(self):
rsrc_schema = self.heat('resource-type-show OS::Nova::Server')
rsrc_schema = self.heat('resource-type-show OS::Heat::RandomString')
# resource-type-show returns a json resource schema
self.assertIsInstance(json.loads(rsrc_schema), dict)