fix test_51_client
This commit is contained in:
@@ -30,7 +30,7 @@ from saml2.time_util import in_a_while
|
|||||||
|
|
||||||
from fakeIDP import FakeIDP
|
from fakeIDP import FakeIDP
|
||||||
from fakeIDP import unpack_form
|
from fakeIDP import unpack_form
|
||||||
|
from pathutils import full_path
|
||||||
|
|
||||||
AUTHN = {
|
AUTHN = {
|
||||||
"class_ref": INTERNETPROTOCOLPASSWORD,
|
"class_ref": INTERNETPROTOCOLPASSWORD,
|
||||||
@@ -391,7 +391,7 @@ class TestClient:
|
|||||||
assertion.id, _sec.my_cert, 1)
|
assertion.id, _sec.my_cert, 1)
|
||||||
|
|
||||||
sigass = _sec.sign_statement(assertion, class_name(assertion),
|
sigass = _sec.sign_statement(assertion, class_name(assertion),
|
||||||
key_file="pki/mykey.pem",
|
key_file=full_path("test.key"),
|
||||||
node_id=assertion.id)
|
node_id=assertion.id)
|
||||||
# Create an Assertion instance from the signed assertion
|
# Create an Assertion instance from the signed assertion
|
||||||
_ass = saml.assertion_from_string(sigass)
|
_ass = saml.assertion_from_string(sigass)
|
||||||
@@ -416,7 +416,7 @@ class TestClient:
|
|||||||
seresp = samlp.response_from_string(decr_text)
|
seresp = samlp.response_from_string(decr_text)
|
||||||
resp_ass = []
|
resp_ass = []
|
||||||
|
|
||||||
sign_cert_file = "pki/mycert.pem"
|
sign_cert_file = full_path("test.pem")
|
||||||
for enc_ass in seresp.encrypted_assertion:
|
for enc_ass in seresp.encrypted_assertion:
|
||||||
assers = extension_elements_to_elements(
|
assers = extension_elements_to_elements(
|
||||||
enc_ass.extension_elements, [saml, samlp])
|
enc_ass.extension_elements, [saml, samlp])
|
||||||
|
Reference in New Issue
Block a user