From 1f5b1e7a07536f78d6a23c94c3208560f9e378f1 Mon Sep 17 00:00:00 2001 From: Thisara-Welmilla Date: Wed, 10 Jan 2024 10:26:50 +0530 Subject: [PATCH] Improve sending oidc-conformance-test chat notification. --- .github/workflows/oidc-conformance-test.yml | 2 +- oidc-conformance-tests/send_chat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/oidc-conformance-test.yml b/.github/workflows/oidc-conformance-test.yml index 9d69277bde9..b37d269540e 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" "OIDC Conformance Test" + 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}}&threadKey=oidc_conformance&messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD" "$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 6030cfe5e1e..16dad0e0e9e 100644 --- a/oidc-conformance-tests/send_chat.py +++ b/oidc-conformance-tests/send_chat.py @@ -108,7 +108,7 @@ try: # send google chat notification response = http_obj.request( - uri=google_chat_webhook + "&threadKey=oidc-conformance-test", + uri=google_chat_webhook, method='POST', headers=message_headers, body=json.dumps(message),