From 8484c84aedf9e25f230327ca0d5fe8899e73f0c4 Mon Sep 17 00:00:00 2001 From: MDreW Date: Tue, 4 Oct 2022 08:09:45 +0200 Subject: [PATCH] fixed test 99 --- example/backends/spidsaml2_validator.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/example/backends/spidsaml2_validator.py b/example/backends/spidsaml2_validator.py index 454bb271..ac40c574 100644 --- a/example/backends/spidsaml2_validator.py +++ b/example/backends/spidsaml2_validator.py @@ -363,12 +363,13 @@ def validate_assertion_authn_statement(self): "Assertion attribute_statement.attribute is missing/invalid. " f"{_ERROR_TROUBLESHOOT}" ) - # 99 - if len(i.attribute_statement) < 1: - raise SPIDValidatorException( - "Assertion attribute_statement is missing/invalid. " - f"{_ERROR_TROUBLESHOOT}" - ) + # 99 + for attro in attri.attribute: + if not attro.attribute_value: + raise SPIDValidatorException( + "Assertion attribute_value is missing/invalid. " + f"{_ERROR_TROUBLESHOOT}" + ) def run(self, tests=[]): """run all tests/methods"""