> + assertEquals(webhook.getLinks().size(), 2);
> + }
> +
> + public void testGetWebhookFail() {
> + URI endpoint =
> URI.create("https://dfw.autoscale.api.rackspacecloud.com/v1.0/888888/groups/1234567890/policies/321456/webhooks/5555");
> + WebhookApi api = requestsSendResponses(
> + keystoneAuthWithUsernameAndPasswordAndTenantName,
> + responseWithKeystoneAccess,
> + authenticatedGET().endpoint(endpoint).build(),
> +
> HttpResponse.builder().statusCode(404).payload(payloadFromResource("/autoscale_webhook_get_response.json")).build()
> + ).getWebhookApiForGroupAndPolicyInZone("1234567890", "321456",
> "DFW");
> +
> + WebhookResponse webhook = api.get("5555");
> + assertNull(webhook);
> + }
> +}
That said, I'm ok to leave this for a different pull request if we open an
issue in JIRA to refactor the whole autoscale and set the fix version to 1.7
(or the versions this PR will be merged to). Just want to make sure we don't
forget this and we don't increase our technical debt.
WDYT?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/48/files#r7520995