mirror of https://github.com/apache/jclouds.git
Merge pull request #964 from rackspace/keystone-support-for-cinder
Added Cinder service to Keystone test service catalog repsonses.
This commit is contained in:
commit
36e7c1664a
|
@ -49,4 +49,8 @@ public interface ServiceType {
|
|||
* Network Service (Quantum)
|
||||
*/
|
||||
public static final String NETWORK = "network";
|
||||
/**
|
||||
* Block Storage (Cinder)
|
||||
*/
|
||||
public static final String BLOCK_STORAGE = "volume";
|
||||
}
|
||||
|
|
|
@ -108,7 +108,14 @@ public class ParseAccessTest extends BaseItemParserTest<Access> {
|
|||
.internalURL("https://csnode.jclouds.org:9696/v1.0/tenants/3456")
|
||||
.adminURL("https://csnode.jclouds.org:9696/v1.0")
|
||||
.region("region-a.geo-1")
|
||||
.versionId("1.0").build()).build()).build();
|
||||
.versionId("1.0").build()).build())
|
||||
.service(Service.builder().name("cinder").type("volume")
|
||||
.endpoint(Endpoint.builder()
|
||||
.id("08330c2dcbfc4c6c8dc7a0949fbf5da7")
|
||||
.publicURL("http://172.16.0.1:8776/v1/50cdb4c60374463198695d9f798fa34d")
|
||||
.internalURL("http://10.0.2.15:8776/v1/50cdb4c60374463198695d9f798fa34d")
|
||||
.adminURL("http://10.0.2.15:8776/v1/50cdb4c60374463198695d9f798fa34d")
|
||||
.region("RegionOne").build()).build()).build();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -99,6 +99,15 @@ public class ParseRackspaceAccessTest extends BaseItemParserTest<Access> {
|
|||
.tenantId("40806637803162")
|
||||
.publicURL("https://dfw.loadbalancers.api.rackspacecloud.com/v1.0/40806637803162")
|
||||
.region("DFW").build()).build())
|
||||
.service(Service.builder().name("cloudBlockStorage").type("volume")
|
||||
.endpoint(Endpoint.builder()
|
||||
.tenantId("40806637803162")
|
||||
.publicURL("https://dfw.blockstorage.api.rackspacecloud.com/v1/40806637803162")
|
||||
.region("DFW").build())
|
||||
.endpoint(Endpoint.builder()
|
||||
.tenantId("40806637803162")
|
||||
.publicURL("https://ord.blockstorage.api.rackspacecloud.com/v1/40806637803162")
|
||||
.region("ORD").build()).build())
|
||||
.service(Service.builder().name("cloudMonitoring").type("rax:monitor")
|
||||
.endpoint(Endpoint.builder()
|
||||
.tenantId("40806637803162")
|
||||
|
|
|
@ -83,44 +83,60 @@
|
|||
"endpoints": [
|
||||
{
|
||||
"tenantId": "3456",
|
||||
"publicURL": "https:\/\/az-1.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/3456",
|
||||
"publicURL2": "https:\/\/az-1.region-a.geo-1.ec2-compute.hpcloudsvc.com\/services\/Cloud",
|
||||
"publicURL": "https://az-1.region-a.geo-1.compute.hpcloudsvc.com/v1.1/3456",
|
||||
"publicURL2": "https://az-1.region-a.geo-1.ec2-compute.hpcloudsvc.com/services/Cloud",
|
||||
"region": "az-1.region-a.geo-1",
|
||||
"versionId": "1.1",
|
||||
"versionInfo": "https:\/\/az-1.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
|
||||
"versionList": "https:\/\/az-1.region-a.geo-1.compute.hpcloudsvc.com"
|
||||
"versionInfo": "https://az-1.region-a.geo-1.compute.hpcloudsvc.com/v1.1/",
|
||||
"versionList": "https://az-1.region-a.geo-1.compute.hpcloudsvc.com"
|
||||
},
|
||||
{
|
||||
"tenantId": "3456",
|
||||
"publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/3456",
|
||||
"publicURL2": "https:\/\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\/services\/Cloud",
|
||||
"publicURL": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/3456",
|
||||
"publicURL2": "https://az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com/services/Cloud",
|
||||
"region": "az-2.region-a.geo-1",
|
||||
"versionId": "1.1",
|
||||
"versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
|
||||
"versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
|
||||
"versionInfo": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/",
|
||||
"versionList": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com"
|
||||
},
|
||||
{
|
||||
"tenantId": "3456",
|
||||
"publicURL": "https:\/\/az-3.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/3456",
|
||||
"publicURL2": "https:\/\/az-3.region-a.geo-1.ec2-compute.hpcloudsvc.com\/services\/Cloud",
|
||||
"publicURL": "https://az-3.region-a.geo-1.compute.hpcloudsvc.com/v1.1/3456",
|
||||
"publicURL2": "https://az-3.region-a.geo-1.ec2-compute.hpcloudsvc.com/services/Cloud",
|
||||
"region": "az-3.region-a.geo-1",
|
||||
"versionId": "1.1",
|
||||
"versionInfo": "https:\/\/az-3.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
|
||||
"versionList": "https:\/\/az-3.region-a.geo-1.compute.hpcloudsvc.com"
|
||||
"versionInfo": "https://az-3.region-a.geo-1.compute.hpcloudsvc.com/v1.1/",
|
||||
"versionList": "https://az-3.region-a.geo-1.compute.hpcloudsvc.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "network",
|
||||
"name": "Quantum Service",
|
||||
"endpoints": [{
|
||||
"endpoints": [
|
||||
{
|
||||
"tenantId": "3456",
|
||||
"adminURL": "https://csnode.jclouds.org:9696/v1.0",
|
||||
"region": "region-a.geo-1",
|
||||
"versionId": "1.0",
|
||||
"publicURL": "https://csnode.jclouds.org:9696/v1.0/tenants/3456",
|
||||
"internalURL": "https://csnode.jclouds.org:9696/v1.0/tenants/3456"
|
||||
}],
|
||||
}
|
||||
],
|
||||
"endpoints_links": []
|
||||
},
|
||||
{
|
||||
"type": "volume",
|
||||
"name": "cinder",
|
||||
"endpoints": [
|
||||
{
|
||||
"adminURL": "http://10.0.2.15:8776/v1/50cdb4c60374463198695d9f798fa34d",
|
||||
"region": "RegionOne",
|
||||
"internalURL": "http://10.0.2.15:8776/v1/50cdb4c60374463198695d9f798fa34d",
|
||||
"id": "08330c2dcbfc4c6c8dc7a0949fbf5da7",
|
||||
"publicURL": "http://172.16.0.1:8776/v1/50cdb4c60374463198695d9f798fa34d"
|
||||
}
|
||||
],
|
||||
"endpoints_links": []
|
||||
}
|
||||
]
|
||||
|
|
|
@ -62,6 +62,18 @@
|
|||
}],
|
||||
"name": "cloudLoadBalancers",
|
||||
"type": "rax:load-balancer"
|
||||
}, {
|
||||
"endpoints": [{
|
||||
"publicURL": "https:\/\/dfw.blockstorage.api.rackspacecloud.com\/v1\/40806637803162",
|
||||
"tenantId": "40806637803162",
|
||||
"region": "DFW"
|
||||
}, {
|
||||
"publicURL": "https:\/\/ord.blockstorage.api.rackspacecloud.com\/v1\/40806637803162",
|
||||
"tenantId": "40806637803162",
|
||||
"region": "ORD"
|
||||
}],
|
||||
"type": "volume",
|
||||
"name": "cloudBlockStorage"
|
||||
}, {
|
||||
"endpoints": [{
|
||||
"tenantId": "40806637803162",
|
||||
|
|
Loading…
Reference in New Issue