Skip to content

Commit

Permalink
deploy dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ssantaa9 committed Nov 12, 2024
1 parent 74663ac commit cf22d9e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,15 @@ def _tag_blacklist_control(self, report_list: "list[Report]"):
print(
self.devops_platform_gateway.message(
"error",
f"Report {report.vm_id}[{report.vm_id_url}] with tag {tag} is blacklisted and age {report.age} is above threshold {tag_age_threshold}",
f"Report {report.vm_id} with tag {tag} is blacklisted and age {report.age} is above threshold {tag_age_threshold}",
)
)

for report, tag in filtered_reports_below_threshold:
print(
self.devops_platform_gateway.message(
"warning",
f"Report {report.vm_id}[{report.vm_id_url}] with tag {tag} is blacklisted but age {report.age} is below threshold {tag_age_threshold}",
f"Report {report.vm_id} with tag {tag} is blacklisted but age {report.age} is below threshold {tag_age_threshold}",
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def filter_tags_days(self, devops_platform_gateway, remote_config, findings):
print(
devops_platform_gateway.message(
"warning",
f"Report {finding.vm_id}[{finding.vm_id_url}] with tag '{tag}' and age {finding.age} days is being excluded. It will be considered in {tag_exclusion_days[tag] - finding.age} days.",
f"Report {finding.vm_id} with tag '{tag}' and age {finding.age} days is being excluded. It will be considered in {tag_exclusion_days[tag] - finding.age} days.",
)
)
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def test_tag_blacklist_control_error():

mock_devops_platform_gateway.message.assert_called_once_with(
"error",
f"Report {report_list[0].vm_id}[{report_list[0].vm_id_url}] with tag {report_list[0].tags[0]} is blacklisted and age {report_list[0].age} is above threshold {tag_age_threshold}",
f"Report {report_list[0].vm_id} with tag {report_list[0].tags[0]} is blacklisted and age {report_list[0].age} is above threshold {tag_age_threshold}",
)


Expand Down Expand Up @@ -332,7 +332,7 @@ def test_tag_blacklist_control_warning():

mock_devops_platform_gateway.message.assert_called_once_with(
"warning",
f"Report {report_list[0].vm_id}[{report_list[0].vm_id_url}] with tag {report_list[0].tags[0]} is blacklisted but age {report_list[0].age} is below threshold {tag_age_threshold}",
f"Report {report_list[0].vm_id} with tag {report_list[0].tags[0]} is blacklisted but age {report_list[0].age} is below threshold {tag_age_threshold}",
)


Expand Down
2 changes: 1 addition & 1 deletion tools/devsecops_engine_tools/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '1.14.4'
version = '1.14.5'

0 comments on commit cf22d9e

Please sign in to comment.