Skip to content

Commit 3e5b674

Browse files
committed
added config for new class VerifyEchopageContents
1 parent 987fb0b commit 3e5b674

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/sp_test/targetsp.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@
3737
},
3838
# This is the value of the NameID that is return in the Subject in the
3939
# Assertion
40-
"userid": "roland"
40+
"userid": "roland",
41+
# regex pattern that must be contained in the resulting echo page to validate
42+
# that the SP returned the right page after Login.
43+
"echopageIdPattern": r"<title>SAML Echo Service</title>",
44+
# list of regex patterns that must be contained in the resulting echo page to validate
45+
# that the SP's echo page returns expected SAMLe response values (e.g. attribute values)
46+
"echopageContentPattern": [r"Given Name\s*</td>\s*<td>Roland</td>",
47+
r"Userid\s*</td>\s*<td>roalnd</td>",
48+
r"Surname\s*</td>\s*<td>Hedberg</td>",
49+
]
4150
}
4251

4352
print json.dumps(info)

0 commit comments

Comments
 (0)