mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Remove refs to safe-chain-pi-test
This commit is contained in:
parent
9b42755502
commit
c2b62c4202
8 changed files with 2 additions and 349 deletions
|
|
@ -40,23 +40,6 @@ describe("E2E: uvx coverage", () => {
|
|||
);
|
||||
});
|
||||
|
||||
it(`safe-chain blocks malicious packages via uvx`, async () => {
|
||||
const shell = await container.openShell("zsh");
|
||||
|
||||
const result = await shell.runCommand(
|
||||
"uvx safe-chain-pi-test"
|
||||
);
|
||||
|
||||
assert.ok(
|
||||
result.output.includes("blocked by safe-chain"),
|
||||
`Expected malicious package to be blocked. Output was:\n${result.output}`
|
||||
);
|
||||
assert.ok(
|
||||
result.output.includes("Exiting without installing malicious packages."),
|
||||
`Expected exit message. Output was:\n${result.output}`
|
||||
);
|
||||
});
|
||||
|
||||
it(`uvx with --from flag runs a safe tool`, async () => {
|
||||
const shell = await container.openShell("zsh");
|
||||
|
||||
|
|
@ -70,23 +53,6 @@ describe("E2E: uvx coverage", () => {
|
|||
);
|
||||
});
|
||||
|
||||
it(`uvx with --from flag blocks malicious packages`, async () => {
|
||||
const shell = await container.openShell("zsh");
|
||||
|
||||
const result = await shell.runCommand(
|
||||
"uvx --from safe-chain-pi-test some-command"
|
||||
);
|
||||
|
||||
assert.ok(
|
||||
result.output.includes("blocked by safe-chain"),
|
||||
`Expected malicious package to be blocked with --from. Output was:\n${result.output}`
|
||||
);
|
||||
assert.ok(
|
||||
result.output.includes("Exiting without installing malicious packages."),
|
||||
`Expected exit message. Output was:\n${result.output}`
|
||||
);
|
||||
});
|
||||
|
||||
it(`uvx with specific version runs successfully`, async () => {
|
||||
const shell = await container.openShell("zsh");
|
||||
|
||||
|
|
@ -113,20 +79,4 @@ describe("E2E: uvx coverage", () => {
|
|||
);
|
||||
});
|
||||
|
||||
it(`uvx with --with flag blocks malicious additional dependencies`, async () => {
|
||||
const shell = await container.openShell("zsh");
|
||||
|
||||
const result = await shell.runCommand(
|
||||
"uvx --with safe-chain-pi-test ruff --version"
|
||||
);
|
||||
|
||||
assert.ok(
|
||||
result.output.includes("blocked by safe-chain"),
|
||||
`Expected malicious --with dependency to be blocked. Output was:\n${result.output}`
|
||||
);
|
||||
assert.ok(
|
||||
result.output.includes("Exiting without installing malicious packages."),
|
||||
`Expected exit message. Output was:\n${result.output}`
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue