diff --git a/apis/openstack-keystone/src/main/java/org/jclouds/openstack/v2_0/ServiceType.java b/apis/openstack-keystone/src/main/java/org/jclouds/openstack/v2_0/ServiceType.java index 64e90151bf..066e19f732 100644 --- a/apis/openstack-keystone/src/main/java/org/jclouds/openstack/v2_0/ServiceType.java +++ b/apis/openstack-keystone/src/main/java/org/jclouds/openstack/v2_0/ServiceType.java @@ -47,7 +47,7 @@ public interface ServiceType { public static final String IDENTITY = "identity"; /** - * Network Service (Quantum) + * Network Service (Neutron) */ public static final String NETWORK = "network"; @@ -57,7 +57,12 @@ public interface ServiceType { public static final String BLOCK_STORAGE = "volume"; /** - * Database Service (RedDwarf) + * Database Service (Trove) */ public static final String DATABASE_SERVICE = "databases"; + + /** + * Queues Service (Marconi) + */ + public static final String QUEUES = "queuing"; } diff --git a/apis/openstack-keystone/src/test/java/org/jclouds/openstack/keystone/v2_0/parse/ParseAccessTest.java b/apis/openstack-keystone/src/test/java/org/jclouds/openstack/keystone/v2_0/parse/ParseAccessTest.java index f7b1d1d93c..0d465e7b2d 100644 --- a/apis/openstack-keystone/src/test/java/org/jclouds/openstack/keystone/v2_0/parse/ParseAccessTest.java +++ b/apis/openstack-keystone/src/test/java/org/jclouds/openstack/keystone/v2_0/parse/ParseAccessTest.java @@ -31,13 +31,7 @@ import org.jclouds.openstack.keystone.v2_0.domain.User; import org.jclouds.rest.annotations.SelectJson; import org.testng.annotations.Test; -import static org.jclouds.openstack.v2_0.ServiceType.BLOCK_STORAGE; -import static org.jclouds.openstack.v2_0.ServiceType.COMPUTE; -import static org.jclouds.openstack.v2_0.ServiceType.DATABASE_SERVICE; -import static org.jclouds.openstack.v2_0.ServiceType.IDENTITY; -import static org.jclouds.openstack.v2_0.ServiceType.IMAGE; -import static org.jclouds.openstack.v2_0.ServiceType.NETWORK; -import static org.jclouds.openstack.v2_0.ServiceType.OBJECT_STORE; +import static org.jclouds.openstack.v2_0.ServiceType.*; /** @@ -57,22 +51,22 @@ public class ParseAccessTest extends BaseItemParserTest { public Access expected() { return Access.builder() .token(Token.builder() - .expires(new SimpleDateFormatDateService().iso8601DateParse("2012-01-18T21:35:59.050Z")) - .id("Auth_4f173437e4b013bee56d1007") - .tenant(Tenant.builder().id("40806637803162").name("user@jclouds.org-default-tenant").build()).build()) + .expires(new SimpleDateFormatDateService().iso8601DateParse("2012-01-18T21:35:59.050Z")) + .id("Auth_4f173437e4b013bee56d1007") + .tenant(Tenant.builder().id("40806637803162").name("user@jclouds.org-default-tenant").build()).build()) .user(User.builder() - .id("36980896575174").name("user@jclouds.org") - .role(Role.builder().id("00000000004022").serviceId("110").name("Admin").tenantId("40806637803162").build()) - .role(Role.builder().id("00000000004024").serviceId("140").name("user").tenantId("40806637803162").build()) - .role(Role.builder().id("00000000004004").serviceId("100").name("domainuser").build()) - .role(Role.builder().id("00000000004016").serviceId("120").name("netadmin").tenantId("40806637803162").build()).build()) + .id("36980896575174").name("user@jclouds.org") + .role(Role.builder().id("00000000004022").serviceId("110").name("Admin").tenantId("40806637803162").build()) + .role(Role.builder().id("00000000004024").serviceId("140").name("user").tenantId("40806637803162").build()) + .role(Role.builder().id("00000000004004").serviceId("100").name("domainuser").build()) + .role(Role.builder().id("00000000004016").serviceId("120").name("netadmin").tenantId("40806637803162").build()).build()) .service(Service.builder().name("Object Storage").type(OBJECT_STORE) - .endpoint(Endpoint.builder() - .tenantId("40806637803162") - .publicURL("https://objects.jclouds.org/v1.0/40806637803162") - .adminURL("https://objects.jclouds.org/v1.0/") - .id("1.0") - .region("region-a.geo-1").build()).build()) + .endpoint(Endpoint.builder() + .tenantId("40806637803162") + .publicURL("https://objects.jclouds.org/v1.0/40806637803162") + .adminURL("https://objects.jclouds.org/v1.0/") + .id("1.0") + .region("region-a.geo-1").build()).build()) .service(Service.builder().name("Identity").type(IDENTITY) .endpoint(Endpoint.builder() .publicURL("https://csnode.jclouds.org/v2.0/") @@ -88,19 +82,19 @@ public class ParseAccessTest extends BaseItemParserTest { .id("1.0").build()).build()) .service(Service.builder().name("Compute").type(COMPUTE) .endpoint(Endpoint.builder() - .tenantId("3456") - .publicURL("https://az-1.region-a.geo-1.compute.hpcloudsvc.com/v1.1/3456") - .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").build()) + .tenantId("3456") + .publicURL("https://az-1.region-a.geo-1.compute.hpcloudsvc.com/v1.1/3456") + .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").build()) .endpoint(Endpoint.builder() - .tenantId("3456") - .publicURL("https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/3456") - .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").build()) + .tenantId("3456") + .publicURL("https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/3456") + .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").build()) .endpoint(Endpoint.builder() .tenantId("3456") .publicURL("https://az-3.region-a.geo-1.compute.hpcloudsvc.com/v1.1/3456") @@ -127,16 +121,23 @@ public class ParseAccessTest extends BaseItemParserTest { .service(Service.builder().name("cinder").type(BLOCK_STORAGE) .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()) + .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()) .service(Service.builder().name("reddwarf").type(DATABASE_SERVICE) .endpoint(Endpoint.builder() - .publicURL("http://172.16.0.1:8776/v1/3456") - .tenantId("123123") - .region("RegionOne").build()).build()) + .publicURL("http://172.16.0.1:8776/v1/3456") + .tenantId("123123") + .region("RegionOne").build()).build()) + .service(Service.builder().name("marconi").type(QUEUES) + .endpoint(Endpoint.builder() + .id("3456789") + .publicURL("http://172.16.0.1:8888") + .internalURL("http://10.0.2.15:8888") + .adminURL("http://10.0.2.15:8888") + .region("RegionOne").build()).build()) .service(Service.builder().name("dns").type("dns") .endpoint(Endpoint.builder() .publicURL("http://172.16.0.1:8776/v1/3456") diff --git a/apis/openstack-keystone/src/test/java/org/jclouds/openstack/keystone/v2_0/parse/ParseRackspaceAccessTest.java b/apis/openstack-keystone/src/test/java/org/jclouds/openstack/keystone/v2_0/parse/ParseRackspaceAccessTest.java index f49a2bf7e6..19e9262f0e 100644 --- a/apis/openstack-keystone/src/test/java/org/jclouds/openstack/keystone/v2_0/parse/ParseRackspaceAccessTest.java +++ b/apis/openstack-keystone/src/test/java/org/jclouds/openstack/keystone/v2_0/parse/ParseRackspaceAccessTest.java @@ -118,6 +118,17 @@ public class ParseRackspaceAccessTest extends BaseItemParserTest { .endpoint(Endpoint.builder() .tenantId("MossoCloudFS_dc1f419c-5059-4c87-a389-3f2e33a77b22") .publicURL("https://cdn1.clouddrive.com/v1/MossoCloudFS_dc1f419c-5059-4c87-a389-3f2e33a77b22") - .region("DFW").build()).build()).build(); + .region("DFW").build()).build()) + .service(Service.builder().name("cloudQueues").type("rax:queues") + .endpoint(Endpoint.builder() + .tenantId("40806637803162") + .publicURL("https://dfw.queues.api.rackspacecloud.com/v1/40806637803162") + .internalURL("https://snet-dfw.queues.api.rackspacecloud.com/v1/40806637803162") + .region("DFW").build()) + .endpoint(Endpoint.builder() + .tenantId("40806637803162") + .publicURL("https://ord.queues.api.rackspacecloud.com/v1/40806637803162") + .internalURL("https://snet-ord.queues.api.rackspacecloud.com/v1/40806637803162") + .region("ORD").build()).build()).build(); } } diff --git a/apis/openstack-keystone/src/test/resources/keystoneAuthResponse.json b/apis/openstack-keystone/src/test/resources/keystoneAuthResponse.json index c3b95677e9..8865a9f20e 100644 --- a/apis/openstack-keystone/src/test/resources/keystoneAuthResponse.json +++ b/apis/openstack-keystone/src/test/resources/keystoneAuthResponse.json @@ -165,6 +165,20 @@ } ] }, + { + "type": "queuing", + "name": "marconi", + "endpoints": [ + { + "adminURL": "http://10.0.2.15:8888", + "region": "RegionOne", + "internalURL": "http://10.0.2.15:8888", + "id": "3456789", + "publicURL": "http://172.16.0.1:8888" + } + ], + "endpoints_links": [] + }, { "type": "dns", "name": "dns", diff --git a/apis/openstack-keystone/src/test/resources/raxAuth.json b/apis/openstack-keystone/src/test/resources/raxAuth.json index aeb96dd5c6..42a78a4b95 100644 --- a/apis/openstack-keystone/src/test/resources/raxAuth.json +++ b/apis/openstack-keystone/src/test/resources/raxAuth.json @@ -96,6 +96,20 @@ }], "name": "cloudFilesCDN", "type": "rax:object-cdn" + }, { + "endpoints": [{ + "internalURL": "https:\/\/snet-dfw.queues.api.rackspacecloud.com/v1/40806637803162", + "publicURL": "https:\/\/dfw.queues.api.rackspacecloud.com\/v1\/40806637803162", + "tenantId": "40806637803162", + "region": "DFW" + }, { + "internalURL": "https:\/\/snet-ord.queues.api.rackspacecloud.com/v1/40806637803162", + "publicURL": "https:\/\/ord.queues.api.rackspacecloud.com\/v1\/40806637803162", + "tenantId": "40806637803162", + "region": "ORD" + }], + "type": "rax:queues", + "name": "cloudQueues" }], "user": { "id": "54321", @@ -107,4 +121,4 @@ "name": "joe" } } -} \ No newline at end of file +} diff --git a/apis/rackspace-cloudidentity/src/main/java/org/jclouds/rackspace/cloudidentity/v2_0/ServiceType.java b/apis/rackspace-cloudidentity/src/main/java/org/jclouds/rackspace/cloudidentity/v2_0/ServiceType.java index abe4d4358c..8940b73b72 100644 --- a/apis/rackspace-cloudidentity/src/main/java/org/jclouds/rackspace/cloudidentity/v2_0/ServiceType.java +++ b/apis/rackspace-cloudidentity/src/main/java/org/jclouds/rackspace/cloudidentity/v2_0/ServiceType.java @@ -29,7 +29,12 @@ public interface ServiceType { public static final String LOAD_BALANCERS = "rax:load-balancer"; /** - * Cloud Load DNS + * Cloud DNS */ public static final String DNS = "rax:dns"; + + /** + * Cloud Queues + */ + public static final String QUEUES = "rax:queues"; } diff --git a/apis/rackspace-cloudidentity/src/test/resources/rackspaceAuthResponse.json b/apis/rackspace-cloudidentity/src/test/resources/rackspaceAuthResponse.json index 1a3d01d378..0a6a1e34fa 100644 --- a/apis/rackspace-cloudidentity/src/test/resources/rackspaceAuthResponse.json +++ b/apis/rackspace-cloudidentity/src/test/resources/rackspaceAuthResponse.json @@ -149,6 +149,24 @@ "region": "DFW" } ] + }, + { + "type": "rax:queues", + "name": "cloudQueues", + "endpoints": [ + { + "internalURL": "https://snet-ord.queues.api.rackspacecloud.com/v1/123123", + "publicURL": "https://ord.queues.api.rackspacecloud.com/v1/123123", + "tenantId": "123123", + "region": "ORD" + }, + { + "internalURL": "https://snet-dfw.queues.api.rackspacecloud.com/v1/123123", + "publicURL": "https://dfw.queues.api.rackspacecloud.com/v1/123123", + "tenantId": "123123", + "region": "DFW" + } + ] } ], "token": {