> + assertThat(stackId).isNotEmpty();
> +
> + boolean success = retry(new Predicate<String>() {
> + public boolean apply(String stackId) {
> + return stackApi.get(stackId).getStatus() ==
> StackStatus.CREATE_COMPLETE;
> + }
> +
> + }, 60, 1, SECONDS).apply(stackId);
> +
> + if (!success) {
> + Assert.fail("Stack didn't get to status CREATE_COMPLETE in
> 20m.");
> + }
> +
> + UpdateStack updateOptions =
> UpdateStack.builder().templateUrl(TEMPLATE_URL).build();
> + assertThat(stackApi.update(stackName, stack.getId(),
> updateOptions)).isTrue();
> + Stack stackAfterUpdate = stackApi.get(stackName, stack.getId());
I say leave it as is, here. However, it is remotely possible that the status
might not change right away.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/188/files#r28277822