From 7eb078432fd716c1c410165fe563daf8df674a6f Mon Sep 17 00:00:00 2001 From: Kyle Rames Date: Wed, 7 Aug 2013 15:25:49 -0500 Subject: [PATCH] [rackspace|identity] fixing broken service catalog test --- tests/rackspace/models/identity/service_catalog_tests.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/rackspace/models/identity/service_catalog_tests.rb b/tests/rackspace/models/identity/service_catalog_tests.rb index 5ea6df060..c03268382 100644 --- a/tests/rackspace/models/identity/service_catalog_tests.rb +++ b/tests/rackspace/models/identity/service_catalog_tests.rb @@ -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