Repository navigation
feat: [#380] add JSON output support to the test command - #383
Merged
Merged
Conversation
Add Strategy Pattern views (JSON/Text) for the test command output, following the same architecture as the release command. Changes: - Add TestResultData and DnsWarningData DTOs in presentation layer - Add JsonView and TextView rendering implementations with tests - Extend TestResult with instance_ip field for output context - Update TestCommandController to accept OutputFormat parameter - Update router to pass output_format to test controller - Update doc examples for new execute() signature
- Mark all completed implementation checklist items in spec (Steps 1-7 done)
- Rewrite docs/user-guide/commands/test.md to match actual implementation:
- Replace inaccurate test categories (Docker, SSH, permissions checks)
with actual behavior (external health checks + DNS resolution)
- Remove incorrect state validation claim (accepts any state, not just Configured)
- Remove fictional exit codes section
- Add JSON output format documentation with examples
- Add text output format examples
- Add JSON field reference tables
- Rewrite troubleshooting section to match real failure modes
- Document HTTPS support and DNS advisory checks
Member
Author
|
ACK 836dbc7 |
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.
Overview
Adds
--output-formatsupport to thetestcommand, making its results machine-readable for automation, scripts, and AI agents. Closes #380.Usage
Output Examples
Text (default):
JSON:
{ "environment_name": "my-env", "instance_ip": "10.140.190.149", "result": "pass", "dns_warnings": [] }Manual E2E Test
The complete deployment workflow was verified manually:
Both output formats (
textandjson) were validated against a live environment.Related
testcommand #380networks:key for tracker service #382