Sha256: e7f1b86fd34f5a2edd101c449888456acebac2c5c6ab1e2dfc9019dbb16f7b3a

Contents?: true

Size: 1.09 KB

Versions: 25

Compression:

Stored size: 1.09 KB

Contents

def dns_providers
  {
    :aws          => {
      :mocked => false
    },
    :bluebox      => {
      :mocked => false,
      :zone_attributes => {
        :ttl => 60
      }
    },
    :dnsimple     => {
      :mocked => false
    },
    :dnsmadeeasy  => {
      :mocked => false
    },
    :dynect       => {
      :mocked => false,
      :zone_attributes => {
        :email => 'fog@example.com'
      }
    },
    :linode       => {
      :mocked => false,
      :zone_attributes => {
        :email => 'fog@example.com'
      }
    },
    :slicehost    => {
      :mocked => false
    },
    :zerigo       => {
      :mocked => false
    },
    :rackspace    => {
      :mocked => false,
      :zone_attributes => {
        :email => 'fog@example.com'
      }
    }
  }
end

def generate_unique_domain( with_trailing_dot = false)
  #get time (with 1/100th of sec accuracy)
  #want unique domain name and if provider is fast, this can be called more than once per second
  time= (Time.now.to_f * 100).to_i
  domain = 'test-' + time.to_s + '.com'
  if with_trailing_dot
    domain+= '.'
  end

  domain
end

Version data entries

25 entries across 25 versions & 7 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/dns/helper.rb
michiels-fog-1.3.1 tests/dns/helper.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/dns/helper.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/dns/helper.rb
fog-1.3.1 tests/dns/helper.rb
fog-1.3.0 tests/dns/helper.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/dns/helper.rb
fog-1.2.0 tests/dns/helper.rb
ktheory-fog-1.1.2 tests/dns/helper.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/tests/dns/helper.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/tests/dns/helper.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/tests/dns/helper.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/tests/dns/helper.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/tests/dns/helper.rb
fog-1.1.2 tests/dns/helper.rb
fog_tractical-1.1.4 tests/dns/helper.rb
fog_tractical-1.1.3 tests/dns/helper.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/tests/dns/helper.rb
fog-1.1.1 tests/dns/helper.rb
fog-1.1.0 tests/dns/helper.rb