Skip to content

Commit

Permalink
add a test for jsonpath template parsing to prevent regressions
Browse files Browse the repository at this point in the history
This behaviour was broken by commit
39cfe232325d66bcdbc935af7aaf7022562e7010 and PR kubernetes#98057

Kubernetes-commit: 786499a9faa717127e8aff91ab7da791b4456a5d
  • Loading branch information
atiratree authored and k8s-publishing-bot committed Aug 26, 2021
1 parent 67fba22 commit 3499434
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/jsonpath/jsonpath_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3499434

Please sign in to comment.