Skip to content

Commit

Permalink
improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Dec 19, 2023
1 parent 20b9a52 commit 39eea07
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 55 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cicd-dev-acc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Dev Acceptance Tests for CI CD

on:
workflow_dispatch:

jobs:
test-provider:
uses: ./.github/workflows/dev-acc.yml
with:
test_case: TestProvider
secrets: inherit

test-datasouces:
needs:
- test-provider
if: "${{ always() && needs.test-provider.result != 'failed' }}"
uses: ./.github/workflows/dev-acc.yml
with:
test_case: TestAccDataSource
secrets: inherit

test-vmaas-instance:
uses: ./.github/workflows/dev-acc.yml
with:
test_case: TestVmaasInstance
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/dev-acc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Run Acceptance test
run: |
echo "Run date and time: $(date +'%Y-%m-%dT%H:%M:%S')" >> $LOG_FILE
echo "Run Date: $(date +'%Y-%m-%d Time: %H:%M:%S %z' )" >> $LOG_FILE
export TF_ACC_TEST_PATH="$(pwd)/acc-dev-testcases" && make acceptance case='${{ github.event.inputs.test_case }}' >> $LOG_FILE
- name: Print testcases output
Expand All @@ -59,5 +59,5 @@ jobs:
- name: Push the report to github artifacts
uses: actions/upload-artifact@v3
with:
name: "Terraform Test report ${{ github.event.inputs.test_case }}"
name: "Terraform Test report: ${{ github.event.inputs.test_case }}"
path: ${{ env.LOG_FILE }}
52 changes: 0 additions & 52 deletions .github/workflows/gw1.0-cicd-acc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion acc-dev-testcases/data-sources/network_type.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
acc:
- config: |
name = "NSX"
name = "NSX Segment"

0 comments on commit 39eea07

Please sign in to comment.