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

[rackspace] updated shindo helper to add :rackspace_queues_client_id to credentials if it does not already exist. Hopefully this will make it easier to run Rackspace tests

This commit is contained in:
Kyle Rames 2013-10-09 14:07:16 -05:00
parent ce32f9c87f
commit 6efc48d9eb
3 changed files with 6 additions and 2 deletions

View file

@ -72,8 +72,7 @@ An alternate file may be used by placing its path in the FOG_RC environment vari
:libvirt_uri:
:rackspace_api_key:
:rackspace_username:
:rackspace_servicenet:
:rackspace_cdn_ssl:
:rackspace_queues_client_id:
:riakcs_access_key_id:
:riakcs_secret_access_key:
:stormondemand_username:

View file

@ -21,6 +21,10 @@ Excon.defaults.merge!(:debug_request => true, :debug_response => true)
require File.expand_path(File.join(File.dirname(__FILE__), 'helpers', 'mock_helper'))
# Live tests will not run for the Rackspace provider without :rackspace_queues_client_id in the .fog file.
# I am anticipating this issue to occur frequently. I am hoping this line mitigates this issue.
Fog.credentials[:rackspace_queues_client_id] ||= 'test-fog-mock-queue'
def lorem_file
File.open(File.dirname(__FILE__) + '/lorem.txt', 'r')
end

View file

@ -75,6 +75,7 @@ if Fog.mock?
:libvirt_uri => 'qemu://libvirt/system',
:rackspace_api_key => 'rackspace_api_key',
:rackspace_username => 'rackspace_username',
:rackspace_queues_client_id => 'test-fog-mock-queue',
:riakcs_access_key_id => 'riakcs_access_key_id',
:riakcs_secret_access_key => 'riakcs_secret_access_key',
:storm_on_demand_username => 'storm_on_demand_username',