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

[rackspace|identity] fixing broken service catalog test

This commit is contained in:
Kyle Rames 2013-08-07 15:25:49 -05:00
parent 71f7c13efb
commit 7eb078432f

View file

@ -18,10 +18,10 @@ Shindo.tests('Fog::Rackspace::ServiceCatalog | users', ['rackspace']) do
returns(after_hash) { service_catalog.catalog }
end
tests('missing region ') do
tests('missing region') do
before_hash = {"access"=>{"token"=>{"expires"=>"2013-02-20T10:31:00.000-06:00", "tenant"=>{"name"=>"777", "id"=>"777"}, "id"=>"6ca10877-7c50-4a5c-b58f-004d835c39c3"}, "serviceCatalog"=> [{"type"=>"rax:load-balancer","name"=>"cloudLoadBalancers", "endpoints"=>[{"region"=>"ORD", "tenantId"=>"777", "publicURL"=>"https://ord.loadbalancers.api.rackspacecloud.com/v1.0/777"}, {"tenantId"=>"777", "publicURL"=>"https://ord.loadbalancers.api.rackspacecloud.com/v1.0/777"}] }] }}
after_hash = {:cloudLoadBalancers=>{:ord=>"https://ord.loadbalancers.api.rackspacecloud.com/v1.0/777"}}
after_hash = {:cloudLoadBalancers=>{:ord=>"https://ord.loadbalancers.api.rackspacecloud.com/v1.0/777", :global=>"https://ord.loadbalancers.api.rackspacecloud.com/v1.0/777"}}
service_catalog = Fog::Rackspace::Identity::ServiceCatalog.from_response(nil, before_hash)
returns(after_hash) { service_catalog.catalog }
end