Sha256: 95684c247e8d3bd19b9599d6f6cbe5b0e108e2f7ba9c26af21cf52a376c1fdfc

Contents?: true

Size: 802 Bytes

Versions: 7

Compression:

Stored size: 802 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

7 entries across 7 versions & 4 rubygems

Version Path
fog-parser-fix-1.6.1 tests/openstack/models/image/image_tests.rb
fog-test-again-1.6.0 tests/openstack/models/image/image_tests.rb
fog-parser-fix-1.6.0 tests/openstack/models/image/image_tests.rb
fog-1.6.0 tests/openstack/models/image/image_tests.rb
fog-1.5.0 tests/openstack/models/image/image_tests.rb
rackspace-fog-1.4.2 tests/openstack/models/image/image_tests.rb
fog-1.4.0 tests/openstack/models/image/image_tests.rb