Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-3783

Implement PUT /api/swatch-metrics-hbi/internal/outbox/

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • swatch-metrics-hbi
    • None
    • 5
    • True
    • Hide

      None

      Show
      None
    • True
    • subs-swatch-1

      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 the outbox repository to update an existing outbox record based on the outbox DTO JSON in the request body.

      Required Testing

      • Unit tests & Junit integration test using test containers.
      • Existing IQE component test is updated:
        • Rename the test to test_update_outbox_record
        • Use the POST endpoint to create initial record.
        • Use the GET endpoint from SWATCH-3779 to 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 update an existing outbox record.
      • Adequate test coverage exists.

              Unassigned Unassigned
              mstead@redhat.com Michael Stead
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: