Skip to content

Commit

Permalink
[uss_qualifier] SCD failed authentication response check properly att…
Browse files Browse the repository at this point in the history
…ributes check (interuss#642)
  • Loading branch information
Shastick authored Apr 16, 2024
1 parent cdefea3 commit f74a54e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit f74a54e

Please sign in to comment.