Sha256: 48a40ac3c65f0cdc0aeced11ed7ac95506646f6d18965b607c26463d10a637c3

Contents?: true

Size: 613 Bytes

Versions: 10

Compression:

Stored size: 613 Bytes

Contents

Shindo.tests('Fog::Rackspace::DNS | zones', ['rackspace']) do
  pending if Fog.mocking?

  provider = Fog::DNS[:rackspace]
  domain_sld = uniq_id
  domain_name = domain_sld + '.com'

  begin
    zone = provider.zones.create({:domain => domain_name, :email => "hostmaster@#{domain_name}"})

    tests("zones.find(#{domain_sld}) => finds domain_name") do
      returns(1) { provider.zones.find(domain_sld).length }
    end

    random_name = uniq_id
    tests("zones.find(#{random_name}) => finds nothing") do
      returns(0) { provider.zones.find(random_name).length }
    end
  ensure
    zone.destroy
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
fog-1.12.1 tests/rackspace/models/dns/zones_tests.rb
fog-1.12.0 tests/rackspace/models/dns/zones_tests.rb
hpfog-0.0.20 tests/rackspace/models/dns/zones_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/rackspace/models/dns/zones_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/rackspace/models/dns/zones_tests.rb
fog-1.11.1 tests/rackspace/models/dns/zones_tests.rb
fog-1.11.0 tests/rackspace/models/dns/zones_tests.rb
fog-1.10.1 tests/rackspace/models/dns/zones_tests.rb
fog-test-me-1.10.0 tests/rackspace/models/dns/zones_tests.rb
fog-1.10.0 tests/rackspace/models/dns/zones_tests.rb