Sha256: d39cde8ce5770c41a6f756edde087f075385691e60c4a5a4374e331b523c2fee

Contents?: true

Size: 644 Bytes

Versions: 124

Compression:

Stored size: 644 Bytes

Contents

Shindo.tests('Fog::Compute[:ibm] | image', ['ibm']) do

  @image_id = '20010001'
  @clone_name = 'fog-test-clone-image-' + Time.now.to_i.to_s(32)

  tests('success') do

    tests("Fog::Compute[:ibm].images.get('#{@image_id}')") do
      @image = Fog::Compute[:ibm].images.get(@image_id)
      returns(@image_id) { @image.id }
    end

    tests("Fog::Compute::Image#clone") do
      clone_id = @image.clone(@clone_name, @clone_name)
      @clone = Fog::Compute[:ibm].images.get(clone_id)
      returns(@clone_name) { @clone.name }
    end

    tests("Fog::Compute::Image#destroy") do
      returns(true) { @clone.destroy }
    end

  end

end

Version data entries

124 entries across 122 versions & 18 rubygems

Version Path
fog-1.18.0 tests/ibm/models/compute/image_tests.rb
fog-1.17.0 tests/ibm/models/compute/image_tests.rb
fog-1.16.0 tests/ibm/models/compute/image_tests.rb
fog-maestrodev-1.15.0.20130927082724 tests/ibm/models/compute/image_tests.rb
fog-maestrodev-1.15.0.20130829165835 tests/ibm/models/compute/image_tests.rb
fog-1.15.0 tests/ibm/models/compute/image_tests.rb
gapinc-fog-1.14.0 tests/ibm/models/compute/image_tests.rb
fog-maestrodev-1.14.0.20130806165225 tests/ibm/models/compute/image_tests.rb
fog-1.14.0 tests/ibm/models/compute/image_tests.rb
fog-1.13.0 tests/ibm/models/compute/image_tests.rb
gapinc-fog-1.12.1.2 tests/ibm/models/compute/image_tests.rb
gapinc-fog-1.12.1.1 tests/ibm/models/compute/image_tests.rb
gapinc-fog-1.12.1a tests/ibm/models/compute/image_tests.rb
gapinc-fog-1.12.1 tests/ibm/models/compute/image_tests.rb
fog-1.12.1 tests/ibm/models/compute/image_tests.rb
fog-1.12.0 tests/ibm/models/compute/image_tests.rb
hpfog-0.0.20 tests/ibm/models/compute/image_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/ibm/models/compute/image_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/ibm/models/compute/image_tests.rb
fog-nirvanix-1.8.2 tests/ibm/models/compute/image_tests.rb