|
11 | 11 | from saml2.saml import ConditionAbstractType_
|
12 | 12 | from saml2.samlp import STATUS_AUTHN_FAILED
|
13 | 13 | from saml2.time_util import in_a_while, a_while_ago
|
14 |
| -from sp_test.check import VerifyContent |
| 14 | +from sp_test.check import VerifyAuthnRequest |
15 | 15 | from sp_test import check
|
16 | 16 | from saml2test import ip_addresses
|
17 | 17 |
|
@@ -81,7 +81,7 @@ def post_processing(self, message, *kwargs):
|
81 | 81 | class Request(object):
|
82 | 82 | response = ""
|
83 | 83 | _class = None
|
84 |
| - tests = {"post": [VerifyContent], "pre": []} |
| 84 | + tests = {"post": [VerifyAuthnRequest], "pre": []} |
85 | 85 |
|
86 | 86 | def __init__(self):
|
87 | 87 | pass
|
@@ -366,10 +366,17 @@ def pre_processing(self, message, **kwargs):
|
366 | 366 | OPERATIONS = {
|
367 | 367 | 'sp-00': {
|
368 | 368 | "name": 'Basic Login test',
|
369 |
| - "descr": 'Basic Login test', |
| 369 | + "descr": 'GET startpage from SP, verify authentication request, verify ' \ |
| 370 | + 'HTTP-Response after sending the SAML response', |
370 | 371 | "sequence": [(Login, AuthnRequest, AuthnResponse, None)],
|
371 | 372 | "tests": {"pre": [], "post": []}
|
372 | 373 | },
|
| 374 | + 'sp-01': { |
| 375 | + "name": 'Login & echo page verification test', |
| 376 | + "descr": 'Same as SP-00, then check if result page is displayed', |
| 377 | + "sequence": [(Login, AuthnRequest, AuthnResponse, check.VerifyEchopageContents)], |
| 378 | + "tests": {"pre": [], "post": []} |
| 379 | + }, |
373 | 380 | 'FL02': {
|
374 | 381 | "name": 'Verify various aspects of the generated AuthnRequest message',
|
375 | 382 | "descr": 'Basic Login test',
|
|
0 commit comments