tests/openstack/requests/identity/ec2_credentials_tests.rb in fog-1.9.0 vs tests/openstack/requests/identity/ec2_credentials_tests.rb in fog-1.10.0

- old
+ new

@@ -5,36 +5,39 @@ 'tenant_id' => String, 'secret' => String, 'user_id' => String, } + @user_id = OpenStack::Identity.get_user_id + @tenant_id = OpenStack::Identity.get_tenant_id + tests('success') do tests('#create_ec2_credential'). formats({'credential' => @credential_format}) do response = Fog::Identity[:openstack]. - create_ec2_credential('user_id', 'tenant_id') + create_ec2_credential(@user_id, @tenant_id) @ec2_credential = response.body['credential'] response.body end tests('#get_ec2_credential'). formats({'credential' => @credential_format}) do Fog::Identity[:openstack]. - get_ec2_credential('user_id', @ec2_credential['access']).body + get_ec2_credential(@user_id, @ec2_credential['access']).body end tests('#list_ec2_credentials'). formats({'credentials' => [@credential_format]}) do Fog::Identity[:openstack]. - list_ec2_credentials('user_id').body + list_ec2_credentials(@user_id).body end tests('#delete_ec2_credential').succeeds do Fog::Identity[:openstack]. - delete_ec2_credential('user_id', @ec2_credential['access']) + delete_ec2_credential(@user_id, @ec2_credential['access']) end end end