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

Update IQE helper and tests to accomodate moto changes

XMLWordPrintable

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

      None

      Show
      None
    • False

      • RHSM IQE Config
        • Add a new user or use existing user. Add the config for the user to clowder_smoke section of iqe config
        • Update the user_app fixture for this user to opt-in and sync all the offerings we will be using to send usage.
      • Updating test and creating usage against the account
        • app.rhsm_subscriptions.create_mock_payg_cluster("rhods",billing_provider="aws", billing_account_id="102", cores=11)
          • Use the billing_account_id from the sku addition helper

      {{Note: sellerAccount/customerAccountId are translated to the aws accound and need to mentioned in credentials part of moto and has to same. 

      Note: We are affected by SWATCH-1828 to use internal_api_add_sku to add SKUs.
      Workaround is to directly add SKU in db.}}

      INSERT INTO public.subscription (sku, org_id, subscription_id, quantity, start_date, end_date, billing_provider_id, account_number, subscription_number, billing_provider, billing_account_id) VALUES ('MCT4121HR', '14660169', '100', 1, '2023-10-11 04:00:00.000000 +00:00', '2023-10-15 03:59:59.000000 +00:00', 'bcwuzc8ww10vvxfair55mliy8;EgFgSrDrqVV;771835612317', '', '101', 'aws', '102'); 

      {{}}

              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: