Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-14418

Search - cases are failed with http 500

XMLWordPrintable

    • 1
    • False
    • None
    • False
    • Search Sprint 2024-21
    • Important
    • None

      Description of problem: This issue is found after another issue https://issues.redhat.com/browse/ACM-14416, at the beginning the queries cases are failed sometimes on the 2.11.3 and 2.12 environment, the failure due to the automation can't get the existing resources. But from last Friday, run the cases on 2.12 failed due to 500 error.

      ```

          expected 200 "OK", got 500 "Internal Server Error"

            105 |     .send(query)
            106 |     .set({ Authorization: `Bearer ${token}` })
          > 107 |     .expect(200)
                |      ^
            108 |     .then((r) => {
            109 |       const elapsed = Date.now() - startTime
            110 |

            at expect (../common-lib/searchClient.js:107:6)
            at sendRequest (../common-lib/searchClient.js:177:19)
            at Object.resolveSearchItems (queries.test.js:58:27)
            ----
            at Test._assertStatus (../../node_modules/supertest/lib/test.js:252:14)
            at ../../node_modules/supertest/lib/test.js:306:17
            at Test._assertFunction (../../node_modules/supertest/lib/test.js:285:13)
            at Test.assert (../../node_modules/supertest/lib/test.js:164:23)
            at localAssert (../../node_modules/supertest/lib/test.js:120:14)
            at ../../node_modules/supertest/lib/test.js:125:7
            at Test.fn [as callback] (../../node_modules/superagent/src/node/index.js:924:3)
            at IncomingMessage.callback (../../node_modules/superagent/src/node/index.js:1153:18)

       

      ```

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:

      1. login the cluster by oc command
      2. run the automation by 

        npm run test:api tests/api/queries.test.js

      1. the cases are failed with 500 error

      Actual results:

      Expected results:

      Additional info:

            zlayne@redhat.com Zackery Layne
            cquredhat ChangLiang Qu
            ACM QE Team
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: