Sha256: 98fbcb1006047a397f579777eaa04f0af6074a98f105fce0b9ef37994cb36127

Contents?: true

Size: 1.16 KB

Versions: 16

Compression:

Stored size: 1.16 KB

Contents

Shindo.tests('Rackspace::Compute | resize request', ['rackspace']) do

    @confirm_server = Rackspace[:compute].servers.create(:flavor_id => 1, :image_id => 19)

    @revert_server = Rackspace[:compute].servers.create(:flavor_id => 1, :image_id => 19)

    @confirm_server.wait_for { ready? }
    tests("#resize_server(#{@confirm_server.id}, 2) # to confirm").succeeds do
      Rackspace[:compute].resize_server(@confirm_server.id, 2)
    end

    @revert_server.wait_for { ready? }
    tests("#resize_server(#{@revert_server.id}, 2) # to revert").succeeds do
      Rackspace[:compute].resize_server(@revert_server.id, 2)
    end

    @confirm_server.wait_for { status == 'VERIFY_RESIZE' }
    tests("#confirm_resized_server(#{@confirm_server.id})").succeeds do
      Rackspace[:compute].confirm_resized_server(@confirm_server.id)
    end

    @revert_server.wait_for { status == 'VERIFY_RESIZE' }
    tests("#revert_resized_server(#{@revert_server.id})").succeeds do
      Rackspace[:compute].revert_resized_server(@revert_server.id)
    end

    @confirm_server.wait_for { ready? }
    @confirm_server.destroy

    @revert_server.wait_for { ready? }
    @revert_server.destroy

end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
fog-0.8.1 tests/compute/requests/rackspace/resize_tests.rb
fog-0.8.0 tests/compute/requests/rackspace/resize_tests.rb
fog-0.7.2 tests/compute/requests/rackspace/resize_tests.rb
fog-0.7.1 tests/compute/requests/rackspace/resize_tests.rb
fog-0.7.0 tests/compute/requests/rackspace/resize_tests.rb
fog-0.6.0 tests/compute/requests/rackspace/resize_tests.rb
fog-0.5.3 tests/compute/requests/rackspace/resize_tests.rb
fog-0.5.2 tests/compute/requests/rackspace/resize_tests.rb
fog-0.5.1 tests/compute/requests/rackspace/resize_tests.rb
fog-0.5.0 tests/compute/requests/rackspace/resize_tests.rb
phpfog-fog-0.4.1.3 tests/compute/requests/rackspace/resize_tests.rb
phpfog-fog-0.4.1.2 tests/compute/requests/rackspace/resize_tests.rb
phpfog-fog-0.4.1.1 tests/compute/requests/rackspace/resize_tests.rb
phpfog-fog-0.4.1 tests/compute/requests/rackspace/resize_tests.rb
fog-0.4.1 tests/compute/requests/rackspace/resize_tests.rb
fog-0.4.0 tests/compute/requests/rackspace/resize_tests.rb