mirror of https://github.com/apache/jclouds.git
openstack-quantum: adding NETWORK service type and corresponding service in keystoneAuthResponse.json
This commit is contained in:
parent
adf2b5996a
commit
df919fb187
|
@ -45,4 +45,8 @@ public interface ServiceType {
|
|||
* Identity Service (Keystone)
|
||||
*/
|
||||
public static final String IDENTITY = "identity";
|
||||
/**
|
||||
* Network Service (Quantum)
|
||||
*/
|
||||
public static final String NETWORK = "network";
|
||||
}
|
|
@ -95,8 +95,19 @@ public class ParseAccessTest extends BaseItemParserTest<Access> {
|
|||
.tenantId("3456")
|
||||
.publicURL(URI.create("https://az-3.region-a.geo-1.compute.hpcloudsvc.com/v1.1/3456"))
|
||||
.region("az-3.region-a.geo-1")
|
||||
.versionId("1.1").build()).build()
|
||||
).build();
|
||||
.versionId("1.1").build()).build(),
|
||||
|
||||
Service.builder().name("Quantum Service").type("network").endpoints(
|
||||
Endpoint.builder()
|
||||
.tenantId("3456")
|
||||
.publicURL(URI.create("https://csnode.jclouds.org:9696/v1.0/tenants/3456"))
|
||||
.internalURL(URI.create("https://csnode.jclouds.org:9696/v1.0/tenants/3456"))
|
||||
.adminURL(URI.create("https://csnode.jclouds.org:9696/v1.0"))
|
||||
.region("region-a.geo-1")
|
||||
.versionId("1.0").build()
|
||||
).build())
|
||||
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -109,6 +109,20 @@
|
|||
"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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue