Switch config to yaml

This commit is contained in:
2021-11-14 07:04:25 -09:00
parent aa65b64867
commit 3821409485
25 changed files with 245 additions and 659 deletions

View File

@ -1,5 +0,0 @@
one #one
"two#three"
# "three"
four
# EOF

View File

@ -1,6 +0,0 @@
# one
one
#two
two
# three
three

9
config/testdata/dup_api_key.yaml vendored Normal file
View 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
View 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
View 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

View 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
View 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
View File

@ -0,0 +1,2 @@
interval: 30s
api_key: bogus

View File

@ -1,3 +0,0 @@
one "" three
"" five ""
seven

View File

@ -1,6 +0,0 @@
"one
two" 'three
four'
`five
six`

View File

@ -1,3 +0,0 @@
"one" 'two' `three`
`four` 'five' "six"

View File

@ -1,6 +0,0 @@
one two three
four five
six

View File

@ -1 +0,0 @@
one two three four five six