Skip to content

Commit

Permalink
Update kustomize test for new kyverno version (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter authored Jan 6, 2024
1 parent 9b3225d commit b0d7aab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
pip install -e .
- uses: supplypike/setup-bin@v3
with:
uri: https://github.com/kyverno/kyverno/releases/download/v1.9.0/kyverno-cli_v1.9.0_linux_x86_64.tar.gz
uri: https://github.com/kyverno/kyverno/releases/download/v1.11.3/kyverno-cli_v1.11.3_linux_x86_64.tar.gz
name: kyverno-cli
version: v1.9.0
version: v1.11.3
- name: Test with pytest
run: |
SKIP_DIFF_TESTS=1 pytest --cov=flux_local --cov-report=term-missing --snapshot-warn-unused
Expand Down
3 changes: 1 addition & 2 deletions tests/test_kustomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ async def test_validate_fail(path: Path) -> None:
"""Test applying policies to validate resources."""
cmd = kustomize.grep("kind=ConfigMap", path)
with pytest.raises(
exceptions.CommandException, match="require-test-annotation: validation error"
):
exceptions.CommandException, match="fail: 1"):
await cmd.validate(TESTDATA_DIR / "policies/fail.yaml")


Expand Down

0 comments on commit b0d7aab

Please sign in to comment.