Sha256: a48877f241f803a335d5e2e670a9658fc947731cb2e7cf24f4946aac5e93a400

Contents?: true

Size: 439 Bytes

Versions: 2

Compression:

Stored size: 439 Bytes

Contents

Shindo.tests('Fog::Rackspace::DNS | zone', ['rackspace']) do

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

  zone = provider.zones.create({:domain => domain_name, :email => 'hostmaster@' + domain_name})

  tests('adding same domain twice throws error').raises(Fog::DNS::Rackspace::CallbackError) do
    provider.zones.create({:domain => domain_name, :email => 'hostmaster@' + domain_name})
  end

  zone.destroy
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog_tractical-1.1.4 tests/rackspace/models/dns/zone_tests.rb
fog_tractical-1.1.3 tests/rackspace/models/dns/zone_tests.rb