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

Create azure marketplace wiremock stubbing to handle duplicate messages

XMLWordPrintable

    • 5
    • False
    • Hide

      None

      Show
      None
    • True

      In order to test duplicate usages being sent to the azure marketplace api, we need to create stub mappings that respond differently when given the same request.

      The first call should return the standard success message and subsequent api calls should return the status as Duplicate as documented here:
      https://learn.microsoft.com/en-us/partner-center/marketplace-offers/marketplace-metering-service-apis#responses

      To do this we can use wiremocks stateful capabilities:
      https://wiremock.org/docs/stateful-behaviour/

       

      SWatch-3043 Component Test General Info Doc

              rhn-sqe-tmcknigh Trayvon McKnight
              kflahert@redhat.com Kevin Flaherty
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: