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
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-ecloud-0.1.1/tests/compute/models/ssh_key_tests.rb
fog-ecloud-0.1.3 tests/compute/models/ssh_key_tests.rb
fog-ecloud-0.1.2 tests/compute/models/ssh_key_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/ecloud/compute/models/ssh_key_tests.rb
fog-ecloud-0.1.1 tests/compute/models/ssh_key_tests.rb
fog-ecloud-0.1.0 tests/compute/models/ssh_key_tests.rb
fog-ecloud-0.0.2 tests/compute/models/ssh_key_tests.rb
fog-ecloud-0.0.1 tests/compute/models/ssh_key_tests.rb
fog-1.25.0 tests/ecloud/compute/models/ssh_key_tests.rb
nsidc-fog-1.24.1 tests/ecloud/compute/models/ssh_key_tests.rb
fog-1.24.0 tests/ecloud/compute/models/ssh_key_tests.rb
ns-fog-1.22.11 tests/ecloud/compute/models/ssh_key_tests.rb
ns-fog-1.22.10 tests/ecloud/compute/models/ssh_key_tests.rb
ns-fog-1.22.9 tests/ecloud/compute/models/ssh_key_tests.rb
ns-fog-1.22.8 tests/ecloud/compute/models/ssh_key_tests.rb
ns-fog-1.22.7 tests/ecloud/compute/models/ssh_key_tests.rb
ns-fog-1.22.6 tests/ecloud/compute/models/ssh_key_tests.rb
fog-1.23.0 tests/ecloud/compute/models/ssh_key_tests.rb
ns-fog-1.22.4 tests/ecloud/compute/models/ssh_key_tests.rb
ns-fog-1.22.3 tests/ecloud/compute/models/ssh_key_tests.rb