moves test files into testdata folder
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
notifiers:
|
||||
- name: notification-channel-1
|
||||
type: slack
|
||||
org_id: 2
|
||||
is_default: true
|
||||
settings:
|
||||
recipient: "XXX"
|
||||
token: "xoxb"
|
||||
uploadImage: true
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
#sfxzgnsxzcvnbzcvn
|
||||
cvbn
|
||||
cvbn
|
||||
c
|
||||
vbn
|
||||
cvbncvbn
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
notifiers:
|
||||
- name: default-notification-create
|
||||
type: email
|
||||
uid: notifier2
|
||||
settings:
|
||||
addresses: example@example.com
|
||||
org_name: Main Org. 2
|
||||
is_default: false
|
||||
delete_notifiers:
|
||||
- name: default-notification-delete
|
||||
org_name: Main Org. 2
|
||||
uid: notifier2
|
||||
pkg/services/provisioning/notifiers/testdata/test-configs/correct-properties/correct-properties.yaml
Vendored
+42
@@ -0,0 +1,42 @@
|
||||
notifiers:
|
||||
- name: default-slack-notification
|
||||
type: slack
|
||||
uid: notifier1
|
||||
org_id: 2
|
||||
uid: "notifier1"
|
||||
is_default: true
|
||||
settings:
|
||||
recipient: "XXX"
|
||||
token: "xoxb"
|
||||
uploadImage: true
|
||||
url: https://slack.com
|
||||
- name: another-not-default-notification
|
||||
type: email
|
||||
settings:
|
||||
addresses: example@exmaple.com
|
||||
org_id: 3
|
||||
uid: "notifier2"
|
||||
is_default: false
|
||||
- name: check-unset-is_default-is-false
|
||||
type: slack
|
||||
org_id: 3
|
||||
uid: "notifier3"
|
||||
settings:
|
||||
url: https://slack.com
|
||||
- name: Added notification with whitespaces in name
|
||||
type: email
|
||||
org_id: 3
|
||||
uid: "notifier4"
|
||||
settings:
|
||||
addresses: example@exmaple.com
|
||||
delete_notifiers:
|
||||
- name: default-slack-notification
|
||||
org_id: 2
|
||||
uid: notifier1
|
||||
- name: deleted-notification-without-orgId
|
||||
uid: "notifier2"
|
||||
- name: deleted-notification-with-0-orgId
|
||||
org_id: 0
|
||||
uid: "notifier3"
|
||||
- name: Deleted notification with whitespaces in name
|
||||
uid: "notifier4"
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
notifiers:
|
||||
- name: first-default
|
||||
type: slack
|
||||
uid: notifier1
|
||||
is_default: true
|
||||
settings:
|
||||
url: https://slack.com
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
notifiers:
|
||||
- name: second-default
|
||||
type: email
|
||||
uid: notifier2
|
||||
is_default: true
|
||||
settings:
|
||||
addresses: example@example.com
|
||||
@@ -0,0 +1,4 @@
|
||||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
||||
pkg/services/provisioning/notifiers/testdata/test-configs/incorrect-settings/incorrect-settings.yaml
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
notifiers:
|
||||
- name: slack-notification-without-url-in-settings
|
||||
type: slack
|
||||
org_id: 2
|
||||
uid: notifier1
|
||||
is_default: true
|
||||
settings:
|
||||
recipient: "XXX"
|
||||
token: "xoxb"
|
||||
uploadImage: true
|
||||
pkg/services/provisioning/notifiers/testdata/test-configs/no-required-fields/no-required-fields.yaml
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
notifiers:
|
||||
- type: slack
|
||||
org_id: 2
|
||||
uid: no-name_added-notification
|
||||
is_default: true
|
||||
settings:
|
||||
recipient: "XXX"
|
||||
token: "xoxb"
|
||||
uploadImage: true
|
||||
- name: no-uid
|
||||
type: slack
|
||||
org_id: 2
|
||||
is_default: true
|
||||
settings:
|
||||
recipient: "XXX"
|
||||
token: "xoxb"
|
||||
uploadImage: true
|
||||
delete_notifiers:
|
||||
- name: no-uid
|
||||
type: slack
|
||||
org_id: 2
|
||||
is_default: true
|
||||
settings:
|
||||
recipient: "XXX"
|
||||
token: "xoxb"
|
||||
uploadImage: true
|
||||
- type: slack
|
||||
org_id: 2
|
||||
uid: no-name_added-notification
|
||||
is_default: true
|
||||
settings:
|
||||
recipient: "XXX"
|
||||
token: "xoxb"
|
||||
uploadImage: true
|
||||
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
notifiers:
|
||||
- name: channel1
|
||||
type: email
|
||||
uid: notifier1
|
||||
org_id: 1
|
||||
settings:
|
||||
addresses: example@example.com
|
||||
- name: channel2
|
||||
type: slack
|
||||
uid: notifier2
|
||||
settings:
|
||||
url: http://slack.com
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
notifiers:
|
||||
- name: unknown-notifier
|
||||
type: nonexisting
|
||||
uid: notifier1
|
||||
Reference in New Issue
Block a user