From 4c78f77b4cc58964b0db3160410888ef979db1da Mon Sep 17 00:00:00 2001 From: Siddhesh Ghadi Date: Tue, 27 Feb 2024 11:50:11 +0530 Subject: [PATCH] Use new notifications CR for configurations Signed-off-by: Siddhesh Ghadi --- .../02-add-notification-confs.yaml | 21 +++++++++++++++++++ .../02-update-notifications-cm.yaml | 19 ----------------- 2 files changed, 21 insertions(+), 19 deletions(-) create mode 100644 tests/k8s/1-034_validate_webhook_notifications/02-add-notification-confs.yaml delete mode 100644 tests/k8s/1-034_validate_webhook_notifications/02-update-notifications-cm.yaml diff --git a/tests/k8s/1-034_validate_webhook_notifications/02-add-notification-confs.yaml b/tests/k8s/1-034_validate_webhook_notifications/02-add-notification-confs.yaml new file mode 100644 index 000000000..3f369e33f --- /dev/null +++ b/tests/k8s/1-034_validate_webhook_notifications/02-add-notification-confs.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: NotificationsConfiguration +metadata: + name: default-notifications-configuration +spec: + services: + service.webhook.test-webhook: | + url: https://webhook/hooks/example + triggers: + trigger.test-on-created: |- + - description: Application is created. + send: ["test-app-created"] + when: "true" + templates: + template.test-app-created: | + webhook: + test-webhook: + method: POST + body: | + {"created":"{{.app.metadata.name}}","type":"{{(call .repo.GetAppDetails).Type}}"} + diff --git a/tests/k8s/1-034_validate_webhook_notifications/02-update-notifications-cm.yaml b/tests/k8s/1-034_validate_webhook_notifications/02-update-notifications-cm.yaml deleted file mode 100644 index 4b70e6265..000000000 --- a/tests/k8s/1-034_validate_webhook_notifications/02-update-notifications-cm.yaml +++ /dev/null @@ -1,19 +0,0 @@ -kind: ConfigMap -apiVersion: v1 -metadata: - name: argocd-notifications-cm -data: - service.webhook.test-webhook: | - url: https://webhook/hooks/example - template.test-app-created: | - webhook: - test-webhook: - method: POST - body: | - {"created":"{{.app.metadata.name}}","type":"{{(call .repo.GetAppDetails).Type}}"} - trigger.test-on-created: |- - - description: Application is created. - send: ["test-app-created"] - when: "true" - -