pre_run for Reports #8572
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Milestone
NetBox version
v3.1.7
Feature type
New functionality
Proposed functionality
Add a new function stub to the
Reports
class to be executed before any tests are executed.Use case
If you're running multiple tests against the same dataset, it would be beneficial to be able to load the dataset once instead of loading it per test.
Example:
For each virtual machine, validate that vCPUs is set, validate that memory is set, validate that platform is set, validate that a primary IP is set, etc.
All of them are executed against the same dataset, which is loaded multiple times.
Database changes
None
External dependencies
None
The text was updated successfully, but these errors were encountered: