You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by Ignasi Barrera <no...@github.com> on 2015/01/05 14:24:07 UTC
Re: [jclouds-labs] [JCLOUDS-702] JCloud ProfitBricks provider
implementation (#72)
> + server.enqueue(new MockResponse().setBody(payloadInProcess));
> + server.enqueue(new MockResponse().setBody(payloadAvailable));
> +
> + server.enqueue(new MockResponse().setBody(payloadAvailable));
> +
> + ProfitBricksApi pbApi = api(server.getUrl(rootUrl));
> +
> + Predicate<String> waitUntilAvailable = Predicates2.retry(
> + new ProvisioningStatusPollingPredicate(pbApi, ProvisioningStatusAware.DATACENTER, ProvisioningState.AVAILABLE),
> + 30l, 1l, TimeUnit.SECONDS);
> +
> + String id = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee";
> + try {
> + waitUntilAvailable.apply(id);
> + ProvisioningState finalState = pbApi.dataCenterApi().getDataCenterState(id);
> + assertEquals(finalState, ProvisioningState.AVAILABLE);
Also verify the requests that have been made?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/72/files#r22460088