Sha256: 5f19a9b39471d0000166e852deb8406b971ec6ff50e579215544f99249353ec2

Contents?: true

Size: 592 Bytes

Versions: 7

Compression:

Stored size: 592 Bytes

Contents

for provider, config in dns_providers

  Shindo.tests("#{provider}::DNS | record", [provider.to_s.downcase]) do

    record_attributes = {
      :ip => '1.2.3.4',
      :name => 'www.fogrecordtests.com',
      :type => 'A'
    }.merge!(config[:record_attributes] || {})

    if !Fog.mocking? || config[:mocked]
      zone_attributes = {
        :domain => 'fogrecordtests.com'
      }.merge(config[:zone_attributes] || {})

      @zone = provider[:dns].zones.create(zone_attributes)
      model_tests(@zone.records, record_attributes, config[:mocked])

      @zone.destroy
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.8.2 tests/dns/models/record_tests.rb
fog-0.8.1 tests/dns/models/record_tests.rb
fog-0.8.0 tests/dns/models/record_tests.rb
fog-0.7.2 tests/dns/models/record_tests.rb
fog-0.7.1 tests/dns/models/record_tests.rb
fog-0.7.0 tests/dns/models/record_tests.rb
fog-0.6.0 tests/dns/models/record_tests.rb