Anthony-Nolan / Atlas

A free & open-source Donor Search Algorithm Service
GNU General Public License v3.0
9 stars 5 forks source link

Include search request failure info in the search results notification message #880

Closed zabeen closed 1 year ago

zabeen commented 1 year ago

TBC

zabeen commented 1 year ago

Testing

Matching Algorithm - Intermittent Failure

First retries

Given a valid search request with valid HLA typings
And match prediction enabled,
When an intermittent failure occurs during matching algorithm request processing,
And retry attempts remain on the request,
Then multiple matching and search failure notifications should be sent out for as long as the intermittent failure lasts,
Each notification containing the correct failure information,
And saying that search will be retried.

Last Retry

Given a valid search request with valid HLA typings
And match prediction enabled,
When an intermittent failure occurs during matching algorithm request processing,
And no retry attempts remain on the request,
Then one last matching and search failure notification should be sent out,
Containing the correct failure information,
And saying that search will be NOT retried.

Matching Algorithm - Validation Failure

Given a valid search request with an invalid HLA typing
And match prediction enabled,
When the request is processed by the matching algorithm,
Then only a single matching and search failure notification should be sent out,
Each containing the correct failure information,
And saying that the search will NOT be retried.

Search Orchestrator - Intermittent Failure

Given a valid search request with valid HLA typings
And match prediction enabled,
When an intermittent failure occurs during search orchestrator request processing,
Then the request should be retried by the orchestrator until retries are exhausted, After which only a single search failure notification should be sent out,
Containing the correct failure information,
And saying that the search will NOT be retried.

Attempt 1
Attempt 2

Regression Testing

No Failure during Search

Given a valid search request with valid HLA typings
And match prediction enabled,
When the request has been processed,
Then a single matching and search result notification should be sent out,
Each notification containing the correct search information,
And no failure information.

Summary