Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check parallel testcase run #232

Merged
merged 4 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/cicd-dev-acc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,37 @@ jobs:

test-vmaas-instance:
uses: ./.github/workflows/reusable-dev-acc.yml
needs: [test-datasouces]
if: "always()"
# needs: [test-datasouces]
needs: [test-provider]
# if: "always()"
with:
test_case: TestVmaasInstance TestAccResourceInstance
test_description: Instance usecase validations
secrets: inherit

test-vmaas-lb:
uses: ./.github/workflows/reusable-dev-acc.yml
needs: [test-vmaas-instance]
if: "always()"
# needs: [test-vmaas-instance]
needs: [test-provider]
# if: "always()"
with:
test_case: TestVmaasLB TestAccResourceLB TestVmaasLoadBalancerPlan TestAccResourceLoadBalancerCreate
test_description: Loadbalancer usecase validations
secrets: inherit

test-vmaas-network:
uses: ./.github/workflows/reusable-dev-acc.yml
needs: [test-vmaas-lb]
if: "always()"
# needs: [test-vmaas-lb]
needs: [test-provider]
# if: "always()"
with:
test_case: TestVmaasNetworkPlan TestAccResourceNetworkCreate TestAccResourceRouter TestVmaasRouter TestAccResourceTier TestVmaasRouteBGPNeighborPlan
test_description: NSX Network usecase validations
secrets: inherit

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
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ 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 -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 -v -timeout=50000s -cover $(ACC_TEST_FILE_LOCATION) -parallel 1;\
TF_ACC=true go test -parallel 4 -v -timeout=50000s -cover $(ACC_TEST_FILE_LOCATION);\
fi

build: vendor $(NAME)
Expand Down
Loading