-
Notifications
You must be signed in to change notification settings - Fork 3
Sandbox: shell completions and tests #782
Copy link
Copy link
Open
Labels
sandboxSandbox mode: isolated chain with yes_cryptoSandbox mode: isolated chain with yes_cryptotestingTest infrastructure and coverageTest infrastructure and coverage
Milestone
Description
Summary
Shell completions for the new sandbox CLI commands and tests for the yes-wallet and sandbox libraries.
Blocked by: #780 (sandbox CLI commands)
Changes
Shell completions
- Run
make completionsafter CLI changes - Add bash/zsh completions for
sandboxsubcommands (create, list, status, start, stop, destroy, add-account)
Unit tests for yes-wallet
- Test
secret_key_for_prefixreturns correct hardcoded key for all PKH types (tz1, tz2, tz3, tz4) - Test
write_walletproduces valid JSON matching octez-client format - Test round-trip:
write_wallet→Keys_reader.read_keys_fullcan parse the output
Unit tests for sandbox config
- Test name resolution (auto-naming, custom naming, duplicate detection)
- Test config validation (required fields, valid RPC address format)
Integration tests (if feasible)
- Test sandbox create with
--dry-runor mock node (if applicable) - Test destroy cleans up all resources
Verification
dune build && dune runtest- Shell completions include sandbox subcommands
- All new tests pass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
sandboxSandbox mode: isolated chain with yes_cryptoSandbox mode: isolated chain with yes_cryptotestingTest infrastructure and coverageTest infrastructure and coverage