mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[dns|dynect] fixes to play nice with mocked test runs
This commit is contained in:
parent
7fecd4fc60
commit
2404e029c6
2 changed files with 9 additions and 0 deletions
|
@ -24,6 +24,13 @@ module Fog
|
|||
request :put_zone
|
||||
|
||||
class Mock
|
||||
|
||||
def initialize(options={})
|
||||
@dynect_customer = options[:dynect_customer]
|
||||
@dynect_username = options[:dynect_username]
|
||||
@dynect_password = options[:dynect_password]
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class Real
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
Shindo.tests('Dynect::dns | DNS requests', ['dynect', 'dns']) do
|
||||
|
||||
pending if Fog.mocking?
|
||||
|
||||
shared_format = {
|
||||
'job_id' => Integer,
|
||||
'msgs' => [{
|
||||
|
|
Loading…
Add table
Reference in a new issue