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

Add "rate_limit" component test in swatch-producer-azure test

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • subs-swatch-lightning

      • Description: Verify swatch-producer-azure is putting the correct status on the billable_usage_status topic when it receives rate_limit error
      • Setup: 
        • Wiremock AzureUsageContext
        • Wiremock Azure ‘rate limit’ error response
      • Action: Simulates swatch-azure-producer being denied usage due to too many requests in within time limit
        • There is not rate limit for Wiremock so we will have to make that the explicit response
      • Verification: 
        • Billable_usage_status topic
      • Expected Result:
      • Status Topic:
      • Status: failed
      • Error: market_rate_limit

      Acceptance criteria:

      • The test leverages new testing framework capabilities
      • The assertions should be according to the test plans
      • The test can be run on both local and EE

              Unassigned Unassigned
              karshah@redhat.com Kartik Shah
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: