tests/rackspace/requests/identity/user_tests.rb in fog-maestrodev-1.8.0.20130114204828 vs tests/rackspace/requests/identity/user_tests.rb in fog-maestrodev-1.14.0.20130806165225

- old
+ new

@@ -39,11 +39,11 @@ }] } service = Fog::Rackspace::Identity.new id = nil - username = 'foguser' + username = "fog#{Time.now.to_i.to_s}" email = 'fog_user@example.com' enabled = true password = 'Fog_password1' tests('success') do @@ -55,10 +55,13 @@ tests('#delete_user').succeeds do service.delete_user(id) end + # there appears to be a werid caching issue. It's just easier to create a new username and continue on + username = "fog#{Time.now.to_i.to_s}" + tests('#create_user with password').succeeds do data = service.create_user(username, email, enabled, :password => password ).body id = data['user']['id'] data end @@ -96,12 +99,8 @@ credential_username = Fog.credentials[:rackspace_username] credential_id = service.get_user_by_name(credential_username).body['user']['id'] tests('#list_credentials').formats(CREDENTIALS_FORMAT) do service.list_credentials(credential_id).body - end - - tests('#get_credentials').formats(CREDENTIAL_FORMAT) do - service.get_credentials(credential_id).body end end end