Skip to content

chore: add code coverage to orb backends #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2025

Conversation

leoparente
Copy link
Contributor

This pull request introduces several new test cases for various backend components and includes some minor fixes and improvements. The most significant changes include the addition of new test files for device discovery, network discovery, and pktvisor backends, as well as updates to existing tests to simulate process output and correct URL formatting.

New test cases:

Updates to existing tests:

Minor fixes:

Copy link

github-actions bot commented Apr 7, 2025

Go test coverage

STATUS ELAPSED PACKAGE COVER PASS FAIL SKIP
🟢 PASS 1.02s github.com/netboxlabs/orb-agent/agent 0.0% 1 0 0
🟢 PASS 0.01s github.com/netboxlabs/orb-agent/agent/backend 0.0% 0 0 0
🟢 PASS 4.03s github.com/netboxlabs/orb-agent/agent/backend/devicediscovery 76.5% 2 0 0
🟢 PASS 0.00s github.com/netboxlabs/orb-agent/agent/backend/mocks 0.0% 0 0 0
🟢 PASS 4.02s github.com/netboxlabs/orb-agent/agent/backend/networkdiscovery 76.3% 2 0 0
🟢 PASS 4.02s github.com/netboxlabs/orb-agent/agent/backend/otel 75.8% 2 0 0
🟢 PASS 3.03s github.com/netboxlabs/orb-agent/agent/backend/pktvisor 66.7% 2 0 0
🟢 PASS 4.03s github.com/netboxlabs/orb-agent/agent/backend/worker 72.7% 2 0 0
🟢 PASS 1.05s github.com/netboxlabs/orb-agent/agent/configmgr 47.7% 9 0 0
🟢 PASS 1.01s github.com/netboxlabs/orb-agent/agent/policies 100.0% 15 0 0
🟢 PASS 1.03s github.com/netboxlabs/orb-agent/agent/policymgr 70.3% 10 0 0
🟢 PASS 2.51s github.com/netboxlabs/orb-agent/agent/secretsmgr 51.8% 45 0 0
🟢 PASS 1.01s github.com/netboxlabs/orb-agent/agent/version 100.0% 1 0 0

Total coverage: 60.7%

@leoparente leoparente merged commit 1a1024c into develop Apr 8, 2025
5 checks passed
@leoparente leoparente deleted the chore/add-code-coverage-to-backends branch April 8, 2025 12:22
Copy link

🎉 This PR is included in version 2.0.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants