File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,22 @@ local want2 = "no such file or directory"
22
22
23
23
describe (" kustomize build" , function ()
24
24
it (" valid kustomization.yaml" , function ()
25
- local err2 , get2 = build ._kustomize_build (" tests/kustomize/test_data/build/pass" )
25
+ local err2 , get2 = build ._kustomize_build (" tests/kustomize/test_data/build/pass" , {} )
26
26
eq (err2 , {})
27
27
eq (get2 , want1 )
28
28
end )
29
29
30
30
it (" missing resources" , function ()
31
- local err2 , get2 = build ._kustomize_build (" tests/kustomize/test_data/build/fail" )
31
+ local err2 , get2 = build ._kustomize_build (" tests/kustomize/test_data/build/fail" , {} )
32
32
local err_string = table.concat (err2 , " \n " )
33
33
local match = string.find (err_string , want2 )
34
34
neq (match , {})
35
35
eq (get2 , {})
36
36
end )
37
37
38
38
it (" wrong additional argument" , function ()
39
- config . options . build . additional_args = { " -foo" }
40
- local err3 , _ = build ._kustomize_build (" tests/kustomize/test_data/build/fail" )
39
+ local additional_args = { " -foo" }
40
+ local err3 , _ = build ._kustomize_build (" tests/kustomize/test_data/build/fail" , additional_args )
41
41
eq (err3 , { " Error: unknown shorthand flag: 'f' in -foo" })
42
42
end )
43
43
end )
You can’t perform that action at this time.
0 commit comments