Sha256: f47a11c9cecb211dccac524516416963b5ad09492a9b29fc2f0371525eea20dc

Contents?: true

Size: 629 Bytes

Versions: 29

Compression:

Stored size: 629 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

29 entries across 29 versions & 4 rubygems

Version Path
fog-1.37.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.36.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.35.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-2.0.0.pre.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.34.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.33.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.32.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.31.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.30.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.29.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.28.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.27.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.26.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.25.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
nsidc-fog-1.24.1 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
fog-1.24.0 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
ns-fog-1.22.11 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb
ns-fog-1.22.10 tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb