2013-03-27 12:44:08 -06:00
|
|
|
Shindo.tests('Fog::Storage::HP', ['hp', 'storage']) do
|
2013-03-27 08:53:16 -06:00
|
|
|
credentials = {
|
|
|
|
:auth_token => 'auth_token',
|
|
|
|
:endpoint_url => 'http://127.0.0.1/path/',
|
|
|
|
:cdn_endpoint_url => 'hp_cdn_uri',
|
|
|
|
:expires => (DateTime.now + 1).to_s
|
|
|
|
}
|
|
|
|
options = {
|
|
|
|
:hp_access_key => 'hp_account_id',
|
|
|
|
:hp_secret_key => 'hp_secret_key',
|
|
|
|
:hp_tenant_id => 'hp_tenant_id',
|
|
|
|
:hp_avl_zone => 'hp_avl_zone',
|
|
|
|
:hp_auth_uri => 'hp_auth_uri',
|
|
|
|
:credentials => credentials
|
|
|
|
}
|
|
|
|
tests('Test cached Storage credentials').returns(credentials) do
|
|
|
|
conn = Fog::Storage::HP::Real.new(options)
|
|
|
|
conn.credentials
|
|
|
|
end
|
|
|
|
end
|