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-maestrodev-1.18.0.20131114200144 tests/aws/requests/compute/vpc_tests.rb
gapinc-fog-1.12.1.2.1 tests/aws/requests/compute/vpc_tests.rb
fog-maestrodev-1.18.0.20131112185232 tests/aws/requests/compute/vpc_tests.rb
fog-maestrodev-1.18.0.20131111203459 tests/aws/requests/compute/vpc_tests.rb
fog-1.18.0 tests/aws/requests/compute/vpc_tests.rb
fog-1.17.0 tests/aws/requests/compute/vpc_tests.rb
fog-1.16.0 tests/aws/requests/compute/vpc_tests.rb
fog-maestrodev-1.15.0.20130927082724 tests/aws/requests/compute/vpc_tests.rb
fog-maestrodev-1.15.0.20130829165835 tests/aws/requests/compute/vpc_tests.rb
fog-1.15.0 tests/aws/requests/compute/vpc_tests.rb
gapinc-fog-1.14.0 tests/aws/requests/compute/vpc_tests.rb
fog-maestrodev-1.14.0.20130806165225 tests/aws/requests/compute/vpc_tests.rb
fog-1.14.0 tests/aws/requests/compute/vpc_tests.rb
fog-1.13.0 tests/aws/requests/compute/vpc_tests.rb
gapinc-fog-1.12.1.2 tests/aws/requests/compute/vpc_tests.rb
gapinc-fog-1.12.1.1 tests/aws/requests/compute/vpc_tests.rb
gapinc-fog-1.12.1a tests/aws/requests/compute/vpc_tests.rb
gapinc-fog-1.12.1 tests/aws/requests/compute/vpc_tests.rb
fog-1.12.1 tests/aws/requests/compute/vpc_tests.rb
fog-1.12.0 tests/aws/requests/compute/vpc_tests.rb