Update naoina/toml library dependency (#5513)
This commit is contained in:
7
internal/config/testdata/inline_table.toml
vendored
Normal file
7
internal/config/testdata/inline_table.toml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
[[outputs.http]]
|
||||
headers = { Authorization = "Token $TOKEN",Content-Type = "application/json" }
|
||||
taginclude = ["org_id"]
|
||||
|
||||
[[outputs.http]]
|
||||
headers = { Authorization = "Token $TOKEN",Content-Type = "application/json" }
|
||||
taginclude = ["org_id"]
|
||||
2
internal/config/testdata/invalid_field.toml
vendored
Normal file
2
internal/config/testdata/invalid_field.toml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
[[inputs.http_listener_v2]]
|
||||
not_a_field = true
|
||||
4
internal/config/testdata/non_slice_slice.toml
vendored
Normal file
4
internal/config/testdata/non_slice_slice.toml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
[[outputs.http]]
|
||||
[outputs.http.headers]
|
||||
Content-Type = "application/json"
|
||||
taginclude = ["org_id"]
|
||||
5
internal/config/testdata/slice_comment.toml
vendored
Normal file
5
internal/config/testdata/slice_comment.toml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
[[outputs.http]]
|
||||
scopes = [
|
||||
# comment
|
||||
"test" # comment
|
||||
]
|
||||
9
internal/config/testdata/special_types.toml
vendored
Normal file
9
internal/config/testdata/special_types.toml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[[inputs.http_listener_v2]]
|
||||
write_timeout = "1s"
|
||||
max_body_size = "1MiB"
|
||||
tls_cert = """
|
||||
/path/to/my/cert
|
||||
"""
|
||||
tls_key = '''
|
||||
/path/to/my/key
|
||||
'''
|
||||
2
internal/config/testdata/wrong_field_type.toml
vendored
Normal file
2
internal/config/testdata/wrong_field_type.toml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
[[inputs.http_listener_v2]]
|
||||
port = "80"
|
||||
2
internal/config/testdata/wrong_field_type2.toml
vendored
Normal file
2
internal/config/testdata/wrong_field_type2.toml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
[[inputs.http_listener_v2]]
|
||||
methods = "POST"
|
||||
Reference in New Issue
Block a user