openstack-quantum: adding NETWORK service type and corresponding service in keystoneAuthResponse.json

This commit is contained in:
Adam Lowe 2012-06-01 14:54:31 +01:00
parent adf2b5996a
commit df919fb187
3 changed files with 32 additions and 3 deletions

View File

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

View File

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

View File

@ -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": []
}
]
}
}