Sha256: 81b5fd069299bd457bea470b261b42813b73ff16b084f8a60906f1184a302157

Contents?: true

Size: 830 Bytes

Versions: 21

Compression:

Stored size: 830 Bytes

Contents

Shindo.tests('Fog::DNS[:google] | zone 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

  params = {
    :name => Fog::Mock.random_letters(16),
    :domain => ENV['FOG_TEST_GOOGLE_DNS_ZONE'] || generate_unique_domain,
    :description => 'Fog test domain'
  }
  model_tests(Fog::DNS[:google].zones, params)

  tests('success') do
    @zone = Fog::DNS[:google].zones.create(params)

    tests('#changes').succeeds do
      @zone.changes
    end

    tests('#records').succeeds do
      @zone.records
    end

    @zone.destroy
  end
end

Version data entries

21 entries across 19 versions & 5 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/tests/models/dns/zone_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/tests/models/dns/zone_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/tests/models/dns/zone_tests.rb
fog-google-0.1.3 tests/models/dns/zone_tests.rb
fog-google-0.1.2 tests/models/dns/zone_tests.rb
fog-google-0.1.1 tests/models/dns/zone_tests.rb
fog-google-0.1.0 tests/models/dns/zone_tests.rb
fog-google-0.0.9 tests/models/dns/zone_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/tests/models/dns/zone_tests.rb
fog-google-0.0.7 tests/models/dns/zone_tests.rb
fog-google-0.0.6 tests/models/dns/zone_tests.rb
fog-google-0.0.5 tests/models/dns/zone_tests.rb
fog-google-0.0.4 tests/models/dns/zone_tests.rb
fog-google-0.0.3 tests/models/dns/zone_tests.rb
fog-google-0.0.2 tests/models/dns/zone_tests.rb
fog-1.29.0 tests/google/models/dns/zone_tests.rb
fog-1.28.0 tests/google/models/dns/zone_tests.rb
fog-1.27.0 tests/google/models/dns/zone_tests.rb
fog-1.26.0 tests/google/models/dns/zone_tests.rb
fog-1.25.0 tests/google/models/dns/zone_tests.rb