openactive / openactive-test-suite

Test suite for OpenActive implementations
MIT License
2 stars 9 forks source link

Test for security and stability #441

Open nickevansuk opened 3 years ago

nickevansuk commented 3 years ago

There are currently no tests to ensure that correct security is implemented for the Orders feed.

Additional tests

booking-partner-authentication feature should be split into:

multiple-sellers feature should also include:

Additionally to assure stability of tests that use the Orders feed, the following tests should be added to the order-deletion feature:

Additional test suite features to support these

To implement the above, recommend additional features in the broker microservice: 1) Allow Orders feed listening to take into account the booking-partner creds to use (primary or secondary, already configured) - this likely means harvesting double the number of Orders feeds (harvesting running for each set of creds, getOrdersFeedHeader looks like it could easily be parameterised to support primary and secondary). 2) Keep track of the UUIDs seen in each Orders/Order Proposal feed for each booking-partner creds. Add a new endpoint that allows test suite to assert that a particular UUID has not been seen yet.

lukehesluke commented 3 years ago

@nickevansuk

nickevansuk commented 3 years ago

Should this instead be that multiple-sellers is required in order for this feature to be enabled?

Yes that's right, good catch

Wait for 1 second.

Is there a risk here that the broker microservice harvester doesn't pick up these updates in time? I.e that the update happens in the RPDE feed before the page is harvested, and effectively hides the previous update (so we'd get false-positives?)

lukehesluke commented 1 year ago

I've moved this to the OpenActive Infrastructure project with the view that the unsettled questions here should be resolved to the point where implementation could reasonably be started