Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
809019d4
Commit
809019d4
authored
Jan 28, 2019
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moves test files into testdata folder
parent
8f0e65a1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
12 additions
and
12 deletions
+12
-12
pkg/services/provisioning/notifiers/config_reader_test.go
+12
-12
pkg/services/provisioning/notifiers/testdata/test-configs/broken-yaml/broken.yaml
+0
-0
pkg/services/provisioning/notifiers/testdata/test-configs/broken-yaml/not.yaml.text
+0
-0
pkg/services/provisioning/notifiers/testdata/test-configs/correct-properties-with-orgName/correct-properties-with-orgName.yaml
+0
-0
pkg/services/provisioning/notifiers/testdata/test-configs/correct-properties/correct-properties.yaml
+0
-0
pkg/services/provisioning/notifiers/testdata/test-configs/double-default/default-1.yml
+0
-0
pkg/services/provisioning/notifiers/testdata/test-configs/double-default/default-2.yaml
+0
-0
pkg/services/provisioning/notifiers/testdata/test-configs/empty/empty.yaml
+0
-0
pkg/services/provisioning/notifiers/testdata/test-configs/empty_folder/.gitignore
+0
-0
pkg/services/provisioning/notifiers/testdata/test-configs/incorrect-settings/incorrect-settings.yaml
+0
-0
pkg/services/provisioning/notifiers/testdata/test-configs/no-required-fields/no-required-fields.yaml
+0
-0
pkg/services/provisioning/notifiers/testdata/test-configs/two-notifications/two-notifications.yaml
+0
-0
pkg/services/provisioning/notifiers/testdata/test-configs/unknown-notifier/notification.yaml
+0
-0
No files found.
pkg/services/provisioning/notifiers/config_reader_test.go
View file @
809019d4
...
...
@@ -12,21 +12,21 @@ import (
)
var
(
logger
=
log
.
New
(
"fake.log"
)
correct_properties
=
"./test-configs/correct-properties"
incorrect_settings
=
"./test-configs/incorrect-settings"
no_required_fields
=
"./test-configs/no-required-fields"
correct_properties_with_orgName
=
"./test-configs/correct-properties-with-orgName"
brokenYaml
=
"./test-configs/broken-yaml"
doubleNotificationsConfig
=
"./test-configs/double-default"
emptyFolder
=
"./test-configs/empty_folder"
emptyFile
=
"./test-configs/empty"
twoNotificationsConfig
=
"./test-configs/two-notifications"
unknownNotifier
=
"./test-configs/unknown-notifier"
correct_properties
=
"./testdata/test-configs/correct-properties"
incorrect_settings
=
"./testdata/test-configs/incorrect-settings"
no_required_fields
=
"./testdata/test-configs/no-required-fields"
correct_properties_with_orgName
=
"./testdata/test-configs/correct-properties-with-orgName"
brokenYaml
=
"./testdata/test-configs/broken-yaml"
doubleNotificationsConfig
=
"./testdata/test-configs/double-default"
emptyFolder
=
"./testdata/test-configs/empty_folder"
emptyFile
=
"./testdata/test-configs/empty"
twoNotificationsConfig
=
"./testdata/test-configs/two-notifications"
unknownNotifier
=
"./testdata/test-configs/unknown-notifier"
)
func
TestNotificationAsConfig
(
t
*
testing
.
T
)
{
logger
:=
log
.
New
(
"fake.log"
)
Convey
(
"Testing notification as configuration"
,
t
,
func
()
{
sqlstore
.
InitTestDB
(
t
)
...
...
pkg/services/provisioning/notifiers/test-configs/broken-yaml/broken.yaml
→
pkg/services/provisioning/notifiers/test
data/test
-configs/broken-yaml/broken.yaml
View file @
809019d4
File moved
pkg/services/provisioning/notifiers/test-configs/broken-yaml/not.yaml.text
→
pkg/services/provisioning/notifiers/test
data/test
-configs/broken-yaml/not.yaml.text
View file @
809019d4
File moved
pkg/services/provisioning/notifiers/test-configs/correct-properties-with-orgName/correct-properties-with-orgName.yaml
→
pkg/services/provisioning/notifiers/test
data/test
-configs/correct-properties-with-orgName/correct-properties-with-orgName.yaml
View file @
809019d4
File moved
pkg/services/provisioning/notifiers/test-configs/correct-properties/correct-properties.yaml
→
pkg/services/provisioning/notifiers/test
data/test
-configs/correct-properties/correct-properties.yaml
View file @
809019d4
File moved
pkg/services/provisioning/notifiers/test-configs/double-default/default-1.yml
→
pkg/services/provisioning/notifiers/test
data/test
-configs/double-default/default-1.yml
View file @
809019d4
File moved
pkg/services/provisioning/notifiers/test-configs/double-default/default-2.yaml
→
pkg/services/provisioning/notifiers/test
data/test
-configs/double-default/default-2.yaml
View file @
809019d4
File moved
pkg/services/provisioning/notifiers/test-configs/empty/empty.yaml
→
pkg/services/provisioning/notifiers/test
data/test
-configs/empty/empty.yaml
View file @
809019d4
File moved
pkg/services/provisioning/notifiers/test-configs/empty_folder/.gitignore
→
pkg/services/provisioning/notifiers/test
data/test
-configs/empty_folder/.gitignore
View file @
809019d4
File moved
pkg/services/provisioning/notifiers/test-configs/incorrect-settings/incorrect-settings.yaml
→
pkg/services/provisioning/notifiers/test
data/test
-configs/incorrect-settings/incorrect-settings.yaml
View file @
809019d4
File moved
pkg/services/provisioning/notifiers/test-configs/no-required-fields/no-required-fields.yaml
→
pkg/services/provisioning/notifiers/test
data/test
-configs/no-required-fields/no-required-fields.yaml
View file @
809019d4
File moved
pkg/services/provisioning/notifiers/test-configs/two-notifications/two-notifications.yaml
→
pkg/services/provisioning/notifiers/test
data/test
-configs/two-notifications/two-notifications.yaml
View file @
809019d4
File moved
pkg/services/provisioning/notifiers/test-configs/unknown-notifier/notification.yaml
→
pkg/services/provisioning/notifiers/test
data/test
-configs/unknown-notifier/notification.yaml
View file @
809019d4
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment