lib/fog/openstack/requests/identity/create_user.rb in fog-1.22.0 vs lib/fog/openstack/requests/identity/create_user.rb in fog-1.22.1
- old
+ new
@@ -1,10 +1,9 @@
module Fog
module Identity
class OpenStack
class Real
-
def create_user(name, password, email, tenantId=nil, enabled=true)
data = {
'user' => {
'name' => name,
'password' => password,
@@ -19,15 +18,13 @@
:expects => [200, 202],
:method => 'POST',
:path => '/users'
)
end
-
end
class Mock
-
def create_user(name, password, email, tenantId=nil, enabled=true)
response = Excon::Response.new
response.status = 200
data = {
'id' => Fog::Mock.random_hex(32),
@@ -38,10 +35,9 @@
}
self.data[:users][data['id']] = data
response.body = { 'user' => data }
response
end
-
end
end
end
end