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

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/cloudsigma/models/snapshot_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/cloudsigma/models/snapshot_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/cloudsigma/models/snapshot_tests.rb
fog-1.42.1 tests/cloudsigma/models/snapshot_tests.rb
fog-2.0.0 tests/cloudsigma/models/snapshot_tests.rb
fog-1.42.0 tests/cloudsigma/models/snapshot_tests.rb
fog-1.41.0 tests/cloudsigma/models/snapshot_tests.rb
fog-1.40.0 tests/cloudsigma/models/snapshot_tests.rb
fog-1.39.0 tests/cloudsigma/models/snapshot_tests.rb