add a test for jsonpath template parsing to prevent regressions
This behaviour was broken by commit
39cfe23232
and PR kubernetes#98057
This commit is contained in:
parent
5c3de9f1de
commit
b79859cb12
@ -280,6 +280,7 @@ func TestStructInput(t *testing.T) {
|
|||||||
|
|
||||||
missingKeyTests := []jsonpathTest{
|
missingKeyTests := []jsonpathTest{
|
||||||
{"nonexistent field", "{.hello}", storeData, "", false},
|
{"nonexistent field", "{.hello}", storeData, "", false},
|
||||||
|
{"nonexistent field 2", "before-{.hello}after", storeData, "before-after", false},
|
||||||
}
|
}
|
||||||
testJSONPath(missingKeyTests, true, t)
|
testJSONPath(missingKeyTests, true, t)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user