Isolate legacy script storage in ReportExclusionTestCase
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start in netbox_scripts/tests/migration/test_plan.py and compare ReportExclusionTestCase with MigrationInventoryJobTestCase, which already uses temporary scripts storage. Apply the same setup to ReportExclusionTestCase so deploy.py and audit.py are written to temporary storage. Done when running that test module leaves no files in the configured scripts directory and the tests still pass.
Written by the indexing model from the issue text.
Description
Proposed Changes
Configure ReportExclusionTestCase in netbox_scripts/tests/migration/test_plan.py to use temporary scripts storage, following the existing approach in MigrationInventoryJobTestCase.
Justification
The test case currently writes deploy.py and audit.py into NetBox's configured scripts storage without cleaning them up. This leaves files behind after the tests and can overwrite existing scripts with the same names.
Using temporary storage keeps the tests isolated and prevents unintended changes to the NetBox installation.
- Dominant language
- Python
- Stars
- 8
- Forks
- 0
- Avg merge
- 13h 4m
- Merged PRs (30d)
- 77
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from netbox-community/netbox-scripts
-
app: scripts Bucket: KTLO status: backlog type: housekeeping
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
netbox-community/netbox-scripts#217 ·
Maintainers usually reply within 1 day
-
app: scripts Bucket: KTLO severity: low status: backlog type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
netbox-community/netbox-scripts#204 ·
Maintainers usually reply within 1 day
-
app: scripts Bucket: Improve status: backlog type: documentation
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
netbox-community/netbox-scripts#200 ·
Maintainers usually reply within 1 day
-
Script result page omits Job-level failure reasonsPossibly taken @pheus claimed this 4 days ago. Openapp: scripts severity: low status: backlog type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
netbox-community/netbox-scripts#153 · 1 assignee ·
Maintainers usually reply within 1 day
-
Data Source revisions can import native extensions instead of reviewed Python sourcePossibly taken @pheus claimed this 4 days ago. Openapp: scripts severity: low status: backlog type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
netbox-community/netbox-scripts#146 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in netbox-community/netbox-scripts
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
NL-BioImaging/biomero#136 ·
Maintainers usually reply within 1 day
-
Grayscale PNGs with partial transparency can turn gray pixels whitePossibly taken @ktz03 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
floorianmb/tidywise#5 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
eclipse-score/tools#82 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day