Switch config to yaml
This commit is contained in:
5
config/testdata/comments-inline.tok
vendored
5
config/testdata/comments-inline.tok
vendored
@ -1,5 +0,0 @@
|
||||
one #one
|
||||
"two#three"
|
||||
# "three"
|
||||
four
|
||||
# EOF
|
||||
6
config/testdata/comments.tok
vendored
6
config/testdata/comments.tok
vendored
@ -1,6 +0,0 @@
|
||||
# one
|
||||
one
|
||||
#two
|
||||
two
|
||||
# three
|
||||
three
|
||||
9
config/testdata/dup_api_key.yaml
vendored
Normal file
9
config/testdata/dup_api_key.yaml
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
interval: 30s
|
||||
api_key: bogus
|
||||
api_key_file: bogus.key
|
||||
|
||||
hosts:
|
||||
- name: localhost
|
||||
address: 127.0.0.1
|
||||
checks:
|
||||
- type: ping
|
||||
13
config/testdata/dup_group_hosts.yaml
vendored
Normal file
13
config/testdata/dup_group_hosts.yaml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
interval: 30s
|
||||
api_key: bogus
|
||||
|
||||
groups:
|
||||
servers:
|
||||
- name: localhost
|
||||
address: 127.0.0.1
|
||||
checks:
|
||||
- type: ping
|
||||
- name: localhost
|
||||
address: 127.0.0.1
|
||||
checks:
|
||||
- type: ping
|
||||
12
config/testdata/dup_hosts.yaml
vendored
Normal file
12
config/testdata/dup_hosts.yaml
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
interval: 30s
|
||||
api_key: bogus
|
||||
|
||||
hosts:
|
||||
- name: localhost
|
||||
address: 127.0.0.1
|
||||
checks:
|
||||
- type: ping
|
||||
- name: localhost
|
||||
address: 127.0.0.1
|
||||
checks:
|
||||
- type: ping
|
||||
8
config/testdata/missing_api_keyfile.yaml
vendored
Normal file
8
config/testdata/missing_api_keyfile.yaml
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
interval: 30s
|
||||
api_key_file: testdata/bogus.key
|
||||
|
||||
hosts:
|
||||
- name: localhost
|
||||
address: 127.0.0.1
|
||||
checks:
|
||||
- type: ping
|
||||
7
config/testdata/no_api_key.yaml
vendored
Normal file
7
config/testdata/no_api_key.yaml
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
interval: 30s
|
||||
|
||||
hosts:
|
||||
- name: localhost
|
||||
address: 127.0.0.1
|
||||
checks:
|
||||
- type: ping
|
||||
2
config/testdata/no_hosts.yaml
vendored
Normal file
2
config/testdata/no_hosts.yaml
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
interval: 30s
|
||||
api_key: bogus
|
||||
3
config/testdata/quotes-empty.tok
vendored
3
config/testdata/quotes-empty.tok
vendored
@ -1,3 +0,0 @@
|
||||
one "" three
|
||||
"" five ""
|
||||
seven
|
||||
6
config/testdata/quotes-multiline.tok
vendored
6
config/testdata/quotes-multiline.tok
vendored
@ -1,6 +0,0 @@
|
||||
"one
|
||||
two" 'three
|
||||
four'
|
||||
|
||||
`five
|
||||
six`
|
||||
3
config/testdata/quotes.tok
vendored
3
config/testdata/quotes.tok
vendored
@ -1,3 +0,0 @@
|
||||
"one" 'two' `three`
|
||||
|
||||
`four` 'five' "six"
|
||||
6
config/testdata/simple-multiline.tok
vendored
6
config/testdata/simple-multiline.tok
vendored
@ -1,6 +0,0 @@
|
||||
one two three
|
||||
four five
|
||||
|
||||
|
||||
six
|
||||
|
||||
1
config/testdata/simple-spaces.tok
vendored
1
config/testdata/simple-spaces.tok
vendored
@ -1 +0,0 @@
|
||||
one two three four five six
|
||||
Reference in New Issue
Block a user