diff --git a/tests/sp_test/targetsp.py b/tests/sp_test/targetsp.py index 5113ceb..d3534fa 100755 --- a/tests/sp_test/targetsp.py +++ b/tests/sp_test/targetsp.py @@ -37,7 +37,16 @@ info = { }, # This is the value of the NameID that is return in the Subject in the # Assertion - "userid": "roland" + "userid": "roland", + # regex pattern that must be contained in the resulting echo page to validate + # that the SP returned the right page after Login. + "echopageIdPattern": r"SAML Echo Service", + # list of regex patterns that must be contained in the resulting echo page to validate + # that the SP's echo page returns expected SAMLe response values (e.g. attribute values) + "echopageContentPattern": [r"Given Name\s*\s*Roland", + r"Userid\s*\s*roalnd", + r"Surname\s*\s*Hedberg", + ] } print json.dumps(info) \ No newline at end of file