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-2.3.0 tests/ibm/models/compute/image_tests.rb
fog-ifeel-2.2.0 tests/ibm/models/compute/image_tests.rb
fog-2.2.0 tests/ibm/models/compute/image_tests.rb
fog-2.1.0 tests/ibm/models/compute/image_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/ibm/models/compute/image_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/ibm/models/compute/image_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/ibm/models/compute/image_tests.rb
fog-1.42.1 tests/ibm/models/compute/image_tests.rb
fog-2.0.0 tests/ibm/models/compute/image_tests.rb
fog-1.42.0 tests/ibm/models/compute/image_tests.rb
fog-1.41.0 tests/ibm/models/compute/image_tests.rb
fog-1.40.0 tests/ibm/models/compute/image_tests.rb
fog-1.39.0 tests/ibm/models/compute/image_tests.rb
fog-1.38.0 tests/ibm/models/compute/image_tests.rb
fog-1.37.0 tests/ibm/models/compute/image_tests.rb
fog-1.36.0 tests/ibm/models/compute/image_tests.rb
fog-1.35.0 tests/ibm/models/compute/image_tests.rb
fog-2.0.0.pre.0 tests/ibm/models/compute/image_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/ibm/models/compute/image_tests.rb
fog-1.34.0 tests/ibm/models/compute/image_tests.rb