Sha256: f73529603fb912bee126050099638f6beceb7f337999758a61c065430b3a0de7

Contents?: true

Size: 891 Bytes

Versions: 14

Compression:

Stored size: 891 Bytes

Contents

Shindo.tests("Fog::DNS[:google] | change model", ["google"]) do
  # Google requires confirmation of ownership for created domains in some cases.
  # If you want to run tests in non-mocked mode, set the environment variable to a domain you own.
  unless Fog.mocking? || ENV["FOG_TEST_GOOGLE_DNS_ZONE"]
    tests("Needs a verified domain, set $FOG_TEST_GOOGLE_DNS_ZONE").pending
  end

  @dns = Fog::DNS[:google]
  @zone = @dns.zones.create(
    :name => Fog::Mock.random_letters(16),
    :domain => ENV["FOG_TEST_GOOGLE_DNS_ZONE"] || generate_unique_domain,
    :description => "Fog test domain"
  )

  tests("success") do
    tests('#pending?').succeeds do
      @dns.changes(:service => @dns, :zone => @zone).get("0").pending? == false
    end

    tests('#ready?').succeeds do
      @dns.changes(:service => @dns, :zone => @zone).get("0").ready? == true
    end
  end

  @zone.destroy
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 tests/models/dns/change_tests.rb
fog-google-0.5.5 tests/models/dns/change_tests.rb
fog-google-0.5.4 tests/models/dns/change_tests.rb
fog-google-0.5.3 tests/models/dns/change_tests.rb
fog-google-0.5.2 tests/models/dns/change_tests.rb
fog-google-0.5.1 tests/models/dns/change_tests.rb
fog-google-0.5.0 tests/models/dns/change_tests.rb
fog-google-0.4.2 tests/models/dns/change_tests.rb
fog-google-0.4.1 tests/models/dns/change_tests.rb
fog-google-0.4.0 tests/models/dns/change_tests.rb
fog-google-0.3.2 tests/models/dns/change_tests.rb
fog-google-0.3.1 tests/models/dns/change_tests.rb
fog-google-0.3.0 tests/models/dns/change_tests.rb
fog-google-0.2.0 tests/models/dns/change_tests.rb