Sha256: 2d974f7fabfe2de834a87680e4017b4ae750e15b2f19b519b1169ebab3565107

Contents?: true

Size: 594 Bytes

Versions: 11

Compression:

Stored size: 594 Bytes

Contents

Shindo.tests("Fog::DNS[:aws] | records", ['aws', 'dns']) do

  pending if Fog.mocking?
  tests("zones#create").succeeds do
    @zone = Fog::DNS[:aws].zones.create(:domain => generate_unique_domain)
  end

  param_groups = [
    # A record
    { :name => @zone.domain, :type => 'A', :ttl => 3600, :value => ['1.2.3.4'] },
    # CNAME record
    { :name => "www.#{@zone.domain}", :type => "CNAME", :ttl => 300, :value => @zone.domain}
  ]

  param_groups.each do |params|
    collection_tests(@zone.records, params, false)
  end

  tests("zones#destroy").succeeds do
    @zone.destroy
  end
end

Version data entries

11 entries across 11 versions & 6 rubygems

Version Path
rackspace-fog-1.4.2 tests/aws/models/dns/records_tests.rb
fog-1.4.0 tests/aws/models/dns/records_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/aws/models/dns/records_tests.rb
michiels-fog-1.3.1 tests/aws/models/dns/records_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/aws/models/dns/records_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/aws/models/dns/records_tests.rb
fog-1.3.1 tests/aws/models/dns/records_tests.rb
fog-1.3.0 tests/aws/models/dns/records_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/aws/models/dns/records_tests.rb
fog-1.2.0 tests/aws/models/dns/records_tests.rb
ktheory-fog-1.1.2 tests/aws/models/dns/records_tests.rb