test: Added unit tests for the rag, completions and prompt, macros, vault, and functions/tool usage
This commit is contained in:
@@ -1,15 +1,24 @@
|
||||
# Test Plan: Vault
|
||||
|
||||
## Behaviors to test
|
||||
- [ ] Vault add stores encrypted secret
|
||||
- [ ] Vault get decrypts and returns secret
|
||||
- [ ] Vault update replaces secret value
|
||||
- [ ] Vault delete removes secret
|
||||
- [ ] Vault list shows all secret names
|
||||
- [ ] Secrets interpolated in MCP config (mcp.json)
|
||||
- [ ] Missing secrets produce warning during MCP init
|
||||
- [ ] Vault accessible from REPL (.vault commands)
|
||||
- [ ] Vault accessible from CLI (--add/get/update/delete-secret)
|
||||
- [ ] Vault add stores encrypted secret (requires terminal + password file)
|
||||
- [ ] Vault get decrypts and returns secret (requires password file)
|
||||
- [ ] Vault update replaces secret value (requires terminal + password file)
|
||||
- [ ] Vault delete removes secret (requires password file)
|
||||
- [ ] Vault list shows all secret names (requires password file)
|
||||
- [ ] Secrets interpolated in MCP config (mcp.json) (requires Vault with secrets)
|
||||
- [ ] Missing secrets produce warning during MCP init (requires Vault)
|
||||
- [x] Vault accessible from CLI (flag parsing tested in iteration 10)
|
||||
- [ ] Vault accessible from REPL (.vault commands) (requires REPL infra)
|
||||
|
||||
## Additional behaviors tested
|
||||
|
||||
- [x] SECRET_RE matches {{DOUBLE_BRACES}}
|
||||
- [x] SECRET_RE matches with surrounding text
|
||||
- [x] SECRET_RE does not match {SINGLE_BRACES}
|
||||
- [x] SECRET_RE does not match plain text
|
||||
- [x] SECRET_RE matches with spaces inside braces
|
||||
- [x] Vault::default() creates instance with no password file
|
||||
|
||||
## Old code reference
|
||||
- `src/vault/mod.rs` — GlobalVault, operations
|
||||
|
||||
Reference in New Issue
Block a user