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/compute_tests.rb

20 lines
584 B
Ruby
Raw Normal View History

2013-03-27 14:44:08 -04:00
Shindo.tests('Fog::Compute::HP', ['hp', 'compute']) do
2013-03-27 10:53:16 -04:00
credentials = {
:auth_token => 'auth_token',
:endpoint_url => 'http://127.0.0.1/computepath/',
: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 Compute credentials').returns(credentials) do
conn = Fog::Compute::HP::Real.new(options)
conn.credentials
end
end