Skip to content

Commit 3ef49d6

Browse files
jorbaumKehrlann
authored andcommitted
Accept "access_denied: Access Denied" from UAA
Some UAA seem to send a slightly different reply. This accepts and tests for both.
1 parent 19318f8 commit 3ef49d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration-test/src/test/java/org/cloudfoundry/uaa/TokensTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public void checkTokenNotAuthorized() {
8484
t ->
8585
assertThat(t)
8686
.isInstanceOf(UaaException.class)
87-
.hasMessage("access_denied: Access is denied"))
87+
.hasMessageContainingAll("access_denied", "Access"))
8888
.verify(Duration.ofMinutes(5));
8989
}
9090

0 commit comments

Comments
 (0)