Skip to content

Uploading report without test method yields "Server Error" #13666

@JCWasmx86

Description

@JCWasmx86

NetBox version

v3.6.0 (But reproducible in 3.6.1-dev, too)

Python version

3.11

Steps to Reproduce

1.Create a.py:

from extras.reports import Report

class DeviceConnectionsReport(Report):
    description = "Validate the minimum physical connections for each device"
    pass

(Note, the class doesn't have a test method)

2.Upload it as report

Expected Behavior

I expected it to either get an error, that there are no test methods in it, and the ability to delete it without using the CLI.

Observed Behavior

Reality:

<class 'Exception'>

A report must contain at least one test method.

Python version: 3.11.4
NetBox version: 3.6.1-dev
Plugins: None installed

image

Screenshot from develop branch, but reproducible with stable, too

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions