authorization exception is now gone

This commit is contained in:
Adrian Cole 2012-01-12 18:03:39 -08:00
parent 5039708d34
commit 912635e454
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ public class RetryOnRenewExpectTest extends BaseCloudServersRestClientExpectTest
} }
// FIXME stack trace shows the AuthorizationException, but it's buried inside a guice TestException // 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() { public void testDoesNotReauthenticateOnAuthentication401() {
HttpRequest initialAuth = HttpRequest.builder().method("GET").endpoint(URI.create("https://auth/v1.0")) HttpRequest initialAuth = HttpRequest.builder().method("GET").endpoint(URI.create("https://auth/v1.0"))
.headers( .headers(
@ -166,7 +166,7 @@ public class RetryOnRenewExpectTest extends BaseCloudServersRestClientExpectTest
.payload(Payloads.newStringPayload("[{\"unauthorized\":{\"message\":\"A different message implying fatal.\",\"code\":401}}]")) .payload(Payloads.newStringPayload("[{\"unauthorized\":{\"message\":\"A different message implying fatal.\",\"code\":401}}]"))
.build(); .build();
CloudServersClient client = orderedRequestsSendResponses(initialAuth, unauthResponse); CloudServersClient client = requestSendsResponse(initialAuth, unauthResponse);
client.deleteImage(11); client.deleteImage(11);
} }