Sha256: 8125cd0ab3db3f2f96cd848ad4a13b3950ea3f85f6966694cc7403f25fbf5099

Contents?: true

Size: 634 Bytes

Versions: 58

Compression:

Stored size: 634 Bytes

Contents

Shindo.tests('Fog::Compute[:digitalocean] | destroy_ssh_key request', ['digitalocean', 'compute']) do

  service = Fog::Compute[:digitalocean]

  tests('success') do

    test('#destroy_ssh_key') do
      key = service.create_ssh_key 'fookey', 'fookey'
      service.destroy_ssh_key(key.body['ssh_key']['id']).body['status'] == 'OK'
    end
    
  end

  tests('failures') do
    test 'delete invalid key' do
      # DigitalOcean API returns 500 with this sometimes
      # so mark it as pending in real mode
      pending unless Fog.mocking?
      service.destroy_ssh_key('00000000000').body['status'] == 'ERROR'
    end
  end 

end

Version data entries

58 entries across 58 versions & 4 rubygems

Version Path
fog-maestrodev-1.18.0.20131209090811 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131206115947 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131205181604 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131127194823 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131126183714 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131126122111 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131125111730 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131125083406 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131123105121 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131122203507 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131121075022 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131118164830 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131115184302 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131114200144 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
gapinc-fog-1.12.1.2.1 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131112185232 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131111203459 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.18.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.17.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.16.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb