Sha256: c6e3534c58000d753c33352d8f0ce43fa1eb26c6be3f6d4593a609c8f2a7ab27

Contents?: true

Size: 938 Bytes

Versions: 47

Compression:

Stored size: 938 Bytes

Contents

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

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

  params = { :name => @zone.domain, :type => 'A', :ttl => 3600, :value => ['1.2.3.4'] }

  model_tests(@zone.records, params, false) do

    # Newly created records should have a change id
    tests("#change_id") do
      returns(true) { @instance.change_id != nil }
    end

    # Waits for changes to sync to all Route 53 DNS servers.  Usually takes ~30 seconds to complete.
    tests("#ready? - may take a minute to complete...").succeeds do
      @instance.wait_for { ready? }
    end

    tests("#modify") do
      new_value = ['5.5.5.5']
      returns(true) { @instance.modify(:value => new_value) }
      returns(new_value) { @instance.value }
    end

  end

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

end

Version data entries

47 entries across 47 versions & 13 rubygems

Version Path
gapinc-fog-1.12.1.2.1 tests/aws/models/dns/record_tests.rb
fog-maestrodev-1.18.0.20131112185232 tests/aws/models/dns/record_tests.rb
fog-maestrodev-1.18.0.20131111203459 tests/aws/models/dns/record_tests.rb
fog-1.18.0 tests/aws/models/dns/record_tests.rb
fog-1.17.0 tests/aws/models/dns/record_tests.rb
fog-1.16.0 tests/aws/models/dns/record_tests.rb
fog-maestrodev-1.15.0.20130927082724 tests/aws/models/dns/record_tests.rb
fog-maestrodev-1.15.0.20130829165835 tests/aws/models/dns/record_tests.rb
fog-1.15.0 tests/aws/models/dns/record_tests.rb
gapinc-fog-1.14.0 tests/aws/models/dns/record_tests.rb
fog-maestrodev-1.14.0.20130806165225 tests/aws/models/dns/record_tests.rb
fog-1.14.0 tests/aws/models/dns/record_tests.rb
fog-1.13.0 tests/aws/models/dns/record_tests.rb
gapinc-fog-1.12.1.2 tests/aws/models/dns/record_tests.rb
gapinc-fog-1.12.1.1 tests/aws/models/dns/record_tests.rb
gapinc-fog-1.12.1a tests/aws/models/dns/record_tests.rb
gapinc-fog-1.12.1 tests/aws/models/dns/record_tests.rb
fog-1.12.1 tests/aws/models/dns/record_tests.rb
fog-1.12.0 tests/aws/models/dns/record_tests.rb
hpfog-0.0.20 tests/aws/models/dns/record_tests.rb