Sha256: ad0474543b0bfb928a3f4d45ee6c1d901c9799e49885e3e8f1ef8ba5be2699b8

Contents?: true

Size: 540 Bytes

Versions: 58

Compression:

Stored size: 540 Bytes

Contents

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

  @key_format = {
    'id'             => Integer,
    'name'           => String,
    'ssh_pub_key'    => String
  }

  service = Fog::Compute[:digitalocean]

  tests('success') do

    tests('#create_ssh_key').formats({'status' => 'OK', 'ssh_key' => @key_format}) do
      @key = Fog::Compute[:digitalocean].create_ssh_key 'fookey', 'fookey'
      @key.body
    end
    
  end

  service.destroy_ssh_key @key.body['ssh_key']['id']

end

Version data entries

58 entries across 58 versions & 4 rubygems

Version Path
fog-1.22.0 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-1.21.0 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-1.20.0 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-1.19.0 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/digitalocean/requests/compute/create_ssh_key_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/digitalocean/requests/compute/create_ssh_key_tests.rb