Added Cinder service to Keystone test service catalog repsonses.

This commit is contained in:
Everett Toews 2012-11-06 14:43:03 -06:00
parent 48eab9bf3d
commit 1636c1f89d
5 changed files with 98 additions and 50 deletions

View File

@ -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";
}

View File

@ -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();
}
}

View File

@ -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")

View File

@ -60,7 +60,7 @@
"publicURL": "https://csnode.jclouds.org/v2.0/",
"region": "region-a.geo-1",
"id": "2.0",
"versionId":"2.0",
"versionId": "2.0",
"list": "https://csnode.jclouds.org/extension"
}
]
@ -77,52 +77,68 @@
}
]
},
{
"name": "Compute",
"type": "compute",
"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",
"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"
},
{
"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",
"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"
},
{
"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",
"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"
}
]
},
{
"type": "network",
"name": "Quantum Service",
"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": []
}
]
}
{
"name": "Compute",
"type": "compute",
"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",
"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"
},
{
"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",
"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"
},
{
"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",
"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"
}
]
},
{
"type": "network",
"name": "Quantum Service",
"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": []
}
]
}
}

View File

@ -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",