Sha256: 03c638b6d805d7c73978ecdf8fca7f7b040f7d2bb48071e1bc40bf6538f681c4

Contents?: true

Size: 624 Bytes

Versions: 13

Compression:

Stored size: 624 Bytes

Contents

Shindo.tests('Fog::Compute[:cloudsigma] | volume model', ['cloudsigma']) do
  volumes = Fog::Compute[:cloudsigma].volumes
  volume_create_args = {:name => 'fogmodeltest', :size => 1024**3, :media => :cdrom}

  model_tests(volumes, volume_create_args, true) do
    @instance.wait_for(timeout=60) { available? }

    tests('#update').succeeds do
      @instance.media = 'disk'
      #@instance.size = 1024**3 # resizes disk
      @instance.save

      @instance.reload
      @instance.wait_for(timeout=60) { available? }

      #returns(1024**3) { @instance.size }
      returns('disk') { @instance.media }
    end
  end

end

Version data entries

13 entries across 11 versions & 3 rubygems

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