diff --git a/.github/workflows/qe.yml b/.github/workflows/qe.yml index c2ce97263..ffb0ac492 100644 --- a/.github/workflows/qe.yml +++ b/.github/workflows/qe.yml @@ -24,7 +24,7 @@ jobs: KUBECONFIG: '/home/runner/.kube/config' PFLT_DOCKERCONFIG: '/home/runner/.docker/config' TEST_TNF_IMAGE_NAME: quay.io/testnetworkfunction/cnf-certification-test - TEST_TNF_IMAGE_TAG: unstable + TEST_TNF_IMAGE_TAG: localtest DOCKER_CONFIG_DIR: '/home/runner/.docker/' SKIP_PRELOAD_IMAGES: true # Not needed for github-hosted runs @@ -98,6 +98,15 @@ jobs: repository: ${{ env.TEST_REPO }} path: cnf-certification-test + - name: Extract dependent Pull Requests + uses: depends-on/depends-on-action@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Build the test image + run: make build-image-local # quay.io/testnetworkfunction/cnf-certification-test:localtest + working-directory: cnf-certification-test + - name: Run the tests uses: nick-fields/retry@v2 with: diff --git a/tests/globalhelper/reporthelper.go b/tests/globalhelper/reporthelper.go index b6dc6d0db..6a7448c68 100644 --- a/tests/globalhelper/reporthelper.go +++ b/tests/globalhelper/reporthelper.go @@ -199,7 +199,7 @@ func isTestCaseInExpectedStatusInClaimReport( expectedStatus string) (bool, error) { for testCaseClaim := range claimReport.Claim.Results { if formatTestCaseName(testCaseClaim) == formatTestCaseName(testCaseName) { - var testCaseResult []*claim.Result + var testCaseResult *claim.Result encodedTestResult, err := json.Marshal(claimReport.Claim.Results[testCaseClaim]) @@ -213,14 +213,14 @@ func isTestCaseInExpectedStatusInClaimReport( return false, err } - if testCaseResult[0].State == expectedStatus { + if testCaseResult.State == expectedStatus { glog.V(5).Info("claim report test case status passed") return true, nil } return false, fmt.Errorf("invalid test status %s instead expected %s", - testCaseResult[0].State, + testCaseResult.State, expectedStatus) } }