mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-12 04:31:46 +00:00
add a test for jsonpath template parsing to prevent regressions
This behaviour was broken by commit 39cfe232325d66bcdbc935af7aaf7022562e7010 and PR kubernetes#98057 Kubernetes-commit: b79859cb12b19222fffc17481e1fe006819de63c
This commit is contained in:
parent
496c390182
commit
e529a15dbc
@ -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