mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Match actual block output in pdm e2e assertions
The user-facing message is "Safe-chain: blocked N malicious package downloads", not "blocked by safe-chain" (which only appears in the proxy's HTTP response, not the rendered CLI output).
This commit is contained in:
parent
ffe7f8de1f
commit
8ab5cebd4f
1 changed files with 3 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ describe("E2E: pdm coverage", () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("blocked by safe-chain"),
|
result.output.includes("blocked") && result.output.includes("malicious package downloads"),
|
||||||
`Expected malware to be blocked. Output was:\n${result.output}`
|
`Expected malware to be blocked. Output was:\n${result.output}`
|
||||||
);
|
);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
|
|
@ -235,7 +235,7 @@ describe("E2E: pdm coverage", () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("blocked by safe-chain"),
|
result.output.includes("blocked") && result.output.includes("malicious package downloads"),
|
||||||
`Expected malware to be blocked during add (which triggers install). Output was:\n${result.output}`
|
`Expected malware to be blocked during add (which triggers install). Output was:\n${result.output}`
|
||||||
);
|
);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
|
|
@ -256,7 +256,7 @@ describe("E2E: pdm coverage", () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("blocked by safe-chain"),
|
result.output.includes("blocked") && result.output.includes("malicious package downloads"),
|
||||||
`Expected malware to be blocked. Output was:\n${result.output}`
|
`Expected malware to be blocked. Output was:\n${result.output}`
|
||||||
);
|
);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue