Sha256: 4a2472279ebe6bdd3ae5482391b899e156d6ea40380163ac4a34012c8d0709d5

Contents?: true

Size: 616 Bytes

Versions: 67

Compression:

Stored size: 616 Bytes

Contents

Shindo.tests('HP::DNS | domain model', ['hp', 'dns', 'domain']) do

  attributes = {:name => 'www.fogtest.com.', :email => 'test@fogtest.com'}
  model_tests(HP[:dns].domains, attributes, true)

  tests('success') do

    tests('#create').succeeds do
      attributes = {:name => 'www.fogtest.com.', :email => 'test@fogtest.com', :ttl => 3600}
      @domain = HP[:dns].domains.create(attributes)
      !@domain.id.nil?
    end

    tests('Update via #save').succeeds do
      @domain.email = 'update@fogtest.com'
      @domain.save
    end

    tests('#destroy').succeeds do
      @domain.destroy
    end

  end

end

Version data entries

67 entries across 67 versions & 5 rubygems

Version Path
fog-1.38.0 tests/hp/models/dns/domain_tests.rb
fog-1.37.0 tests/hp/models/dns/domain_tests.rb
fog-1.36.0 tests/hp/models/dns/domain_tests.rb
fog-1.35.0 tests/hp/models/dns/domain_tests.rb
fog-2.0.0.pre.0 tests/hp/models/dns/domain_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/hp/models/dns/domain_tests.rb
fog-1.34.0 tests/hp/models/dns/domain_tests.rb
fog-1.33.0 tests/hp/models/dns/domain_tests.rb
fog-1.32.0 tests/hp/models/dns/domain_tests.rb
fog-1.31.0 tests/hp/models/dns/domain_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/hp/models/dns/domain_tests.rb
fog-1.30.0 tests/hp/models/dns/domain_tests.rb
fog-1.29.0 tests/hp/models/dns/domain_tests.rb
fog-1.28.0 tests/hp/models/dns/domain_tests.rb
fog-1.27.0 tests/hp/models/dns/domain_tests.rb
fog-1.26.0 tests/hp/models/dns/domain_tests.rb
fog-1.25.0 tests/hp/models/dns/domain_tests.rb
nsidc-fog-1.24.1 tests/hp/models/dns/domain_tests.rb
fog-1.24.0 tests/hp/models/dns/domain_tests.rb
ns-fog-1.22.11 tests/hp/models/dns/domain_tests.rb