Sha256: 7234616fc863c2833321aec2e2de70a5fc8aa1b9de8bd65070e159733dab507d

Contents?: true

Size: 869 Bytes

Versions: 92

Compression:

Stored size: 869 Bytes

Contents

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

Shindo.tests("Fog::Compute[:#{provider}] | operating_system", [provider.to_s]) do
  connection = Fog::Compute[provider]
  @organization = connection.organizations.first
  @environment  = @organization.environments.find{|e| e.name == config[:server_attributes][:environment_name]} || @organization.environments.first
  @compute_pool = @environment.compute_pools.first

  tests('#all').succeeds do
    family            = @compute_pool.operating_system_families.first
    operating_systems = family.operating_systems

    returns(false) { operating_systems.empty? }
  end

  tests('#get').succeeds do
    family           = @compute_pool.operating_system_families.first
    operating_system = family.operating_systems.first

    returns(false) { family.operating_systems.get(operating_system.href).nil? }
  end
end

Version data entries

92 entries across 90 versions & 11 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ecloud-0.3.0/tests/compute/models/operating_system_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ecloud-0.3.0/tests/compute/models/operating_system_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ecloud-0.3.0/tests/compute/models/operating_system_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-ecloud-0.1.1/tests/compute/models/operating_system_tests.rb
fog-ecloud-0.3.0 tests/compute/models/operating_system_tests.rb
fog-ecloud-0.2.0 tests/compute/models/operating_system_tests.rb
fog-ecloud-0.1.3 tests/compute/models/operating_system_tests.rb
fog-ecloud-0.1.2 tests/compute/models/operating_system_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/ecloud/compute/models/operating_system_tests.rb
fog-ecloud-0.1.1 tests/compute/models/operating_system_tests.rb
fog-ecloud-0.1.0 tests/compute/models/operating_system_tests.rb
fog-ecloud-0.0.2 tests/compute/models/operating_system_tests.rb
fog-ecloud-0.0.1 tests/compute/models/operating_system_tests.rb
fog-1.25.0 tests/ecloud/compute/models/operating_system_tests.rb
nsidc-fog-1.24.1 tests/ecloud/compute/models/operating_system_tests.rb
fog-1.24.0 tests/ecloud/compute/models/operating_system_tests.rb
ns-fog-1.22.11 tests/ecloud/compute/models/operating_system_tests.rb
ns-fog-1.22.10 tests/ecloud/compute/models/operating_system_tests.rb
ns-fog-1.22.9 tests/ecloud/compute/models/operating_system_tests.rb
ns-fog-1.22.8 tests/ecloud/compute/models/operating_system_tests.rb