Sha256: bb93f7257aaab2b4335e19446a92a955e08c41f251573e9b659dc4ebcc1587c9

Contents?: true

Size: 689 Bytes

Versions: 9

Compression:

Stored size: 689 Bytes

Contents

for provider, config in dns_providers

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

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

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

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

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

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

      @zone.destroy
    end

  end

end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/tests/dns/models/record_tests.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/tests/dns/models/record_tests.rb
tag-fog-1.0.1 tests/dns/models/record_tests.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/tests/dns/models/record_tests.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/tests/dns/models/record_tests.rb
fog-1.0.0 tests/dns/models/record_tests.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/tests/dns/models/record_tests.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/tests/dns/models/record_tests.rb
fog-0.11.0 tests/dns/models/record_tests.rb