Skip to content

Commit

Permalink
improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Jan 4, 2024
1 parent 85c171b commit 4d2d994
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/cicd-dev-acc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: IaC Acceptance Tests for CI CD Dev Environment
name: IaC Tests for CI CD Gating Job
# This workflow runs all the acc-dev-testcases

on:
Expand All @@ -18,7 +18,7 @@ jobs:
uses: ./.github/workflows/reusable-dev-acc.yml
with:
test_case: TestAccDataSource
test_description: All data source test
test_description: GET call usecase validations
secrets: inherit

test-vmaas-instance:
Expand All @@ -27,7 +27,7 @@ jobs:
if: "always()"
with:
test_case: TestVmaasInstance TestAccResourceInstance
test_description: Instance test
test_description: Instance usecase validations
secrets: inherit

test-vmaas-lb:
Expand All @@ -36,7 +36,7 @@ jobs:
if: "always()"
with:
test_case: TestVmaasLB TestAccResourceLB TestVmaasLoadBalancerPlan TestAccResourceLoadBalancerCreate
test_description: Loadbalancer test
test_description: Loadbalancer usecase validations
secrets: inherit

test-vmaas-network:
Expand All @@ -45,7 +45,7 @@ jobs:
if: "always()"
with:
test_case: TestVmaasNetworkPlan TestAccResourceNetworkCreate TestAccResourceRouter TestVmaasRouter TestAccResourceTier TestVmaasRouteBGPNeighborPlan
test_description: Network test
test_description: NSX Network usecase validations
secrets: inherit

process-logs:
Expand All @@ -70,3 +70,4 @@ jobs:
run: |
LOG_RESULT=$(python .github/parse_logs.py '${{ steps.logs.outputs.download-path }}')
echo $LOG_RESULT
curl -X POST -H 'Content-type: application/json' --data "{'text':'CICD Terraform IaC Test results $LOG_RESULT and report link - https://github.com/HewlettPackard/hpegl-vmaas-terraform-resources/actions/runs/${{ github.run_id }}'}" '${{ secrets.TEAMS_URL_CICD }}'
7 changes: 4 additions & 3 deletions .github/workflows/cicd-prod-acc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: IaC Acceptance Tests for CI CD Prod Environment
name: IaC Tests for CI CD Solution Job

on:
workflow_dispatch:
Expand All @@ -7,7 +7,7 @@ jobs:
acc-test:
uses: ./.github/workflows/reusable-dev-acc.yml
with:
test_description: Check all Terraform Testcases
test_description: IaC Terraform Testcase
test_case_folder: 'acc-testcases'
secrets:
DEV_HPEGL_IAM_SERVICE_URL: ${{ secrets.HPEGL_IAM_SERVICE_URL }}
Expand Down Expand Up @@ -40,4 +40,5 @@ jobs:
- name: Print Result and Publish
run: |
LOG_RESULT=$(python .github/parse_logs.py '${{ steps.logs.outputs.download-path }}')
echo $LOG_RESULT
echo $LOG_RESULT
curl -X POST -H 'Content-type: application/json' --data "{'text':'CICD Terraform IaC Test results $LOG_RESULT and report link - https://github.com/HewlettPackard/hpegl-vmaas-terraform-resources/actions/runs/${{ github.run_id }}'}" '${{ secrets.SLACK_URL_CICD }}'

0 comments on commit 4d2d994

Please sign in to comment.