Sha256: c0e5d1330d4e76f27da001cdd06841c0bdb39cbd11671c051a067b9266da1703

Contents?: true

Size: 803 Bytes

Versions: 108

Compression:

Stored size: 803 Bytes

Contents

Shindo.tests("Fog::Image[:openstack] | image", ['openstack']) do

  tests('success') do
    tests('#create').succeeds do
      @instance = Fog::Image[:openstack].images.create(:name => 'test image')
      !@instance.id.nil?
    end

    tests('#update').succeeds do
      @instance.name = 'edit test image'
      @instance.update
      @instance.name == 'edit test image'
    end

    tests('#get image metadata').succeeds do
      @instance.metadata
    end

    tests('#add member').succeeds do
      @instance.add_member(@instance.owner)
    end

    tests('#show members').succeeds do
      @instance.members
    end

    tests('#remove member').succeeds do
      @instance.remove_member(@instance.owner)
    end

    tests('#destroy').succeeds do
      @instance.destroy == true
    end

  end
end

Version data entries

108 entries across 108 versions & 12 rubygems

Version Path
fog-openstack-0.1.7 tests/openstack/models/image/image_tests.rb
fog-openstack-0.1.6 tests/openstack/models/image/image_tests.rb
fog-openstack-0.1.5 tests/openstack/models/image/image_tests.rb
fog-openstack-0.1.4 tests/openstack/models/image/image_tests.rb
fog-openstack-0.1.3 tests/openstack/models/image/image_tests.rb
fog-openstack-0.1.2 tests/openstack/models/image/image_tests.rb
fog-openstack-0.1.1 tests/openstack/models/image/image_tests.rb
fog-openstack-0.1.0 tests/openstack/models/image/image_tests.rb
fog-1.37.0 tests/openstack/models/image/image_tests.rb
fog-1.36.0 tests/openstack/models/image/image_tests.rb
fog-1.35.0 tests/openstack/models/image/image_tests.rb
fog-2.0.0.pre.0 tests/openstack/models/image/image_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/openstack/models/image/image_tests.rb
fog-1.34.0 tests/openstack/models/image/image_tests.rb
fog-1.33.0 tests/openstack/models/image/image_tests.rb
fog-1.32.0 tests/openstack/models/image/image_tests.rb
fog-1.31.0 tests/openstack/models/image/image_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/openstack/models/image/image_tests.rb
fog-1.30.0 tests/openstack/models/image/image_tests.rb
fog-1.29.0 tests/openstack/models/image/image_tests.rb