Sha256: ec025af686d949c88602e626537e5b5c180b25dea549207ace874a76c0cb70fe

Contents?: true

Size: 771 Bytes

Versions: 4

Compression:

Stored size: 771 Bytes

Contents

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

    before do
      @server_id = Rackspace[:servers].create_server(1, 3, 'fogcreateserver').body['server']['id']
      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)
      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
      validate_format(@data, Rackspace::Servers::Formats::IMAGE)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-0.0.71 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.70 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.69 tests/rackspace/requests/servers/create_image_tests.rb
fog-0.0.68 tests/rackspace/requests/servers/create_image_tests.rb