-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Closed
Copy link
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.5.7
Python version
3.9
Steps to Reproduce
- Create a Report which logs a failure,
Example report file 'report_status_test.py':
from extras.reports import Report
class TestReportStatus(Report):
description = "test report status"
def test_report_status(self):
self.log_info(None, "info")
self.log_success(None, "check passed")
self.log_failure(None, "check failed")
- Add the report module to netbox
- Go the "Reports" and run the Report
- Check the Report Status/Results
Expected Behavior
If a Report contains failure messages, I would expect the Report status to be "Failed". (as it was the case with older Netbox versions)
Observed Behavior
The Report status is "Completed" instead of "Failed"
At first sight it looks to the user as if the report is successful.

Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application