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

[rackspace|monitoring] fixing broken tests

This commit is contained in:
Kyle Rames 2013-10-15 13:30:08 -05:00
parent 088b8bff9b
commit 00ae5a0a25

View file

@ -4,18 +4,18 @@ Shindo.tests('Fog::Rackspace::Monitoring | entity_tests', ['rackspace','rackspac
tests('success') do
tests('#create new entity').formats(DATA_FORMAT) do
response = account.create_entity(:label => "Foo").data
entity_id = response[:headers]["X-Object-ID"]
@entity_id = response[:headers]["X-Object-ID"]
response
end
tests('#get entity').formats(LIST_HEADERS_FORMAT) do
account.get_entity(:entity_id => "fooid").data[:headers]
account.get_entity(@entity_id).data[:headers]
end
tests('#update entity').formats(DATA_FORMAT) do
options = { :metadata => {:testing => "Bar" }}
account.update_entity(entity_id,options).data
account.update_entity(@entity_id,options).data
end
tests('#delete entity').formats(DELETE_DATA_FORMAT) do
account.delete_entity(entity_id).data
account.delete_entity(@entity_id).data
end
end
tests('failure') do