Sha256: ebe54a5c2a9ba33ca1938ee42fc6c099e804e204b49062c659dcc727c6372fa7

Contents?: true

Size: 798 Bytes

Versions: 14

Compression:

Stored size: 798 Bytes

Contents

Shindo.tests('Fog::Compute[:digitalocean] | ssh_keys collection', ['digitalocean']) do

  service =  Fog::Compute[:digitalocean]

  tests('The ssh_keys collection') do
    key = service.ssh_keys.create :name => 'fookey',
                                  :ssh_pub_key => 'fookey'
    [:all, :get].each do |method|
      test("should respond to #{method}") do
        service.ssh_keys.respond_to? method
      end
    end

    tests('should have Fog::Compute::DigitalOcean::SshKey inside') do
      service.ssh_keys.each do |s|
        test { s.kind_of? Fog::Compute::DigitalOcean::SshKey }
      end
    end

    tests('should be able to get a model') do
      test('by instance id') do
        service.ssh_keys.get(key.id).kind_of? Fog::Compute::DigitalOcean::SshKey
      end
    end

  end

end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
gapinc-fog-1.12.1.2.1 tests/digitalocean/models/compute/ssh_keys_tests.rb
fog-1.14.0 tests/digitalocean/models/compute/ssh_keys_tests.rb
fog-1.13.0 tests/digitalocean/models/compute/ssh_keys_tests.rb
gapinc-fog-1.12.1.2 tests/digitalocean/models/compute/ssh_keys_tests.rb
gapinc-fog-1.12.1.1 tests/digitalocean/models/compute/ssh_keys_tests.rb
gapinc-fog-1.12.1a tests/digitalocean/models/compute/ssh_keys_tests.rb
gapinc-fog-1.12.1 tests/digitalocean/models/compute/ssh_keys_tests.rb
fog-1.12.1 tests/digitalocean/models/compute/ssh_keys_tests.rb
fog-1.12.0 tests/digitalocean/models/compute/ssh_keys_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/digitalocean/models/compute/ssh_keys_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/digitalocean/models/compute/ssh_keys_tests.rb
fog-1.11.1 tests/digitalocean/models/compute/ssh_keys_tests.rb
fog-1.11.0 tests/digitalocean/models/compute/ssh_keys_tests.rb
fog-1.10.1 tests/digitalocean/models/compute/ssh_keys_tests.rb