这是indexloc提供的服务,不要输入任何密码
Skip to content
Open

Test #7370

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ jobs:
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
- uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3
with:
version: "v3.19.1"
token: ${{ secrets.GITHUB_TOKEN }}
- uses: imranismail/setup-kustomize@a76db1c6419124d51470b1e388c4b29476f495f1 # v2
if: ${{ runner.os != 'windows' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def replace_string_value(original_str: Any, str_to_replace: str, replaced_value:
return original_str if keep_origin else str_to_replace

string_without_interpolation = remove_interpolation(original_str, str_to_replace, escape_unrendered=False)

return string_without_interpolation.replace(str_to_replace, str(replaced_value))


Expand Down
3 changes: 3 additions & 0 deletions integration_tests/test_checkov_json_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def validate_report(self, report_path):
self.validate_report_not_empty(data)

def validate_report_not_empty(self, report):
if "summary" not in report:
print("ERROR - summary not found in report, found keys: {keys}".format(keys=report))
self.assertEqual(list(report.keys()), ["summary", "results"])
self.assertEqual(report["summary"]["parsing_errors"], 0,
f"expecting 0 parsing errors but got: {report['results']['parsing_errors']}")
self.assertGreater(report["summary"]["failed"], 1,
Expand Down
Loading