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

Create a helper to interact with moto

XMLWordPrintable

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

      None

      Show
      None
    • False

      • Perform hourly tally
      app.rhsm_subscriptions.sync_tally_hourly(perform_metering=False)
      • Check usage reported in Moto
      import requests, json
      Res = requests.get("http://moto:5000/moto-api/data.json")
      J = json.loads(res.content)
      j.get("meteringmarketplace")

      We need to identify how to pull the exact usage from moto that our tallysnapshot created.

      Create a SMQE helper to fetch and  organize the usage records according to what tests needs are. 

            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: