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
{{ message }}
Repository navigation
test(security): the security and crypto tests run on the process, clock and GitHub session fakes, and the scan gate, the Vault lease registry and git signing leave commands #2543
Part 2 of #1332. After part 1, the security and crypto tests of #1332 still patch devops_cli names that merged fakes cover: the process layer (run_subprocess, check_binary, is_dry_run, subprocess.run, shutil.which), the clock, settings and GitHub SSH-key registration. Three pieces of logic also live in commands (Q19): the devops scan gate (commands/scan.py), the Vault lease registry (commands/vault.py) and the git-signing configuration (commands/ssh.py).
Move the scan gate into security/ behind a public function, the Vault lease registry into security/vault_lease.py, and git-signing configuration into crypto/ssh_keys.py behind a public function. The commands render and exit.
Target Subsystem
src/devops_cli/security/, src/devops_cli/crypto/, src/devops_cli/commands/{scan,vault,ssh}.py and their tests.
Existing Tool Considered
The fakes exist on main (#775, #1320, #983). Nothing new is built.
Activity
dan-petty commentedon Oct 28, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The primary goal is restructuring security and crypto tests to use merged fakes and moving logic into testable modules.It follows Part 1 and improves test reliability, but it is not a security vulnerability or blocking defect.It makes tests offline and removes fragile patches, improving maintainability for the project team.It requires rewiring tests to existing fakes and extracting three logic blocks from commands/ into new modules.Both are parts of #1332 on security tests and fakes; #2542 removes mock detection from scanners while the candidate moves tests onto merged fakes and relocates logic out of commands/.refactor(security): the scanners stop looking for mocks, and their te…