-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: add missing endpoint manager testing script #13690
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
base: dev
Are you sure you want to change the base?
Conversation
|
18 endpoint related tests are failing: |
|
|
@valentijnscholten Could you please let me know the reason of the above test failing? |
|
My guess would be that you need to specify some fixtures to load objects into the test database. Take a look at any of the other tests to see how this is done I would also recommend running the tests locally to ensure they are passing. There is a helper script here: https://github.com/DefectDojo/django-DefectDojo/blob/master/run-unittest.sh |
|
@codomposer If you click on the red things at the bottom of this PR you can view logs (Go for View Raw Logs on top right) |

Add Comprehensive Test Coverage for Endpoint Manager Module
Description
Adds 22 comprehensive test cases for the previously untested
endpoint_manager.pymodule, a security-critical component that handles endpoint parsing, validation, and lifecycle management.Coverage: 0% → 100% of EndpointManager methods
What's Tested:
Test Results
unittests/test_endpoint_manager.pyRun tests:
python manage.py test unittests.test_endpoint_managerDocumentation
All tests have comprehensive docstrings explaining purpose and verification.
Checklist
devdevbranchImpact
Benefits: Regression prevention, improved maintainability, automated verification of security-critical functionality
Risk: Zero - only adds tests, no production code changes
Contribution by Gittensor, learn more at https://gittensor.io/