Skip to content

Commit

Permalink
improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Jan 2, 2024
1 parent 93621bc commit f882e94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/reusable-dev-acc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,15 @@ jobs:
- name: Run Acceptance test
run: |
echo "Run Date: $(date +'%Y-%m-%d Time: %H:%M:%S %z' )" >> "$LOG_FILE"
for t in ${{ inputs.test_case }}; do export TF_ACC_TEST_PATH="$(pwd)/acc-dev-testcases" && make acceptance case="$t" >> "$LOG_FILE"; done
JOB_FAILED=false
for t in ${{ inputs.test_case }}; do
if ! export TF_ACC_TEST_PATH="$(pwd)/acc-dev-testcases" && make acceptance case="$t" >> "$LOG_FILE"
then
JOB_FAILED=true
continue
fi
done
if $JOB_FAILED; then exit 1; fi
- name: Print testcases output
Expand All @@ -80,5 +88,5 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: "Terraform Test report- ${{ inputs.test_case }}"
name: "Terraform Test report ${{ github.run_id }} - ${{ inputs.test_case }}"
path: ${{ env.LOG_FILE }}
2 changes: 1 addition & 1 deletion acc-testcases/data-sources/network_type.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
acc:
- config: |
name = "NSX-T Segment"
name = "NSX Segment"

0 comments on commit f882e94

Please sign in to comment.