Sha256: 5fe1edc5b961fdd7db1df50b5114c80ea2c12dd0a42d726d5e6affbb5177caab
Contents?: true
Size: 1008 Bytes
Versions: 14
Compression:
Stored size: 1008 Bytes
Contents
Shindo.tests("Fog::DNS[:google] | records 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('#all').succeeds do @dns.records(:service => @dns, :zone => @zone).all end tests('#get').succeeds do @dns.records(:service => @dns, :zone => @zone).get(@zone.domain, "NS") end end tests("failure") do tests('#get').returns(nil) do @dns.records(:service => @dns, :zone => @zone).get(@zone.domain, "A") end end @zone.destroy end
Version data entries
14 entries across 14 versions & 1 rubygems