mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
93a52e2c02
Dynect mocking
26 lines
513 B
Ruby
26 lines
513 B
Ruby
require 'nokogiri'
|
|
|
|
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
|
|
require 'fog/core/parser'
|
|
|
|
module Fog
|
|
module Dynect
|
|
extend Fog::Provider
|
|
|
|
service(:dns, 'dynect/dns')
|
|
|
|
class Mock
|
|
def self.job_id
|
|
Fog::Mock.random_numbers(8).to_i
|
|
end
|
|
|
|
def self.token
|
|
Fog::Mock.random_hex(48)
|
|
end
|
|
|
|
def self.version
|
|
[Fog::Mock.random_numbers(1), Fog::Mock.random_numbers(1), Fog::Mock.random_numbers(1)].join('.')
|
|
end
|
|
end
|
|
end
|
|
end
|