Sha256: c647f11d908787e6c066dfa04b76fe177493085a0e7d4ab80f139bce95f4ceee

Contents?: true

Size: 532 Bytes

Versions: 4

Compression:

Stored size: 532 Bytes

Contents

Shindo.tests('Fog::Compute[:cloudsigma] | snapshots collection', ['cloudsigma']) do
  pending if Fog.mocking?

  volume = Fog::Compute[:cloudsigma].volumes.create(:name => 'fogtest', :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}

  collection_tests(snapshots, snapshot_create_args, true) do
    @instance.wait_for(timeout=60) { available? }
  end

  volume.destroy

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fog-2.3.0 tests/cloudsigma/models/snapshots_tests.rb
fog-ifeel-2.2.0 tests/cloudsigma/models/snapshots_tests.rb
fog-2.2.0 tests/cloudsigma/models/snapshots_tests.rb
fog-2.1.0 tests/cloudsigma/models/snapshots_tests.rb