Sha256: 2bc55397cbc4fca0368860c2cc13363b7a5aa194ae8d42b3d04d1277c8f3876b
Contents?: true
Size: 680 Bytes
Versions: 9
Compression:
Stored size: 680 Bytes
Contents
Shindo.tests('Fog::Compute[:cloudsigma] | snapshot model', ['cloudsigma']) do volume = Fog::Compute[:cloudsigma].volumes.create(:name => 'fogmodeltest', :size => 1024**3, :media => :disk) volume.wait_for { available? } unless Fog.mocking? snapshots = Fog::Compute[:cloudsigma].snapshots snapshot_create_args = {:name => 'fogtest', :drive => volume.uuid} model_tests(snapshots, snapshot_create_args, true) do @instance.wait_for(timeout=60) { available? } tests('#update').succeeds do @instance.name = 'fogtest_renamed' @instance.save @instance.reload returns('fogtest_renamed') { @instance.name } end end volume.destroy end
Version data entries
9 entries across 7 versions & 2 rubygems