Sha256: 027140b8ae4a55fde0b560acc04757fa8750ce0a41840c753b3e23911dc2a2b5

Contents?: true

Size: 587 Bytes

Versions: 68

Compression:

Stored size: 587 Bytes

Contents

Shindo.tests("Fog::Compute[:aws] | network_acls", ['aws']) do
  @vpc = Fog::Compute[:aws].vpcs.create('cidr_block' => '10.0.10.0/24')

  collection_tests(Fog::Compute[:aws].network_acls, { :vpc_id => @vpc.id }, true)

  tests('tags') do
    test_tags = {'foo' => 'bar'}
    @acl = Fog::Compute[:aws].network_acls.create(:vpc_id => @vpc.id, :tags => test_tags)

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

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

  @vpc.destroy
end

Version data entries

68 entries across 66 versions & 5 rubygems

Version Path
fog-aws-0.0.7 tests/models/compute/network_acls_tests.rb
fog-aws-0.0.6 tests/models/compute/network_acls_tests.rb
fog-aws-0.0.5 tests/models/compute/network_acls_tests.rb
fog-1.26.0 tests/aws/models/compute/network_acls_tests.rb
fog-1.25.0 tests/aws/models/compute/network_acls_tests.rb
nsidc-fog-1.24.1 tests/aws/models/compute/network_acls_tests.rb
fog-1.24.0 tests/aws/models/compute/network_acls_tests.rb
fog-1.23.0 tests/aws/models/compute/network_acls_tests.rb