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

Write a test case to verify usage

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Automation
    • False
    • Hide

      None

      Show
      None
    • False

      Any remittance test case can be extended using the updated helpers to verify the usage sent to moto

      The verification part in the test will be ephemeral only so we may want to add a if statement to check the env we are running the test in, or create the verification helper accordingly,

      To verify the usage sent to moto after tally, 

      import requests, json
      Res = requests.get("http://moto:5000/moto-api/data.json")
      J = json.loads(res.content)
      j.get("meteringmarketplace") 

      Add a new helper to retrieve usage data from moto

            sjagtap@redhat.com Sanket Jagtap
            sjagtap@redhat.com Sanket Jagtap
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: