Open rija opened 7 months ago
We may close this as apparently Datacite reset regularly the test registry
We may close this as apparently Datacite reset regularly the test registry I'd rather not close this, and implement a resilient way to test our API client as Datacite test API has been capricious recently
Looking at the DataciteApi, it seems possible to create a DOI in draft status within the test environment which allows for deletion as well. Therefore, I don't think we need a fake API
User story
Acceptance criteria
Additional Info
We only create the method/endpoint for DOI creation Any other query made to our fake API will be passed through directly to the real test MDS API that way we use the sea fake API for all our mint doi tests and don't have the burden of maintaining a full API that stays in sync with changes to the real test MDS API
We could use
json-server
which is already in our dependency. Alternatively, we could use a recording device likephp-vcr
to record requests and responses into tapes that are replayed by automated tests.Product Backlog Item Ready Checklist
Product Backlog Item Done Checklist