You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/logoutresponse_test.rb
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -107,15 +107,22 @@ class RubySamlTest < Minitest::Test
107
107
assert_includeslogoutresponse.errors,"The InResponseTo of the Logout Response: #{logoutresponse.in_response_to}, does not match the ID of the Logout Request sent by the SP: #{expected_request_id}"
108
108
end
109
109
110
-
it"invalidate logout response with wrong request status"do
110
+
it"invalidate logout response with unexpected request status"do
assert_includeslogoutresponse.errors,"Bad status code. Expected <urn:oasis:names:tc:SAML:2.0:status:Success>, but was: <urn:oasis:names:tc:SAML:2.0:status:Requester>"
116
115
assert_includeslogoutresponse.errors,"The status code of the Logout Response was not Success, was Requester"
117
116
end
118
117
118
+
it"invalidate logout response with unexpected request status and status message"do
assert_includeslogoutresponse.errors,"Bad status code. Expected <urn:oasis:names:tc:SAML:2.0:status:Success>, but was: <urn:oasis:names:tc:SAML:2.0:status:Requester>"
147
+
assert_includeslogoutresponse.errors,"The status code of the Logout Response was not Success, wasRequester"
141
148
assert_includeslogoutresponse.errors,"Doesn't match the issuer, expected: <#{logoutresponse.settings.idp_entity_id}>, but was: <http://app.muda.no>"
142
149
end
143
150
@@ -185,14 +192,14 @@ class RubySamlTest < Minitest::Test
assert_includeslogoutresponse.errors,"Bad status code. Expected <urn:oasis:names:tc:SAML:2.0:status:Success>, but was: <urn:oasis:names:tc:SAML:2.0:status:Requester>"
195
+
assert_includeslogoutresponse.errors,"The status code of the Logout Response was not Success, wasRequester"
assert_includeslogoutresponse.errors,"Bad status code. Expected <urn:oasis:names:tc:SAML:2.0:status:Success>, but was: <urn:oasis:names:tc:SAML:2.0:status:Requester>"
202
+
assert_includeslogoutresponse.errors,"The status code of the Logout Response was not Success, wasRequester"
196
203
end
197
204
198
205
it"raise validation error when in lack of issuer setting"do
0 commit comments