1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[gleysys] fixes for mocked test setup

This commit is contained in:
geemus 2011-09-08 15:33:32 -05:00
parent 483fde41a9
commit e6f09326e9
2 changed files with 6 additions and 2 deletions

View file

@ -35,7 +35,10 @@ module Fog
class Mock class Mock
include Collections
def initialize(options)
Fog::Mock.not_implemented
end
def request(method_name, options = {}) def request(method_name, options = {})
Fog::Mock.not_implemented Fog::Mock.not_implemented
@ -44,7 +47,6 @@ module Fog
end end
class Real class Real
include Collections
def initialize(options) def initialize(options)
require 'multi_json' require 'multi_json'

View file

@ -22,6 +22,8 @@ if Fog.mock?
:ecloud_username => 'ecloud_username', :ecloud_username => 'ecloud_username',
:ecloud_password => 'ecloud_password', :ecloud_password => 'ecloud_password',
:ecloud_versions_uri => 'http://ecloud.versions.uri', :ecloud_versions_uri => 'http://ecloud.versions.uri',
:glesys_username => 'glesys_username',
:glesys_api_key => 'glesys_api_key',
:go_grid_api_key => 'go_grid_api_key', :go_grid_api_key => 'go_grid_api_key',
:go_grid_shared_secret => 'go_grid_shared_secret', :go_grid_shared_secret => 'go_grid_shared_secret',
:google_storage_access_key_id => 'google_storage_access_key_id', :google_storage_access_key_id => 'google_storage_access_key_id',