Sha256: 586101c97a22bf121c1988c787aea7d537508acb82a2eccabd4d5d953cbe5c83

Contents?: true

Size: 583 Bytes

Versions: 6

Compression:

Stored size: 583 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
    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

6 entries across 6 versions & 3 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/aws/models/dns/record_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/aws/models/dns/record_tests.rb
fog-1.3.0 tests/aws/models/dns/record_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/aws/models/dns/record_tests.rb
fog-1.2.0 tests/aws/models/dns/record_tests.rb
ktheory-fog-1.1.2 tests/aws/models/dns/record_tests.rb