interuss / monitoring

InterUSS Platform USS monitoring tools for federated UTM, including automated testing.
Apache License 2.0
12 stars 19 forks source link

[uss_qualifier] scd subscrptions: stop considering 404 a success, add was_not_found #785

Closed Shastick closed 1 month ago

Shastick commented 1 month ago

class FetchedSubscription(fetch.Query) currently considers receiving a 404 from the DSS a success (ie, the success property will return True).

This is not strictly correct and can lead to confusion: a 404 will now cause success to be false. Callers that need to differentiate between a failure and a 404 may use was_not_found which will only be true if the returned code was 404.

Split out of #720