> +
> +         FluentIterable<WebhookResponse> webhooks = 
> api.create(ImmutableList.of(
> +               
> Webhook.builder().name("PagerDuty").metadata(ImmutableMap.<String, 
> Object>of("notes", "PagerDuty will fire this webhook")).build(),
> +               
> Webhook.builder().name("Nagios").metadata(ImmutableMap.<String, 
> Object>of()).build()
> +               ));
> +
> +         /*
> +          * Check request
> +          */
> +         assertAuthentication(server);
> +         assertRequest(server.takeRequest(), "POST", 
> "/v1.0/888888/groups/1234567890/policies/321456/webhooks", 
> "/autoscale_webhooks_create_request.json");
> +
> +         /*
> +          * Check response
> +          */
> +         assertTrue(webhooks.isEmpty());

`webhooks.isEmpty(), "Expected no webhooks but was: " + webhooks`, or something 
like that?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/67/files#r8426025

Reply via email to