From a8f2aaf004eea5978c210b34acaebd034effef93 Mon Sep 17 00:00:00 2001 From: Alvin Garcia Date: Mon, 17 Sep 2012 10:20:39 +0800 Subject: [PATCH] [openstack|identity] Update for failing mock test --- tests/openstack/requests/identity/tenant_tests.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/openstack/requests/identity/tenant_tests.rb b/tests/openstack/requests/identity/tenant_tests.rb index 8dd2616a3..68ec5868f 100644 --- a/tests/openstack/requests/identity/tenant_tests.rb +++ b/tests/openstack/requests/identity/tenant_tests.rb @@ -20,10 +20,11 @@ Shindo.tests('Fog::Identity[:openstack] | tenant requests', ['openstack']) do tests('#list_roles_for_user_on_tenant(0,1)'). formats({'roles' => [@role_format]}) do + user = Fog::Identity[:openstack].create_user("testuser", "passw", "e@mail.co", "us3r1d").body['user'] openstack = Fog::Identity[:openstack] openstack.list_roles_for_user_on_tenant( - openstack.current_tenant['id'], openstack.current_user['id']).body + openstack.current_tenant['id'], user['id']).body end tests('#create_tenant').formats({'tenant' => @tenant_format}) do