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:
atiratree 2021-08-26 14:49:58 +02:00
parent 5c3de9f1de
commit b79859cb12

View File

@ -280,6 +280,7 @@ func TestStructInput(t *testing.T) {
missingKeyTests := []jsonpathTest{
{"nonexistent field", "{.hello}", storeData, "", false},
{"nonexistent field 2", "before-{.hello}after", storeData, "before-after", false},
}
testJSONPath(missingKeyTests, true, t)