Skip to content

Conversation

@leoparente
Copy link
Contributor

This pull request introduces a new CLI helper, diode-replay-dryrun, for ingesting dry-run JSON messages into Diode. It also updates the documentation and project configuration to support this new feature. Below are the most important changes grouped by theme:

New CLI Tool:

  • Added dryrun_replay.py script under netboxlabs/diode/scripts/, which provides a CLI tool (diode-replay-dryrun) for ingesting dry-run JSON files into Diode. This tool supports arguments for target server, app name, app version, OAuth2 credentials, and file paths.

Documentation Updates:

  • Updated README.md to include instructions for using the diode-replay-dryrun command as an alternative to load_dryrun_entities for ingesting dry-run files. [1] [2]

Project Configuration:

  • Registered the diode-replay-dryrun script in pyproject.toml under [project.scripts].
  • Added the netboxlabs.diode.scripts module to the list of packages in pyproject.toml.
  • Excluded the netboxlabs/diode/scripts/ directory from test coverage in pyproject.toml.

Miscellaneous:

  • Added an __init__.py file in the netboxlabs/diode/scripts/ directory with a module docstring and copyright notice.

@leoparente leoparente self-assigned this Jul 10, 2025
@github-actions github-actions bot added dependencies Pull requests that update a dependency file markdown python labels Jul 10, 2025
@github-actions
Copy link

github-actions bot commented Jul 10, 2025

Coverage

Coverage Report
FileStmtsMissCoverMissing
/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/netboxlabs/diode/sdk
   client.py240797%102, 277, 337, 342, 346, 402, 430
TOTAL274797% 

Tests Skipped Failures Errors Time
97 0 💤 0 ❌ 0 🔥 1.101s ⏱️

@leoparente leoparente merged commit 92130dd into release Jul 10, 2025
9 checks passed
@github-actions
Copy link

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file markdown python released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants