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

Consume export request messages for subscription data

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • True
    • BIZ-356 - Export of Subscription Watch data

      The focus of this story is to establish the input/output mechanisms for exporting subscription data. After the completion of this story, I expect to be able to put a message on the platform.export.requests topic and have the swatch-subscription-sync-service app try to report an error back to the Export Service.

      Requirements:

        • checkRbac (stubbed method)
        • fetchData(request) (stubbed method)
        • uploadData(data, format) should delegate to uploadCsv(data) or uploadJson(data), and throw "format %s not implemented" for any other format.
      • The listener must catch and report these errors with exportClient.downloadExportError with error code 501 and a message explaining what's not yet implemented.
      • At this time, checkRbacfetchData, and uploadJson, and uploadCsv should be stubbed to throw an exception indicating what's not implemented.
      • Unexpected errors should be caught, logged at error level, and reported with exportClient.downloadExportError with error code 500, and a message "Unexpected error."
      • URLs & credentials for the export service should be populated from Clowder

      Testing considerations:

      • An export request for instances and/or subscriptions should fail at this point with not implemented message for rbac.
      • We should be able to drop example messages onto the export requests topic easy enough locally and in EE/pr checks
      • For stage testing we should be able to initiate this by hitting the export service's public facing api

            ksynvrit Kenny Synvrit (Inactive)
            lburnett0 Lindsey Burnett
            Sanket Jagtap Sanket Jagtap
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: