Sha256: 70b7434a88421e18e4ac94bcefc3619052d8a78f03b5075b2267cc8ae15dc726

Contents?: true

Size: 710 Bytes

Versions: 28

Compression:

Stored size: 710 Bytes

Contents

for provider, config in dns_providers

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

  domain_name = uniq_id + '.com'

  Shindo.tests("Fog::DNS[:#{provider}] | record", [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)

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

      @zone.destroy
    end

  end

end

Version data entries

28 entries across 28 versions & 10 rubygems

Version Path
fog-parser-fix-1.6.1 tests/dns/models/record_tests.rb
fog-test-again-1.6.0 tests/dns/models/record_tests.rb
fog-parser-fix-1.6.0 tests/dns/models/record_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/dns/models/record_tests.rb
fog-1.7.0 tests/dns/models/record_tests.rb
fog-1.6.0 tests/dns/models/record_tests.rb
fog-1.5.0 tests/dns/models/record_tests.rb
rackspace-fog-1.4.2 tests/dns/models/record_tests.rb
fog-1.4.0 tests/dns/models/record_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/dns/models/record_tests.rb
michiels-fog-1.3.1 tests/dns/models/record_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/dns/models/record_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/dns/models/record_tests.rb
fog-1.3.1 tests/dns/models/record_tests.rb
fog-1.3.0 tests/dns/models/record_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/dns/models/record_tests.rb
fog-1.2.0 tests/dns/models/record_tests.rb
ktheory-fog-1.1.2 tests/dns/models/record_tests.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/tests/dns/models/record_tests.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/tests/dns/models/record_tests.rb