Skip to content

Commit

Permalink
Increase test coverage for case with double flags
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Jul 6, 2023
1 parent 49c08d5 commit 70d56c3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_kustomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,15 @@ async def test_fluxtomize_ignores_empty_subdir(tmp_path: Path) -> None:

content = await kustomize.fluxtomize(tmp_path)
assert not content


async def test_build_flags() -> None:
"""Test a kustomize build command with extra flags."""
result = await kustomize.build(
TESTDATA_DIR / "repo",
# Duplicates existing flags, should be a no-op
kustomize_flags=["--load-restrictor=LoadRestrictionsNone"],
).run()
assert "Secret" in result
assert "ConfigMap" in result
assert result == (TESTDATA_DIR / "repo/all.golden").read_text()

0 comments on commit 70d56c3

Please sign in to comment.