mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[rackspace] refined authentication endpoint tests
This commit is contained in:
parent
3450ea36f9
commit
f2ef99456c
4 changed files with 5 additions and 3 deletions
|
@ -85,7 +85,8 @@ Shindo.tests('Fog::Rackspace::BlockStorage', ['rackspace']) do
|
|||
@service.list_volumes
|
||||
end
|
||||
tests('specify old contstant style service endoint').succeeds do
|
||||
@service = Fog::Rackspace::BlockStorage.new :rackspace_endpoint => Fog::Rackspace::BlockStorage::ORD_ENDPOINT
|
||||
@service = Fog::Rackspace::BlockStorage.new :rackspace_endpoint => Fog::Rackspace::BlockStorage::ORD_ENDPOINT
|
||||
returns(true) { (@service.instance_variable_get("@uri").to_s =~ /#{Fog::Rackspace::BlockStorage::ORD_ENDPOINT}/ ) != nil }
|
||||
@service.list_volumes
|
||||
end
|
||||
tests('specify region') do
|
||||
|
|
|
@ -85,6 +85,7 @@ Shindo.tests('Fog::Compute::RackspaceV2', ['rackspace']) do
|
|||
end
|
||||
tests('specify old contstant style service endoint').succeeds do
|
||||
@service = Fog::Compute::RackspaceV2.new :rackspace_endpoint => Fog::Compute::RackspaceV2::ORD_ENDPOINT
|
||||
returns(true) { (@service.instance_variable_get("@uri").to_s =~ /#{Fog::Compute::RackspaceV2::ORD_ENDPOINT}/ ) != nil }
|
||||
@service.list_flavors
|
||||
end
|
||||
tests('specify region').succeeds do
|
||||
|
|
|
@ -86,7 +86,7 @@ Shindo.tests('Fog::Rackspace::Databases', ['rackspace']) do |variable|
|
|||
end
|
||||
tests('specify old contstant style service endoint').succeeds do
|
||||
@service = Fog::Rackspace::Databases.new :rackspace_endpoint => Fog::Rackspace::Databases::ORD_ENDPOINT
|
||||
returns(true) { (@service.instance_variable_get("@uri").host =~ /ord/ ) != nil }
|
||||
returns(true) { (@service.instance_variable_get("@uri").to_s =~ /#{Fog::Rackspace::Databases::ORD_ENDPOINT}/ ) != nil }
|
||||
@service.flavors
|
||||
end
|
||||
tests('specify region').succeeds do
|
||||
|
|
|
@ -85,7 +85,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers', ['rackspace']) do
|
|||
end
|
||||
tests('specify old contstant style service endoint').succeeds do
|
||||
@service = Fog::Rackspace::LoadBalancers.new :rackspace_lb_endpoint => Fog::Rackspace::LoadBalancers::ORD_ENDPOINT
|
||||
returns(true) { (@service.instance_variable_get("@uri").host =~ /ord/ ) != nil }
|
||||
returns(true) { (@service.instance_variable_get("@uri").to_s =~ /#{Fog::Rackspace::LoadBalancers::ORD_ENDPOINT}/ ) != nil }
|
||||
@service.list_load_balancers
|
||||
end
|
||||
tests('specify region').succeeds do
|
||||
|
|
Loading…
Reference in a new issue