You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(selfhost): cover env_get and require_cmd in selfhost-deploy-common
selfhost-deploy-common.test.ts covered only maybe_infisical_run, env_put, and
compose_file_args (the last two added by their own bug-fix PRs). env_get and
require_cmd -- both sourced by 5 deploy/verify scripts -- had no test seam,
the same structural gap that let two other bugs in this file ship unnoticed.
Add tests following the file's existing source-and-invoke harness:
- env_get: reads an existing key, strips surrounding quotes, ignores
comment/blank lines and matches the key exactly (not as a prefix), and
returns non-zero for a missing key or missing file.
- require_cmd: succeeds silently for a command on PATH, and exits non-zero
with an actionable 'required command not found' error otherwise.
Test-only; no change to the shell library.
Closes#7769
0 commit comments