Skip to content

Commit e5b1d11

Browse files
committed
chore(build): Fix tests
1 parent f2cc07a commit e5b1d11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/kustomize/test_build.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ local want2 = "no such file or directory"
2222

2323
describe("kustomize build", function()
2424
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", {})
2626
eq(err2, {})
2727
eq(get2, want1)
2828
end)
2929

3030
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", {})
3232
local err_string = table.concat(err2, "\n")
3333
local match = string.find(err_string, want2)
3434
neq(match, {})
3535
eq(get2, {})
3636
end)
3737

3838
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)
4141
eq(err3, { "Error: unknown shorthand flag: 'f' in -foo" })
4242
end)
4343
end)

0 commit comments

Comments
 (0)