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

Update swatch-contracts test_verify_subscription_sync_overwrites_invalid_record for local component testing

XMLWordPrintable

    • 5
    • False
    • Hide

      None

      Show
      None
    • True
    • subs-swatch

      This is a follow-up from SWATCH-3625 

      Update the tests to run locally:

      • test_verify_subscription_sync_overwrites_invalid_records  and
      • test_verify_contract_missing_purchase

      The tests in `test_contracts_error.py` should pass.
      `iqe tests plugin rhsm_subscriptions -k test_contracts_error`
      Local Setup:  https://inscope.corp.redhat.com/docs/default/Component/swatch-internal-docs/IQE/IQE%20local%20setup/

      test_verify_contract_missing_purchase is failing https://github.com/RedHatInsights/rhsm-subscriptions/blob/main/swatch-contracts/src/main/java/com/redhat/swatch/contract/model/ContractOfferingMapper.java#L57
      is throwing a 'Bad Request Exception' when it can't find sku MCT4701. The test is expecting a 500 error code back, not a 400

              jcarvaja@redhat.com Jose Carvajal Hilario
              buschv Vanessa Busch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: