Skip to content

Commit

Permalink
Fixed another set flaky test for kustomize
Browse files Browse the repository at this point in the history
  • Loading branch information
bo156 committed Jul 16, 2023
1 parent 9698831 commit be40d9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/kustomize/test_runner_image_referencer.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def test_deployment_resources(mocker: MockerFixture, allow_kustomize_file_edits:
'/service.yaml']

assert len(sca_image_report.resources) == 2
assert sca_image_report.resources == {
f'base/kustomization.yaml (wordpress:4.8-apache lines:{code_lines} (sha256:2460522297)).go',
f'overlays/prod/kustomization.yaml (wordpress:4.8-apache lines:{code_lines} (sha256:2460522297)).go'
}
assert f'base/kustomization.yaml (wordpress:4.8-apache lines:{code_lines} (sha256:2460522297)).go' in \
sca_image_report.resources
assert f'overlays/prod/kustomization.yaml (wordpress:4.8-apache lines:{code_lines} (sha256:2460522297)).go' in \
sca_image_report.resources
assert len(sca_image_report.passed_checks) == 0
assert len(sca_image_report.failed_checks) == 6
assert len(sca_image_report.skipped_checks) == 0
Expand Down

0 comments on commit be40d9d

Please sign in to comment.