Wrap the list in a JSON object for consistency with other APIs, both in
Heat and the rest of OpenStack.
Change-Id: I626f1c2446416c8e869fdc7d4f3772ec6c6d191c
Signed-off-by: Zane Bitter <zbitter@redhat.com>
except rpc_common.RemoteError as ex:
raise exc.HTTPInternalServerError(explanation=str(ex))
- return types
+ return {'resource_types': types}
def create_resource(options):
self.m.ReplayAll()
response = self.controller.list_resource_types(req,
tenant_id=self.tenant)
- self.assertEqual(response, engine_response)
+ self.assertEqual(response, {'resource_types': engine_response})
self.m.VerifyAll()
def test_list_resource_types_error(self):