XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      There are test failures that need to fixed 

       

      https://ibutsu.apps.ocp4.prod.psi.redhat.com/runs/547e2fe7-daaa-451f-bb6f-dc45c9f2932f#summary

       

      Following error:

      application = <iqe.base.application.Application object at 0x7f0856ce3370>
      sku = 'MCT4149'    @pytest.mark.parametrize("sku", list(skus.keys()))
          def test_validate_capacity_for_sku(application, sku):
              """Validate capacity data with all SLA filters on various subscription skus.
              metadata:
                  assignee: tmcknigh
                  negative: false
                  bugzilla: 1824384
                  customer_scenario: true
                  test_steps:
                      1. Read existing capacity data with SLA filter for all products.
                      2. Increase subscription capacity by adding SKU to account
                      3. Sync Capacity data for account.
                      4. Read new capacity data.
                      5. Verify capacity data with different SLA filters shows
                      increased count for today.
                  expected_results:
                      1. Capacity data shown for product sku with SLA filter is correct.
              """
              # Add subscriptions
              initial_result = capacity_report(application)
          
              if all(item in skus[sku].keys() for item in ["product_id"]):
      >           subscription = application.rhsm_subscriptions.add_sku(
                      sku, count=skus[sku]["count"], wait=True, product_id=skus[sku]["product_id"]
                  )/iqe_venv/lib/python3.9/site-packages/iqe_capacity/tests/test_validate_skus.py:53: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      /iqe_venv/lib/python3.9/site-packages/iqe_rhsm_subscriptions/__init__.py:327: in add_sku
          subscription = sku_add(
      /iqe_venv/lib/python3.9/site-packages/smqe_tools/__init__.py:1290: in sku_add
          response.raise_for_status()
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <Response [500]>    def raise_for_status(self):
              """Raises :class:`HTTPError`, if one occurred."""
          
              http_error_msg = ""
              if isinstance(self.reason, bytes):
                  # We attempt to decode utf-8 first because some servers
                  # choose to localize their reason strings. If the string
                  # isn't utf-8, we fall back to iso-8859-1 for all other
                  # encodings. (See PR #3538)
                  try:
                      reason = self.reason.decode("utf-8")
                  except UnicodeDecodeError:
                      reason = self.reason.decode("iso-8859-1")
              else:
                  reason = self.reason
          
              if 400 <= self.status_code < 500:
                  http_error_msg = (
                      f"{self.status_code} Client Error: {reason} for url: {self.url}"
                  )
          
              elif 500 <= self.status_code < 600:
                  http_error_msg = (
                      f"{self.status_code} Server Error: {reason} for url: {self.url}"
                  )
          
              if http_error_msg:
      >           raise HTTPError(http_error_msg, response=self)
      E           requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://subscription.stage.api.redhat.com/svcrest/regnum/v5/hock/order/iqe_venv/lib/python3.9/site-packages/requests/models.py:1021: HTTPError 

              Unassigned Unassigned
              rhn-sqe-tmcknigh Trayvon McKnight
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: