Sha256: dc005302a27055aa479d75e25a11f6d2c36f057fd891dc68f71813a04ca08f86

Contents?: true

Size: 773 Bytes

Versions: 10

Compression:

Stored size: 773 Bytes

Contents

Shindo.tests('Rackspace::Servers#create_image', 'rackspace') do
  tests('success') do

    before do
      @server_id = Rackspace[:servers].create_server(1, 3, 'fogcreateimage').body['server']['id']
      Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
      @data = Rackspace[:servers].create_image(@server_id).body['image']
      @image_id = @data['id']
    end

    after do
      Rackspace[:servers].delete_server(@server_id)
      Fog.wait_for { Rackspace[:servers].get_image_details(@image_id).body['image']['status'] == 'ACTIVE' }
      Rackspace[:servers].delete_image(@image_id)
    end

    test('has proper output format') do
      has_format(@data, Rackspace::Servers::Formats::IMAGE)
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-0.1.0 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.100 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.99 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.98 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.97 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.96 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.95 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.94 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.93 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.92 tests/rackspace/requests/servers/create_image_tests.rb