Skip to content

Commit 7fcabe2

Browse files
fix(tests): strengthen checksum verification assertion against regression (#48)
* Initial plan * fix(tests): strengthen checksum test assertion to guard against regression Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
1 parent 087436f commit 7fcabe2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/compiler_tests.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ fn test_compiled_yaml_structure() {
148148
template_content.contains("sha256sum -c checksums.txt --ignore-missing"),
149149
"Template should verify checksum using checksums.txt"
150150
);
151+
assert!(
152+
!template_content.contains("grep -q"),
153+
"Checksum verification should not pipe through grep"
154+
);
151155

152156
// Verify AWF (Agentic Workflow Firewall) is downloaded from GitHub Releases, not ADO pipeline artifacts
153157
assert!(

0 commit comments

Comments
 (0)