mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Some more cleanup
This commit is contained in:
parent
059cba06bc
commit
b5988e19c1
2 changed files with 7 additions and 7 deletions
|
|
@ -2,8 +2,6 @@ import { describe, it, before, beforeEach, afterEach } from "node:test";
|
|||
import { DockerTestContainer } from "./DockerTestContainer.js";
|
||||
import assert from "node:assert";
|
||||
|
||||
// Note: These tests require Docker. If Docker isn't available locally,
|
||||
// they will be skipped by the runner or fail to build the image.
|
||||
describe("E2E: pip coverage", () => {
|
||||
let container;
|
||||
|
||||
|
|
@ -28,7 +26,7 @@ describe("E2E: pip coverage", () => {
|
|||
}
|
||||
});
|
||||
|
||||
it(`safe-chain successfully installs safe packages with pip3`, async () => {
|
||||
it(`successfully installs known safe packages with pip3`, async () => {
|
||||
const shell = await container.openShell("zsh");
|
||||
const result = await shell.runCommand("pip3 install requests");
|
||||
|
||||
|
|
@ -38,7 +36,7 @@ describe("E2E: pip coverage", () => {
|
|||
);
|
||||
});
|
||||
|
||||
it(`pip3 download works with safe-chain proxy`, async () => {
|
||||
it(`pip3 download`, async () => {
|
||||
const shell = await container.openShell("zsh");
|
||||
const result = await shell.runCommand("pip3 download requests");
|
||||
|
||||
|
|
@ -48,7 +46,7 @@ describe("E2E: pip coverage", () => {
|
|||
);
|
||||
});
|
||||
|
||||
it(`pip3 wheel works with safe-chain proxy`, async () => {
|
||||
it(`pip3 .whl`, async () => {
|
||||
const shell = await container.openShell("zsh");
|
||||
const result = await shell.runCommand("pip3 wheel requests");
|
||||
|
||||
|
|
@ -62,7 +60,6 @@ describe("E2E: pip coverage", () => {
|
|||
const shell = await container.openShell("zsh");
|
||||
const result = await shell.runCommand("pip3 install --dry-run requests");
|
||||
|
||||
// Scanner intentionally skips when --dry-run is present for install
|
||||
assert.ok(
|
||||
result.output.includes("no malicious packages found."),
|
||||
`Output did not include expected text. Output was:\n${result.output}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue