Skip to content

Commit e10bae1

Browse files
committed
added test case sp-01; polished test case description
1 parent ac5a839 commit e10bae1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/sp_test/tests.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from saml2.saml import ConditionAbstractType_
1212
from saml2.samlp import STATUS_AUTHN_FAILED
1313
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
1515
from sp_test import check
1616
from saml2test import ip_addresses
1717

@@ -81,7 +81,7 @@ def post_processing(self, message, *kwargs):
8181
class Request(object):
8282
response = ""
8383
_class = None
84-
tests = {"post": [VerifyContent], "pre": []}
84+
tests = {"post": [VerifyAuthnRequest], "pre": []}
8585

8686
def __init__(self):
8787
pass
@@ -366,10 +366,17 @@ def pre_processing(self, message, **kwargs):
366366
OPERATIONS = {
367367
'sp-00': {
368368
"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',
370371
"sequence": [(Login, AuthnRequest, AuthnResponse, None)],
371372
"tests": {"pre": [], "post": []}
372373
},
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+
},
373380
'FL02': {
374381
"name": 'Verify various aspects of the generated AuthnRequest message',
375382
"descr": 'Basic Login test',

0 commit comments

Comments
 (0)