-
Task
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
-
True
-
-
False
-
subs-swatch-thunder
-
-
The endpoint is already defined in the openapi.yaml file and has a default implementation that returns a 501 Not Implemented.
Implement the API such that:
- It is secured using the support and test security roles (should use an API key via the x-rh-swatch-psk header).
- It uses the outbox repository to delete an outbox record by uuid using the path parameter.
- This isn't RPC, so it's an appropriate option to use a 404 error code if a UUID doesn't exist.
Required Testing
- Unit tests & Junit integration test using test containers
- Existing IQE component test is udpated
- Rename the test to test_delete_outbox_record
- Use the GET endpoint from
SWATCH-3779to verify data.
- Tests are added to validate that the endpoint is secured appropriately for each role.
- Thought has been given to any other negative test cases that might be out of scope of this card, and are documented somewhere.
Acceptance Criteria
- The endpoint can be used to delete a specific outbox record.
- Adequate test coverage exists.
- is blocked by
-
SWATCH-3777 Define and generate an internal REST API for the swatch-metrics-hbi outbox records.
-
- Closed
-
-
SWATCH-3862 Configure swatch-common-security in swatch-metrics-hbi
-
- Closed
-
-
SWATCH-3779 Implement GET /api/swatch-metrics-hbi/internal/outbox
-
- Closed
-