From 912635e454ebc9ea5939573f37bc1cf81f6c6893 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Thu, 12 Jan 2012 18:03:39 -0800 Subject: [PATCH] authorization exception is now gone --- .../jclouds/cloudservers/handlers/RetryOnRenewExpectTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/cloudservers/src/test/java/org/jclouds/cloudservers/handlers/RetryOnRenewExpectTest.java b/apis/cloudservers/src/test/java/org/jclouds/cloudservers/handlers/RetryOnRenewExpectTest.java index 019255519e..44e4d6fba7 100644 --- a/apis/cloudservers/src/test/java/org/jclouds/cloudservers/handlers/RetryOnRenewExpectTest.java +++ b/apis/cloudservers/src/test/java/org/jclouds/cloudservers/handlers/RetryOnRenewExpectTest.java @@ -151,7 +151,7 @@ public class RetryOnRenewExpectTest extends BaseCloudServersRestClientExpectTest } // FIXME stack trace shows the AuthorizationException, but it's buried inside a guice TestException - @Test(enabled=false, expectedExceptions=AuthorizationException.class) + @Test(expectedExceptions=AuthorizationException.class) public void testDoesNotReauthenticateOnAuthentication401() { HttpRequest initialAuth = HttpRequest.builder().method("GET").endpoint(URI.create("https://auth/v1.0")) .headers( @@ -166,7 +166,7 @@ public class RetryOnRenewExpectTest extends BaseCloudServersRestClientExpectTest .payload(Payloads.newStringPayload("[{\"unauthorized\":{\"message\":\"A different message implying fatal.\",\"code\":401}}]")) .build(); - CloudServersClient client = orderedRequestsSendResponses(initialAuth, unauthResponse); + CloudServersClient client = requestSendsResponse(initialAuth, unauthResponse); client.deleteImage(11); }