mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
convert tests to exercise openapi and inference
This commit is contained in:
@@ -18,7 +18,7 @@ func TestMerge(t *testing.T) {
|
||||
for j := range testCases[i] {
|
||||
tc := testCases[i][j]
|
||||
t.Run(tc.description, func(t *testing.T) {
|
||||
actual, err := MergeStrings(tc.local, tc.origin, tc.update, !tc.noInfer)
|
||||
actual, err := MergeStrings(tc.local, tc.origin, tc.update, tc.infer)
|
||||
if tc.err == nil {
|
||||
if !assert.NoError(t, err, tc.description) {
|
||||
t.FailNow()
|
||||
@@ -47,5 +47,5 @@ type testCase struct {
|
||||
local string
|
||||
expected string
|
||||
err error
|
||||
noInfer bool
|
||||
infer bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user