> +      JobStatus status = api.getJobApi().jobStatus(URI.create(requestUrl));
> +
> +      assertEquals(status, JobStatus.DONE);
> +
> +      assertSent(server, "GET", requestUrl);
> +   }
> +
> +   public void testGetJobStatusInProgress() throws InterruptedException {
> +      server.enqueue(response202WithHeader());
> +
> +      JobStatus status = api.getJobApi().jobStatus(URI.create(requestUrl));
> +
> +      assertEquals(status, JobStatus.IN_PROGRESS);
> +
> +      assertSent(server, "GET", requestUrl);
> +   }

Add a test for any other response status code, so the FAILED path is also 
verified.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/250/files/d69ec53fd4b92d8f787d91bb58733c09181e47ac#r58668654

Reply via email to