Sha256: f34b41492cea8dc73b46010cabb55e0dfe126f59d512625f6e78d0f05df3b579

Contents?: true

Size: 843 Bytes

Versions: 53

Compression:

Stored size: 843 Bytes

Contents

Shindo.tests('Fog::Compute[:aws] | vpc requests', ['aws']) do

  @vpcs_format = {
    'vpcSet' => [{
      'vpcId'           => String,
      'state'           => String,
      'cidrBlock'       => String,
      'dhcpOptionsId'   => String,
      'tagSet'          => Hash,
      'instanceTenancy' => Fog::Nullable::String,
    }],
    'requestId' => String
  }

  tests('success') do

    @vpc_id = nil

    tests('#create_vpc').formats(@vpcs_format) do
      data = Fog::Compute[:aws].create_vpc('10.255.254.0/28').body
      @vpc_id = data['vpcSet'].first['vpcId']
      data
    end

    tests('#describe_vpcs').formats(@vpcs_format) do
      Fog::Compute[:aws].describe_vpcs.body
    end

    tests("#delete_vpc('#{@vpc_id}')").formats(AWS::Compute::Formats::BASIC) do
      Fog::Compute[:aws].delete_vpc(@vpc_id).body
    end

  end
end

Version data entries

53 entries across 53 versions & 14 rubygems

Version Path
fog-1.7.0 tests/aws/requests/compute/vpc_tests.rb
fog-1.6.0 tests/aws/requests/compute/vpc_tests.rb
fog-1.5.0 tests/aws/requests/compute/vpc_tests.rb
rackspace-fog-1.4.2 tests/aws/requests/compute/vpc_tests.rb
fog-1.4.0 tests/aws/requests/compute/vpc_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/aws/requests/compute/vpc_tests.rb
michiels-fog-1.3.1 tests/aws/requests/compute/vpc_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/aws/requests/compute/vpc_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/aws/requests/compute/vpc_tests.rb
fog-1.3.1 tests/aws/requests/compute/vpc_tests.rb
fog-1.3.0 tests/aws/requests/compute/vpc_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/aws/requests/compute/vpc_tests.rb
fog-1.2.0 tests/aws/requests/compute/vpc_tests.rb