mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
No EOL
645 B
Ruby
21 lines
No EOL
645 B
Ruby
Shindo.tests('Fog::Compute[:cloudsigma] | volume model', ['cloudsigma']) do
|
|
volumes = Fog::Compute[:cloudsigma].volumes
|
|
volume_create_args = {:name => 'fogmodeltest', :size => 1000**3, :media => :cdrom}
|
|
|
|
model_tests(volumes, volume_create_args, true) do
|
|
@instance.wait_for(timeout=60) { status == 'unmounted' }
|
|
|
|
tests('#update').succeeds do
|
|
@instance.media = 'disk'
|
|
#@instance.size = 1024**3 # resizes disk
|
|
@instance.save
|
|
|
|
@instance.reload
|
|
@instance.wait_for(timeout=60) { status == 'unmounted' }
|
|
|
|
#returns(1024**3) { @instance.size }
|
|
returns('disk') { @instance.media }
|
|
end
|
|
end
|
|
|
|
end |