Sha256: 230b6aa932f3edc3273f1b14a75acb112a43f4180373b3364a47f3ed15380812

Contents?: true

Size: 534 Bytes

Versions: 87

Compression:

Stored size: 534 Bytes

Contents

provider, config = :ecloud, compute_providers[:ecloud]

Shindo.tests("Fog::Compute[:#{provider}] | ssh_keys", [provider.to_s]) do
  connection = Fog::Compute[provider]
  @organization = connection.organizations.first
  @admin_organization = @organization.admin
  @admin_organization.reload
  @ssh_keys = @admin_organization.ssh_keys

  tests('#all').succeeds do
    returns(false) { @ssh_keys.empty? }
  end

  tests('#get').succeeds do
    ssh_key = @ssh_keys.first

    returns(false) { @ssh_keys.get(ssh_key.href).nil? }
  end
end

Version data entries

87 entries across 87 versions & 10 rubygems

Version Path
ns-fog-1.22.2 tests/ecloud/compute/models/ssh_key_tests.rb
fog-1.22.1 tests/ecloud/compute/models/ssh_key_tests.rb
fog-1.22.0 tests/ecloud/compute/models/ssh_key_tests.rb
fog-1.21.0 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/ecloud/compute/models/ssh_key_tests.rb
fog-1.20.0 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/ecloud/compute/models/ssh_key_tests.rb
fog-1.19.0 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/ecloud/compute/models/ssh_key_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/ecloud/compute/models/ssh_key_tests.rb