From 4d2d994b4da4df6e5105b4c06fda448eb3820323 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Thu, 4 Jan 2024 11:56:23 +0530 Subject: [PATCH] improvement --- .github/workflows/cicd-dev-acc.yml | 11 ++++++----- .github/workflows/cicd-prod-acc.yml | 7 ++++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cicd-dev-acc.yml b/.github/workflows/cicd-dev-acc.yml index a8ddaa0a..769fa775 100644 --- a/.github/workflows/cicd-dev-acc.yml +++ b/.github/workflows/cicd-dev-acc.yml @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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 }}' diff --git a/.github/workflows/cicd-prod-acc.yml b/.github/workflows/cicd-prod-acc.yml index 5d1f86dc..6a1cd9ec 100644 --- a/.github/workflows/cicd-prod-acc.yml +++ b/.github/workflows/cicd-prod-acc.yml @@ -1,4 +1,4 @@ -name: IaC Acceptance Tests for CI CD Prod Environment +name: IaC Tests for CI CD Solution Job on: workflow_dispatch: @@ -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 }} @@ -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 \ No newline at end of file + 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 }}' \ No newline at end of file