Repository navigation
[Test Coverage] src/docker-manager.ts - #9846
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The tests duplicate existing coverage and incorrectly codify acceptance of a malformed empty host.
2 open findings
What changed in this PR
Adds parser tests through the docker-manager barrel.
Changes:
- Tests defaults, schemes, ports, IPv6, and invalid inputs.
- Duplicates existing host-config parser coverage.
| File | Description |
|---|---|
src/docker-manager.test.ts |
Adds parseDifcProxyHost behavioral tests. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| }); | ||
|
|
||
| it('rejects malformed values and out-of-range ports', () => { | ||
| expect(() => dockerManager.parseDifcProxyHost('http://')).not.toThrow(); |
| }); | ||
| }); | ||
|
|
||
| describe('parseDifcProxyHost via barrel', () => { |
|
@copilot address review feedback |
Removed the duplicate parser behavior tests from the barrel suite; the dedicated host-config tests and barrel identity assertions remain. Commit: |
|
✅ Copilot review passed with no inline comments. @github-actions[bot] Add the |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.
|
|
🔮 The ancient spirits stir... Smoke Codex awakens to divine this pull request... |
|
🔌 Smoke Services — All services reachable! ✅
|
|
🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅
|
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅
|
|
🪪 Smoke Copilot BYOK AOAI (Entra) is testing Azure OpenAI BYOK (Entra / GitHub OIDC) mode on this pull request... |
|
🔑 Smoke Copilot BYOK AOAI (api-key) is testing Azure OpenAI BYOK (api-key) mode on this pull request... |
|
💎 Smoke Gemini is crystallizing results on this pull request... |
|
🚀 Security Guard has started processing this pull request |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
✅ Build Test Suite completed successfully!
|
|
✅ Smoke Claude passed
|
Smoke Test: Cloud Hypervisor + Copilot
All checks passed.
|
Smoke Test: Copilot BYOK ✅ PASSRunning in direct BYOK mode (
Assignee:
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|
|
Smoke services: PASS
|
|
Smoke Copilot — PR: "[Test Coverage] src/docker-manager.ts"
|
|
OTEL smoke test
|
🏗️ Build Test Suite Results
Overall: 5/8 ecosystems passed — FAIL Failures
The
|
Chroot Version Comparison
Result: Not all tests passed (Node.js version mismatch), so the
|
|
EGRESS_RESULT allow=pass deny=pass
|


Adds unit tests to
src/docker-manager.test.tscoveringparseDifcProxyHostthrough the barrel: empty input defaults, scheme stripping, default port,(redacted)port preservation, IPv6 bracket stripping, and rejection of non-numeric or out-of-range ports.Targeted Jest run: 25/25 passing. ESLint on the file: clean. Existing tests are unchanged.