Sha256: 3a00d3b3edf507a6d381655cbbc0cca3727f87e425969db97f023d114c4d0120

Contents?: true

Size: 569 Bytes

Versions: 58

Compression:

Stored size: 569 Bytes

Contents

Shindo.tests('Fog::Compute[:digitalocean] | power on/off/shutdown requests', 
             ['digitalocean', 'compute']) do

  service = Fog::Compute[:digitalocean]
  server = fog_test_server

  tests('success') do

    test('#power_off_server') do
      service.power_off_server(server.id).body['status'] == 'OK'
    end

    test('#power_on_server') do
      service.power_on_server(server.id).body['status'] == 'OK'
    end
    
    test('#shutdown_server') do
      service.shutdown_server(server.id).body['status'] == 'OK'
    end
    
    server.start

  end

end

Version data entries

58 entries across 58 versions & 4 rubygems

Version Path
fog-maestrodev-1.15.0.20130927082724 tests/digitalocean/requests/compute/power_state_tests.rb
fog-maestrodev-1.15.0.20130829165835 tests/digitalocean/requests/compute/power_state_tests.rb
fog-1.15.0 tests/digitalocean/requests/compute/power_state_tests.rb
gapinc-fog-1.14.0 tests/digitalocean/requests/compute/power_state_tests.rb
fog-maestrodev-1.14.0.20130806165225 tests/digitalocean/requests/compute/power_state_tests.rb
fog-1.14.0 tests/digitalocean/requests/compute/power_state_tests.rb
fog-1.13.0 tests/digitalocean/requests/compute/power_state_tests.rb
gapinc-fog-1.12.1.2 tests/digitalocean/requests/compute/power_state_tests.rb
gapinc-fog-1.12.1.1 tests/digitalocean/requests/compute/power_state_tests.rb
gapinc-fog-1.12.1a tests/digitalocean/requests/compute/power_state_tests.rb
gapinc-fog-1.12.1 tests/digitalocean/requests/compute/power_state_tests.rb
fog-1.12.1 tests/digitalocean/requests/compute/power_state_tests.rb
fog-1.12.0 tests/digitalocean/requests/compute/power_state_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/digitalocean/requests/compute/power_state_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/digitalocean/requests/compute/power_state_tests.rb
fog-1.11.1 tests/digitalocean/requests/compute/power_state_tests.rb
fog-1.11.0 tests/digitalocean/requests/compute/power_state_tests.rb
fog-1.10.1 tests/digitalocean/requests/compute/power_state_tests.rb