> +      mr.addHeader("x-amzn-RequestId", 
> "AAABZpJrTyioDC_HsOmHae8EZp_uBSJr6cnGOLKp_XJCl-Q");
> +      mr.addHeader("Date", "Sun, 25 Mar 2012 12:02:00 GMT");
> +      MockWebServer server = new MockWebServer();
> +      server.enqueue(mr);
> +      server.play();
> +
> +      // Send the request and check the response
> +      try {
> +         GlacierClient client = getGlacierClient(server.getUrl("/"));
> +         assertTrue(client.deleteVaultIfEmpty(VAULT_NAME));
> +         RecordedRequest request = server.takeRequest();
> +         assertEquals(request.getRequestLine(), "DELETE /-/vaults/" + 
> VAULT_NAME + " HTTP/1.1");
> +      } finally {
> +         server.shutdown();
> +      }
> +   }

Delete returns false when the vault has an archive on it, but I can't upload 
archives yet. Should I wait to the next iteration to add this test?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/4/files#r12955745

Reply via email to