Skip to content

Commit

Permalink
Second iteration: split checks, test for mutations, test for version …
Browse files Browse the repository at this point in the history
…update
  • Loading branch information
Shastick committed Oct 30, 2023
1 parent dddf929 commit f9cc898
Show file tree
Hide file tree
Showing 12 changed files with 1,043 additions and 334 deletions.
11 changes: 11 additions & 0 deletions monitoring/monitorlib/fetch/rid.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,17 @@ def notification_index(self) -> int:
f"Cannot retrieve notification_index using RID version {self.rid_version}"
)

@property
def owner(self) -> str:
if self.rid_version == RIDVersion.f3411_19:
return self.v19_value.owner
elif self.rid_version == RIDVersion.f3411_22a:
return self.v22a_value.owner
else:
raise NotImplementedError(
f"Cannot retrieve owner using RID version {self.rid_version}"
)


class RIDQuery(ImplicitDict):
v19_query: Optional[Query] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

While neither ASTM F3411-19 nor F3411-22a explicitly require DSS implementations to implement all endpoints specified in Annex A4 (of each respective standard), InterUSS automated testing expects DSS implementations to implement all DSS endpoints specified in Annex A4. Specifically:

* <tt>PutISA</tt>: The DSS implementation under test must implement the ability to create and update an Identification Service Area by ID in accordance with the API specified in Annex A4 of the respective standard.
* <tt>GetISA</tt>: The DSS implementation under test must implement the ability to retrieve an Identification Service Area by ID in accordance with the API specified in Annex A4 of the respective standard.
* <tt>DeleteISA</tt>: The DSS implementation under test must implement the ability to delete an Identification Service Area by ID in accordance with the API specified in Annex A4 of the respective standard.
* <tt>SearchISAs</tt>: The DSS implementation under test must implement the ability to search for Identification Service Areas meeting the specified criteria in accordance with the API specified in Annex A4 of the respective standard.
* <tt>PutSubscription</tt>: The DSS implementation under test must implement the ability to create a subscription in accordance with the API specified in Annex A4 of the respective standard.
* <tt>GetSubscription</tt>: The DSS implementation under test must implement the ability to retrieve a Subscription by ID in accordance with the API specified in Annex A4 of the respective standard.
* <tt>DeleteSubscription</tt>: The DSS implementation under test must implement the ability to delete s Subscription in accordance with the API specified in Annex A4 of the respective standard.
* <tt>SearchSubscriptions</tt>: The DSS implementation under test must implement the ability to search for subscriptions in accordance with the API specified in Annex A4 of the respective standard.
* <tt>SubscriptionInitialNotificationIndex</tt>: The DSS implementation under test must set the `notification_index` at 0 for any newly created subscription.
* <tt>SubscriptionVersionFormat</tt>: The DSS implementation under test must use a string of 10 or more lower-cased alphanumeric characters for the `version` field of a subscription.
Loading

0 comments on commit f9cc898

Please sign in to comment.