From dff0d06537305bca5c2eac20d768b337e4196220 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Mon, 10 Jun 2024 09:54:13 +0530 Subject: [PATCH] fix workflow --- .github/workflows/cicd-dev-acc.yml | 9 ++++----- Makefile | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cicd-dev-acc.yml b/.github/workflows/cicd-dev-acc.yml index f65bcce7..66ebf372 100644 --- a/.github/workflows/cicd-dev-acc.yml +++ b/.github/workflows/cicd-dev-acc.yml @@ -25,7 +25,7 @@ jobs: uses: ./.github/workflows/reusable-dev-acc.yml # needs: [test-datasouces] needs: [test-provider] - if: "always()" + # if: "always()" with: test_case: TestVmaasInstance TestAccResourceInstance test_description: Instance usecase validations @@ -35,7 +35,7 @@ jobs: uses: ./.github/workflows/reusable-dev-acc.yml # needs: [test-vmaas-instance] needs: [test-provider] - if: "always()" + # if: "always()" with: test_case: TestVmaasLB TestAccResourceLB TestVmaasLoadBalancerPlan TestAccResourceLoadBalancerCreate test_description: Loadbalancer usecase validations @@ -45,7 +45,7 @@ jobs: uses: ./.github/workflows/reusable-dev-acc.yml # needs: [test-vmaas-lb] needs: [test-provider] - if: "always()" + # if: "always()" with: test_case: TestVmaasNetworkPlan TestAccResourceNetworkCreate TestAccResourceRouter TestVmaasRouter TestAccResourceTier TestVmaasRouteBGPNeighborPlan test_description: NSX Network usecase validations @@ -53,8 +53,7 @@ jobs: process-logs: runs-on: ubuntu-20.04 - needs: - - test-vmaas-network + needs: [test-vmaas-network, test-vmaas-lb, test-vmaas-instance, test-datasouces] if: "always()" steps: - name: Checkout workspace diff --git a/Makefile b/Makefile index 1a4bc17a..8edba547 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ coverage: vendor ACC_TEST_FILE_LOCATION=github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/acceptance_test acceptance: @if [ "${case}" != "" ]; then \ - TF_ACC=true go test -parallel 1 -run $(case) -v -timeout=20000s -cover $(ACC_TEST_FILE_LOCATION); \ + TF_ACC=true go test -parallel 2 -run $(case) -v -timeout=20000s -cover $(ACC_TEST_FILE_LOCATION); \ else \ TF_ACC=true go test -parallel 4 -v -timeout=50000s -cover $(ACC_TEST_FILE_LOCATION);\ fi