Sha256: c383d0ce9f6bb0c4db9931ccf331a5aa7f568bde47ba19cd49b3fde8b51ceead

Contents?: true

Size: 904 Bytes

Versions: 79

Compression:

Stored size: 904 Bytes

Contents

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

  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) 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

79 entries across 77 versions & 6 rubygems

Version Path
fog-aws-3.12.0 tests/models/dns/record_tests.rb
fog-aws-3.11.0 tests/models/dns/record_tests.rb
fog-aws-3.10.0 tests/models/dns/record_tests.rb
fog-aws-3.9.0 tests/models/dns/record_tests.rb
fog-aws-3.8.0 tests/models/dns/record_tests.rb
fog-aws-3.7.0 tests/models/dns/record_tests.rb
fog-aws-3.6.7 tests/models/dns/record_tests.rb
fog-aws-3.6.6 tests/models/dns/record_tests.rb
fog-aws-3.6.5 tests/models/dns/record_tests.rb
fog-aws-3.6.4 tests/models/dns/record_tests.rb
fog-aws-3.6.3 tests/models/dns/record_tests.rb
fog-aws-3.6.2 tests/models/dns/record_tests.rb
fog-aws-3.5.2 tests/models/dns/record_tests.rb
fog-aws-3.5.1 tests/models/dns/record_tests.rb
fog-aws-3.5.0 tests/models/dns/record_tests.rb
fog-aws-3.4.0 tests/models/dns/record_tests.rb
fog-aws-3.3.0 tests/models/dns/record_tests.rb
fog-aws-3.2.0 tests/models/dns/record_tests.rb
fog-aws-3.1.0 tests/models/dns/record_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/tests/models/dns/record_tests.rb