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

volume(s) are not considered to be universally available

This commit is contained in:
geemus 2012-05-28 15:52:09 -05:00
parent df6aae8760
commit fb3c8296ae
4 changed files with 0 additions and 61 deletions

View file

@ -1,18 +0,0 @@
for provider, config in compute_providers
Shindo.tests("Fog::Compute[:#{provider}] | volume", [provider.to_s]) do
volume_tests(Fog::Compute[provider], config, config[:mocked]) do
if Fog.mocking? && !config[:mocked]
pending
else
responds_to(:ready?)
responds_to(:flavor)
end
end
end
end

View file

@ -1,10 +0,0 @@
for provider, config in compute_providers
Shindo.tests("Fog::Compute[:#{provider}] | volumes", [provider.to_s]) do
volumes_tests(Fog::Compute[provider], (config[:volume_attributes] || {}), config[:mocked])
end
end

View file

@ -1,22 +0,0 @@
def volume_tests(connection, params = {}, mocks_implemented = true)
model_tests(connection.volumes, params[:volume_attributes], mocks_implemented) do
if !Fog.mocking? || mocks_implemented
@instance.wait_for { ready? }
end
@server = connection.servers.create(params[:server_attributes])
@server.wait_for { ready? }
tests('attach').succeeds do
@instance.attach(@server)
end
tests('detach').succeeds do
@instance.detach
end
@server.destroy
end
end

View file

@ -1,11 +0,0 @@
def volumes_tests(connection, params = {}, mocks_implemented = true)
collection_tests(connection.volumes, params, mocks_implemented) do
if !Fog.mocking? || mocks_implemented
@instance.wait_for { ready? }
end
end
end