1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/hp/cdn_tests.rb
2013-10-30 19:02:12 -04:00

19 lines
557 B
Ruby

Shindo.tests('Fog::CDN::HP', ['hp']) do
credentials = {
:auth_token => 'auth_token',
:endpoint_url => 'http://127.0.0.1/cdnpath/',
: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 CDN credentials').returns(credentials) do
conn = Fog::CDN::HP::Real.new(options)
conn.credentials
end
end