1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

dxcli-847 fixes for 1.8.7 ruby

This commit is contained in:
howete 2013-06-05 09:11:22 -06:00 committed by Rupak Ganguly
parent bfef53cb6b
commit aa3c01c9ce
5 changed files with 23 additions and 23 deletions

View file

@ -21,12 +21,12 @@ module Fog
response.status = 200
data = {
id: SecureRandom.uuid,
name: "domain1.com.",
ttl: 3600,
serial: 1351800588,
email: "nsadmin@example.org",
created_at: "2012-11-01T20:09:48.094457"
:id => SecureRandom.uuid,
:name => "domain1.com.",
:ttl => 3600,
:serial => 1351800588,
:email => "nsadmin@example.org",
:created_at=>"2012-11-01T20:09:48.094457"
}
response.body = data
response

View file

@ -5,9 +5,9 @@ module Fog
def create_record(domain_id, name, type, data)
data = {
name: name,
type: type,
data: data
:name=> name,
:type=> type,
:data=> data
}
request(
@ -24,14 +24,14 @@ module Fog
response = Excon::Response.new
response.status = 200
data = {
id: "2e32e609-3a4f-45ba-bdef-e50eacd345ad",
name: "www.example.com.",
type: "A",
created_at: "2012-11-02T19:56:26.366792",
updated_at: null,
domain_id: "89acac79-38e7-497d-807c-a011e1310438",
ttl: 3600,
data: "15.185.172.152"
:id=> "2e32e609-3a4f-45ba-bdef-e50eacd345ad",
:name=> "www.example.com.",
:type=> "A",
:created_at=> "2012-11-02T19:56:26.366792",
:updated_at=> null,
:domain_id=> "89acac79-38e7-497d-807c-a011e1310438",
:ttl=> 3600,
:data=> "15.185.172.152"
}
response.body = data
response

View file

@ -15,7 +15,7 @@ module Fog
response = request(
:expects => 200,
:method => 'GET',
:path => "domains/#{instance_id}",
:path => "domains/#{instance_id}"
)
response
end
@ -36,4 +36,4 @@ module Fog
end
end
end
end
end

View file

@ -6,7 +6,7 @@ module Fog
response = request(
:expects => 200,
:method => 'GET',
:path => "domains/#{domain_id}/records/#{record_id}",
:path => "domains/#{domain_id}/records/#{record_id}"
)
response
end
@ -31,4 +31,4 @@ module Fog
end
end
end
end
end

View file

@ -8,7 +8,7 @@ module Fog
request(
:expects => [200],
:method => 'GET',
:path => 'domains',
:path => 'domains'
)
end
@ -30,4 +30,4 @@ module Fog
end
end
end
end
end