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" - -