Sha256: 1430665b679beb348994b71ac10386ad5cda59c239a9e04a35d72b3affb46309

Contents?: true

Size: 557 Bytes

Versions: 29

Compression:

Stored size: 557 Bytes

Contents

Shindo.tests("Fog::Compute[:aws] | subnet", ['aws']) do
  @vpc=Fog::Compute[:aws].vpcs.create('cidr_block' => '10.0.10.0/24')
  model_tests(Fog::Compute[:aws].subnets, {:vpc_id => @vpc.id, :cidr_block => '10.0.10.0/28', :availability_zone => 'us-east-1b'}, true) do
    @ni = Fog::Compute[:aws].network_interfaces.create(:description => 'fog eni', :name => uniq_id('fog-eni'), :subnet_id => @instance.identity)

    tests("#network_interfaces") do
      returns([@ni]) { @instance.network_interfaces.to_a }
    end

    @ni.destroy
  end
  @vpc.destroy
end

Version data entries

29 entries across 27 versions & 2 rubygems

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