Permalink
Browse files

Fix broken integration test

Recent changes to the sparklr sample mean that it is using a vanilla
basic auth entry point for the token endpoint.
  • Loading branch information...
dsyer committed Feb 13, 2013
1 parent bd402e7 commit 7c059043325d92d429be621fd47322c9f44d57dc
@@ -94,7 +94,7 @@ public void handleError(ClientHttpResponse response) throws IOException {
}
// System.err.println(responseHeaders);
String header = responseHeaders.getFirst("WWW-Authenticate");
- assertTrue("Wrong header: " + header, header.contains("error=\"invalid_client\""));
+ assertTrue("Wrong header: " + header, header.contains("Basic realm"));
assertEquals(HttpStatus.UNAUTHORIZED, responseStatus);
}
@@ -122,7 +122,7 @@ public void handleError(ClientHttpResponse response) throws IOException {
}
// System.err.println(responseHeaders);
String header = responseHeaders.getFirst("WWW-Authenticate");
- assertTrue("Wrong header: " + header, header.contains("error=\"invalid_client\""));
+ assertTrue("Wrong header: " + header, header.contains("Basic realm"));
assertEquals(HttpStatus.UNAUTHORIZED, responseStatus);
}

0 comments on commit 7c05904

Please sign in to comment.