> +public class HPCloudBlockStorageProviderMetadataExpectTest extends
> BaseCinderApiExpectTest {
> +
> + public HPCloudBlockStorageProviderMetadataExpectTest() {
> + this.provider = "hpcloud-blockstorage";
> + this.identity = "myTenantName:accessKey";
> + this.credential = "secretKey";
> + }
> +
> + public void testCanGetConfiguredZones() {
> +
> + HttpRequest authenticate = HttpRequest.builder().method("POST")
> +
> .endpoint("https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens")
> + .addHeader("Accept", "application/json")
> + .payload(payloadFromStringWithContentType(
> +
> "{\"auth\":{\"apiAccessKeyCredentials\":{\"accessKey\":\"accessKey\",\"secretKey\":\"secretKey\"},\"tenantName\":\"myTenantName\"}}"
> + , "application/json")).build();
Yeah, I think these are a bit ugly when they are escaped strings inside the
code. I used the Rackspace provider as an example for this one so I just
followed the precedent. I'm going to go ahead and update this one.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/395/files#r14418899