Skip to content

Commit 3499434

Browse files
atiratreek8s-publishing-bot
authored andcommitted
add a test for jsonpath template parsing to prevent regressions
This behaviour was broken by commit 39cfe232325d66bcdbc935af7aaf7022562e7010 and PR kubernetes#98057 Kubernetes-commit: 786499a9faa717127e8aff91ab7da791b4456a5d
1 parent 67fba22 commit 3499434

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

util/jsonpath/jsonpath_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ func TestStructInput(t *testing.T) {
280280

281281
missingKeyTests := []jsonpathTest{
282282
{"nonexistent field", "{.hello}", storeData, "", false},
283+
{"nonexistent field 2", "before-{.hello}after", storeData, "before-after", false},
283284
}
284285
testJSONPath(missingKeyTests, true, t)
285286

0 commit comments

Comments
 (0)