From f74a54e43b429292fe475a215c0b9baf662d8039 Mon Sep 17 00:00:00 2001 From: Julien Perrochet Date: Tue, 16 Apr 2024 19:41:44 +0200 Subject: [PATCH] [uss_qualifier] SCD failed authentication response check properly attributes check (#642) --- .../scenarios/astm/utm/dss/authentication/generic.py | 3 ++- .../astm/utm/dss/authentication/oir_api_validator.py | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/monitoring/uss_qualifier/scenarios/astm/utm/dss/authentication/generic.py b/monitoring/uss_qualifier/scenarios/astm/utm/dss/authentication/generic.py index da6f8df0f0..228619f562 100644 --- a/monitoring/uss_qualifier/scenarios/astm/utm/dss/authentication/generic.py +++ b/monitoring/uss_qualifier/scenarios/astm/utm/dss/authentication/generic.py @@ -19,6 +19,7 @@ def __init__( dss: DSSInstance, valid_scope: Scope, ): + self._pid = dss.participant_id self._scenario = scenario self._authenticated_session = dss.client self._invalid_token_session = UTMClientSession( @@ -84,7 +85,7 @@ def verify_4xx_response(self, q: fetch.Query): """Verifies that the passed query response's body is a valid ErrorResponse, as per the OpenAPI spec.""" with self._scenario.check( - "Unauthorized requests return the proper error message body" + "Unauthorized requests return the proper error message body", self._pid ) as check: errors = schema_validation.validate( F3548_21.OpenAPIPath, diff --git a/monitoring/uss_qualifier/scenarios/astm/utm/dss/authentication/oir_api_validator.py b/monitoring/uss_qualifier/scenarios/astm/utm/dss/authentication/oir_api_validator.py index 4abd825063..9410db3bf9 100644 --- a/monitoring/uss_qualifier/scenarios/astm/utm/dss/authentication/oir_api_validator.py +++ b/monitoring/uss_qualifier/scenarios/astm/utm/dss/authentication/oir_api_validator.py @@ -172,7 +172,8 @@ def _verify_oir_creation(self): ) with self._scenario.check( - "Create operational intent reference response format conforms to spec" + "Create operational intent reference response format conforms to spec", + self._pid, ) as check: try: oir_resp = ImplicitDict.parse( @@ -347,7 +348,8 @@ def _verify_oir_mutation(self): ) with self._scenario.check( - "Mutate operational intent reference response format conforms to spec" + "Mutate operational intent reference response format conforms to spec", + self._pid, ) as check: try: parsed_oir = ImplicitDict.parse(