test(tools): comprehensive test suite for verify_exploit tool function (+49 tests) - #145
Open
manus-use wants to merge 1 commit into
Open
test(tools): comprehensive test suite for verify_exploit tool function (+49 tests)#145manus-use wants to merge 1 commit into
manus-use wants to merge 1 commit into
Conversation
This was referenced Jul 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive test suite for the
verify_exploittool function — the main orchestration entry point that coordinates Docker-based PoC verification (image builds, container starts, network modes, exploit execution, and cleanup).What's tested (+49 tests)
Tool specification validation (5 tests)
Input validation (4 tests)
Docker preflight failures (3 tests)
Image build failures (2 tests)
Target container start failures (2 tests)
Remote mode — wait for target (1 test)
Remote mode — exploit execution (6 tests)
Local mode — health wait (3 tests)
Local mode — exploit execution (6 tests)
Unexpected top-level exceptions (2 tests)
Cleanup guarantees (3 tests)
Default values and edge cases (5 tests)
Result structure validation (2 tests)
Logging integration (2 tests)
Summary content (3 tests)
Approach
verify_exploit()function including both remote and local modes, all error categories (infra_error, build_error, target_error), and the full success path_truncate_text,_result,_error_obj) are complementary — this suite tests the orchestration that USES those helpersTest results
(Baseline: 1158 + 49 new tests)
Duplicate check
Confirmed no overlap with existing open PRs:
_truncate_text,_result,_error_obj)No open or merged PR tests the main
verify_exploit()orchestration function.