From 5673dc252823eaba05366e7d51458b9f41e4fe41 Mon Sep 17 00:00:00 2001 From: Anju Chamantha Date: Wed, 3 Jan 2024 15:26:37 +0530 Subject: [PATCH] [FAPI] Modify google chat title for test result msg --- .github/workflows/fapi-oidc-conformance-test.yml | 4 ++-- .github/workflows/oidc-conformance-test.yml | 2 +- oidc-conformance-tests/send_chat.py | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/fapi-oidc-conformance-test.yml b/.github/workflows/fapi-oidc-conformance-test.yml index fd2431db36e..115e0529bbf 100644 --- a/.github/workflows/fapi-oidc-conformance-test.yml +++ b/.github/workflows/fapi-oidc-conformance-test.yml @@ -266,7 +266,7 @@ jobs: if [[ -z "${INPUT}" ]]; then INPUT="yes" fi - + INPUT_TAG=${{github.event.inputs.tag}} if [[ -z "${INPUT_TAG}" ]]; then RESOURCE="built from latest source" @@ -280,7 +280,7 @@ jobs: echo "Sending Google Chat Message" echo "===========================" CONFORMANCE_SUITE_URL=https://localhost:8443 - python3 ./product-is/oidc-conformance-tests/send_chat.py "$CONFORMANCE_SUITE_URL" "$GITHUB_RUN_NUMBER" "${{job.status}}" "${{github.repository}}" "${{github.run_id}}" "${{secrets.GOOGLE_CHAT_WEBHOOK_OIDC_TEST}}" "$RESOURCE" + python3 ./product-is/oidc-conformance-tests/send_chat.py "$CONFORMANCE_SUITE_URL" "$GITHUB_RUN_NUMBER" "${{job.status}}" "${{github.repository}}" "${{github.run_id}}" "${{secrets.GOOGLE_CHAT_WEBHOOK_OIDC_TEST}}" "$RESOURCE" "FAPI OIDC Conformance Test" elif [ $SEND_CHAT == "NO" ]; then echo "========================================" echo "Skipped Sending Google Chat Message" diff --git a/.github/workflows/oidc-conformance-test.yml b/.github/workflows/oidc-conformance-test.yml index 425e5e8b5e6..9d69277bde9 100644 --- a/.github/workflows/oidc-conformance-test.yml +++ b/.github/workflows/oidc-conformance-test.yml @@ -184,7 +184,7 @@ jobs: echo "Sending Google Chat Message" echo "===========================" CONFORMANCE_SUITE_URL=https://localhost:8443 - python3 ./product-is/oidc-conformance-tests/send_chat.py "$CONFORMANCE_SUITE_URL" "$GITHUB_RUN_NUMBER" "${{job.status}}" "${{github.repository}}" "${{github.run_id}}" "${{secrets.GOOGLE_CHAT_WEBHOOK_OIDC_TEST}}" "$RESOURCE" + python3 ./product-is/oidc-conformance-tests/send_chat.py "$CONFORMANCE_SUITE_URL" "$GITHUB_RUN_NUMBER" "${{job.status}}" "${{github.repository}}" "${{github.run_id}}" "${{secrets.GOOGLE_CHAT_WEBHOOK_OIDC_TEST}}" "$RESOURCE" "OIDC Conformance Test" elif [ $SEND_CHAT == "NO" ]; then echo "========================================" echo "Skipped Sending Google Chat Message" diff --git a/oidc-conformance-tests/send_chat.py b/oidc-conformance-tests/send_chat.py index 0cbaf1c8659..6030cfe5e1e 100644 --- a/oidc-conformance-tests/send_chat.py +++ b/oidc-conformance-tests/send_chat.py @@ -27,6 +27,7 @@ github_run_id = str(sys.argv[5]) google_chat_webhook = sys.argv[6] wso2_is_version = sys.argv[7] +workflow_name = sys.argv[8] failed_count = 0 warnings_count = 0 @@ -56,7 +57,7 @@ "cards": [ { "header": { - "title": "OIDC Conformance Test", + "title": workflow_name, "subtitle": "GitHub Action #" + github_run_number }, @@ -65,7 +66,7 @@ "widgets": [ { "textParagraph": { - "text": f"Identity Server {wso2_is_version} " + "text": f"Identity Server version: {wso2_is_version}" } }, {