From 3e5b674a88a24f4cb35abb3f3ed66081f757d0b0 Mon Sep 17 00:00:00 2001 From: rhoerbe Date: Fri, 11 Jul 2014 11:50:54 +0200 Subject: [PATCH] added config for new class VerifyEchopageContents --- tests/sp_test/targetsp.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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