mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
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{
|
||||
{"nonexistent field", "{.hello}", storeData, "", false},
|
||||
{"nonexistent field 2", "before-{.hello}after", storeData, "before-after", false},
|
||||
}
|
||||
testJSONPath(missingKeyTests, true, t)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user