Sha256: bc24930e381b59f675dde400d836f3af49faae37eacceed90dfd62cc8a9852d2

Contents?: true

Size: 505 Bytes

Versions: 68

Compression:

Stored size: 505 Bytes

Contents

Shindo.tests("Fog::Compute[:aws] | vpcs", ['aws']) do

  collection_tests(Fog::Compute[:aws].vpcs, {:cidr_block => '10.0.10.0/28'}, true)

  tests('tags') do
    test_tags = {'foo' => 'bar'}
    @vpc = Fog::Compute[:aws].vpcs.create(:cidr_block => '1.2.3.4/24', :tags => test_tags)

    tests('@vpc.tags').returns(test_tags) do
      @vpc.reload.tags
    end

    unless Fog.mocking?
      Fog::Compute[:aws].tags.all('resource-id' => @vpc.id).each {|tag| tag.destroy}
    end

    @vpc.destroy
  end
end

Version data entries

68 entries across 66 versions & 5 rubygems

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