Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
6
plugins/parsers/json_v2/testdata/wrong_path/expected.err
vendored
Normal file
6
plugins/parsers/json_v2/testdata/wrong_path/expected.err
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
the path "wrong" doesn't exist
|
||||
the path "wrong" doesn't exist
|
||||
the path "wrong" doesn't exist
|
||||
the timestamp path "wrong" returned NULL
|
||||
the path "wrong" doesn't exist
|
||||
the path "wrong" doesn't exist
|
0
plugins/parsers/json_v2/testdata/wrong_path/expected.out
vendored
Normal file
0
plugins/parsers/json_v2/testdata/wrong_path/expected.out
vendored
Normal file
3
plugins/parsers/json_v2/testdata/wrong_path/input.json
vendored
Normal file
3
plugins/parsers/json_v2/testdata/wrong_path/input.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"correct": "test"
|
||||
}
|
46
plugins/parsers/json_v2/testdata/wrong_path/telegraf.conf
vendored
Normal file
46
plugins/parsers/json_v2/testdata/wrong_path/telegraf.conf
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Example taken from: https://github.com/influxdata/telegraf/issues/7097
|
||||
|
||||
[[inputs.file]]
|
||||
files = ["./testdata/wrong_path/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = "wrong"
|
||||
|
||||
[[inputs.file]]
|
||||
files = ["./testdata/wrong_path/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = "correct"
|
||||
[[inputs.file.json_v2.object.tag]]
|
||||
path = "wrong"
|
||||
|
||||
[[inputs.file]]
|
||||
files = ["./testdata/wrong_path/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = "correct"
|
||||
[[inputs.file.json_v2.object.field]]
|
||||
path = "wrong"
|
||||
|
||||
[[inputs.file]]
|
||||
files = ["./testdata/wrong_path/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
timestamp_path = "wrong"
|
||||
|
||||
[[inputs.file]]
|
||||
files = ["./testdata/wrong_path/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
[[inputs.file.json_v2.tag]]
|
||||
path = "wrong"
|
||||
|
||||
[[inputs.file]]
|
||||
files = ["./testdata/wrong_path/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
[[inputs.file.json_v2.field]]
|
||||
path = "wrong"
|
Loading…
Add table
Add a link
Reference in a new issue