Sha256: ee9fc0bb6d88f12b14f4e47a0ebc216fad133812dddcfce205dcbf2135081400

Contents?: true

Size: 1.05 KB

Versions: 79

Compression:

Stored size: 1.05 KB

Contents

Shindo.tests('Fog::Compute[:aws] | account tests', ['aws']) do
  if Fog.mocking?
    tests('check for vpc') do
      tests('supports both vpc and ec2 in compatibility mode').succeeds do
        client = Fog::Compute[:aws]
        client.enable_ec2_classic
        data = Fog::Compute[:aws].describe_account_attributes.body
        data['accountAttributeSet'].any? { |s| [*s["values"]].include?("VPC") && [*s["values"]].include?("EC2") }
      end
      tests('supports VPC in vpc mode').succeeds do
        client = Fog::Compute[:aws]
        client.enable_ec2_classic
        data = Fog::Compute[:aws].describe_account_attributes.body
        data['accountAttributeSet'].any? { |s| [*s["values"]].include?("VPC") }
      end

      tests('does not support VPC and EC2 in vpc mode').succeeds do
        client = Fog::Compute[:aws]
        client.disable_ec2_classic
        data = Fog::Compute[:aws].describe_account_attributes.body
        !data['accountAttributeSet'].any? { |s| [*s["values"]].include?("VPC") && [*s["values"]].include?("EC2") }
      end
    end
  end
end

Version data entries

79 entries across 77 versions & 6 rubygems

Version Path
fog-aws-3.12.0 tests/requests/compute/client_tests.rb
fog-aws-3.11.0 tests/requests/compute/client_tests.rb
fog-aws-3.10.0 tests/requests/compute/client_tests.rb
fog-aws-3.9.0 tests/requests/compute/client_tests.rb
fog-aws-3.8.0 tests/requests/compute/client_tests.rb
fog-aws-3.7.0 tests/requests/compute/client_tests.rb
fog-aws-3.6.7 tests/requests/compute/client_tests.rb
fog-aws-3.6.6 tests/requests/compute/client_tests.rb
fog-aws-3.6.5 tests/requests/compute/client_tests.rb
fog-aws-3.6.4 tests/requests/compute/client_tests.rb
fog-aws-3.6.3 tests/requests/compute/client_tests.rb
fog-aws-3.6.2 tests/requests/compute/client_tests.rb
fog-aws-3.5.2 tests/requests/compute/client_tests.rb
fog-aws-3.5.1 tests/requests/compute/client_tests.rb
fog-aws-3.5.0 tests/requests/compute/client_tests.rb
fog-aws-3.4.0 tests/requests/compute/client_tests.rb
fog-aws-3.3.0 tests/requests/compute/client_tests.rb
fog-aws-3.2.0 tests/requests/compute/client_tests.rb
fog-aws-3.1.0 tests/requests/compute/client_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/tests/requests/compute/client_tests.rb