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
hpfog-0.0.20 tests/aws/requests/compute/vpc_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/aws/requests/compute/vpc_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/aws/requests/compute/vpc_tests.rb
fog-nirvanix-1.8.2 tests/aws/requests/compute/vpc_tests.rb
fog-1.11.1 tests/aws/requests/compute/vpc_tests.rb
fog-1.11.0 tests/aws/requests/compute/vpc_tests.rb
fog-nirvanix-1.8.1 tests/aws/requests/compute/vpc_tests.rb
fog-1.10.1 tests/aws/requests/compute/vpc_tests.rb
fog-parser-fix-1.6.1 tests/aws/requests/compute/vpc_tests.rb
fog-test-again-1.6.0 tests/aws/requests/compute/vpc_tests.rb
fog-test-me-1.10.0 tests/aws/requests/compute/vpc_tests.rb
fog-parser-fix-1.6.0 tests/aws/requests/compute/vpc_tests.rb
fog-1.10.0 tests/aws/requests/compute/vpc_tests.rb
fog-1.9.0 tests/aws/requests/compute/vpc_tests.rb
fog-maestrodev-1.8.0.20130114204828 tests/aws/requests/compute/vpc_tests.rb
fog-maestrodev-1.8.0.20130111070250 tests/aws/requests/compute/vpc_tests.rb
fog-maestrodev-1.8.0.20130109172219 tests/aws/requests/compute/vpc_tests.rb
fog-sgonyea-1.8.1 tests/aws/requests/compute/vpc_tests.rb
fog-1.8.0 tests/aws/requests/compute/vpc_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/aws/requests/compute/vpc_tests.rb