Skip to content

Commit b0d7aab

Browse files
authored
Update kustomize test for new kyverno version (#493)
1 parent 9b3225d commit b0d7aab

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/python-package.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
pip install -e .
3636
- uses: supplypike/setup-bin@v3
3737
with:
38-
uri: https://github.com/kyverno/kyverno/releases/download/v1.9.0/kyverno-cli_v1.9.0_linux_x86_64.tar.gz
38+
uri: https://github.com/kyverno/kyverno/releases/download/v1.11.3/kyverno-cli_v1.11.3_linux_x86_64.tar.gz
3939
name: kyverno-cli
40-
version: v1.9.0
40+
version: v1.11.3
4141
- name: Test with pytest
4242
run: |
4343
SKIP_DIFF_TESTS=1 pytest --cov=flux_local --cov-report=term-missing --snapshot-warn-unused

tests/test_kustomize.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ async def test_validate_fail(path: Path) -> None:
8181
"""Test applying policies to validate resources."""
8282
cmd = kustomize.grep("kind=ConfigMap", path)
8383
with pytest.raises(
84-
exceptions.CommandException, match="require-test-annotation: validation error"
85-
):
84+
exceptions.CommandException, match="fail: 1"):
8685
await cmd.validate(TESTDATA_DIR / "policies/fail.yaml")
8786

8887

0 commit comments

Comments
 (0)