Skip to content

Commit 7f0f070

Browse files
author
Kouroche Sedaghatian
committed
Update to make tests pass
1 parent 5f525ac commit 7f0f070

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

toolkit/src/test/java/com/onelogin/saml2/test/AuthTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@ public void testIsAuthenticated() throws Exception {
742742
assertFalse(auth.getErrors().isEmpty());
743743
List<String> expectedErrors = new ArrayList<String>();
744744
expectedErrors.add("invalid_response");
745+
expectedErrors.add("urn:oasis:names:tc:SAML:2.0:status:Success");
745746
assertEquals(expectedErrors, auth.getErrors());
746747
assertEquals("SAML Response must contain 1 Assertion.", auth.getLastErrorReason());
747748

@@ -755,6 +756,7 @@ public void testIsAuthenticated() throws Exception {
755756
assertFalse(auth2.getErrors().isEmpty());
756757
expectedErrors = new ArrayList<String>();
757758
expectedErrors.add("invalid_response");
759+
expectedErrors.add("urn:oasis:names:tc:SAML:2.0:status:Success");
758760
assertEquals(expectedErrors, auth2.getErrors());
759761
assertThat(auth2.getLastErrorReason(), containsString("Invalid issuer in the Assertion/Response"));
760762

0 commit comments

Comments
 (0)