Sha256: d477c73319c30e77d7e19874265dd8841d3eea2cb71fab6ef198571582127c53

Contents?: true

Size: 646 Bytes

Versions: 30

Compression:

Stored size: 646 Bytes

Contents

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

Version data entries

30 entries across 30 versions & 4 rubygems

Version Path
fog-1.38.0 tests/cloudsigma/models/volume_tests.rb
fog-1.37.0 tests/cloudsigma/models/volume_tests.rb
fog-1.36.0 tests/cloudsigma/models/volume_tests.rb
fog-1.35.0 tests/cloudsigma/models/volume_tests.rb
fog-2.0.0.pre.0 tests/cloudsigma/models/volume_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/cloudsigma/models/volume_tests.rb
fog-1.34.0 tests/cloudsigma/models/volume_tests.rb
fog-1.33.0 tests/cloudsigma/models/volume_tests.rb
fog-1.32.0 tests/cloudsigma/models/volume_tests.rb
fog-1.31.0 tests/cloudsigma/models/volume_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/cloudsigma/models/volume_tests.rb
fog-1.30.0 tests/cloudsigma/models/volume_tests.rb
fog-1.29.0 tests/cloudsigma/models/volume_tests.rb
fog-1.28.0 tests/cloudsigma/models/volume_tests.rb
fog-1.27.0 tests/cloudsigma/models/volume_tests.rb
fog-1.26.0 tests/cloudsigma/models/volume_tests.rb
fog-1.25.0 tests/cloudsigma/models/volume_tests.rb
nsidc-fog-1.24.1 tests/cloudsigma/models/volume_tests.rb
fog-1.24.0 tests/cloudsigma/models/volume_tests.rb
ns-fog-1.22.11 tests/cloudsigma/models/volume_tests.rb