Sha256: d11228c4efa0cad52817bfe373880fc19ac45c8584f24d46da1ed5ed96abc25b

Contents?: true

Size: 724 Bytes

Versions: 59

Compression:

Stored size: 724 Bytes

Contents

for provider, config in dns_providers

  # FIXME: delay/timing breaks things :(
  next if [:dnsmadeeasy, :rage4].include?(provider)

  domain_name = uniq_id + '.com'

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

    record_attributes = {
      :name   => 'www.' + domain_name,
      :type   => 'A',
      :value  => '1.2.3.4'
    }.merge!(config[:record_attributes] || {})

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

      @zone = Fog::DNS[provider].zones.create(zone_attributes)

      collection_tests(@zone.records, record_attributes, config[:mocked])

      @zone.destroy
    end

  end

end

Version data entries

59 entries across 54 versions & 8 rubygems

Version Path
fog-2.3.0 tests/dns/models/records_tests.rb
fog-dynect-0.5.0 tests/dns/models/records_tests.rb
fog-ifeel-2.2.0 tests/dns/models/records_tests.rb
fog-2.2.0 tests/dns/models/records_tests.rb
fog-dynect-0.4.0 tests/dns/models/records_tests.rb
fog-2.1.0 tests/dns/models/records_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-dynect-0.0.3/tests/dns/models/records_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-dynect-0.0.3/tests/dns/models/records_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/dns/models/records_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/dns/models/records_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-dynect-0.0.3/tests/dns/models/records_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/dns/models/records_tests.rb
fog-1.42.1 tests/dns/models/records_tests.rb
fog-2.0.0 tests/dns/models/records_tests.rb
fog-dynect-0.3.0 tests/dns/models/records_tests.rb
fog-1.42.0 tests/dns/models/records_tests.rb
fog-1.41.0 tests/dns/models/records_tests.rb
fog-1.40.0 tests/dns/models/records_tests.rb
fog-1.39.0 tests/dns/models/records_tests.rb
fog-dynect-0.2.0 tests/dns/models/records_tests.rb