Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,6 @@ def get_uss_availability(
Returns:
The state and version of the USS availability.
"""
availability = UssAvailabilityState.Unknown
version = ""
with scenario.check(
"USS Availability can be requested", dss.participant_id
) as check:
Expand All @@ -361,6 +359,7 @@ def get_uss_availability(

availability = avail_response.status.availability
version = avail_response.version
return availability, version
except QueryError as e:
scenario.record_queries(e.queries)
avail_query = e.queries[0]
Expand All @@ -369,7 +368,7 @@ def get_uss_availability(
details=f"DSS responded code {avail_query.status_code}; {e}",
query_timestamps=[avail_query.request.timestamp],
)
return availability, version
raise ScenarioDidNotStopError(check)


def set_uss_availability(
Expand All @@ -387,7 +386,6 @@ def set_uss_availability(
Returns:
The new version of the USS availability.
"""
version = ""
with scenario.check(
"USS Availability can be updated", [dss.participant_id]
) as check:
Expand All @@ -398,6 +396,7 @@ def set_uss_availability(
version,
)
scenario.record_query(avail_query)
return version
except QueryError as e:
scenario.record_queries(e.queries)
avail_query = e.queries[0]
Expand All @@ -406,7 +405,7 @@ def set_uss_availability(
details=f"DSS responded code {avail_query.status_code}; {e}",
query_timestamps=[avail_query.request.timestamp],
)
return version
raise ScenarioDidNotStopError(check)


def make_dss_report(
Expand Down
Loading