mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Merge pull request #139 from AikidoSec/feature/fix-e2e-tests
[PYPI e2e testing] Add extra flag to install commands
This commit is contained in:
commit
96d7c460fa
1 changed files with 5 additions and 5 deletions
|
|
@ -28,7 +28,7 @@ describe("E2E: pip coverage", () => {
|
||||||
|
|
||||||
it(`successfully installs known safe packages with pip3`, async () => {
|
it(`successfully installs known safe packages with pip3`, async () => {
|
||||||
const shell = await container.openShell("zsh");
|
const shell = await container.openShell("zsh");
|
||||||
const result = await shell.runCommand("pip3 install requests");
|
const result = await shell.runCommand("pip3 install --break-system-packages requests");
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("no malicious packages found."),
|
result.output.includes("no malicious packages found."),
|
||||||
|
|
@ -58,7 +58,7 @@ describe("E2E: pip coverage", () => {
|
||||||
|
|
||||||
it(`pip3 install --dry-run is respected by scanner`, async () => {
|
it(`pip3 install --dry-run is respected by scanner`, async () => {
|
||||||
const shell = await container.openShell("zsh");
|
const shell = await container.openShell("zsh");
|
||||||
const result = await shell.runCommand("pip3 install --dry-run requests");
|
const result = await shell.runCommand("pip3 install --dry-run --break-system-packages requests");
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("no malicious packages found."),
|
result.output.includes("no malicious packages found."),
|
||||||
|
|
@ -68,7 +68,7 @@ describe("E2E: pip coverage", () => {
|
||||||
|
|
||||||
it(`pip3 install with extras such as requests[socks]`, async () => {
|
it(`pip3 install with extras such as requests[socks]`, async () => {
|
||||||
const shell = await container.openShell("zsh");
|
const shell = await container.openShell("zsh");
|
||||||
const result = await shell.runCommand('pip3 install "requests[socks]==2.32.3"');
|
const result = await shell.runCommand('pip3 install --break-system-packages "requests[socks]==2.32.3"');
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("no malicious packages found."),
|
result.output.includes("no malicious packages found."),
|
||||||
|
|
@ -78,7 +78,7 @@ describe("E2E: pip coverage", () => {
|
||||||
|
|
||||||
it(`pip3 install with range version specifier`, async () => {
|
it(`pip3 install with range version specifier`, async () => {
|
||||||
const shell = await container.openShell("zsh");
|
const shell = await container.openShell("zsh");
|
||||||
const result = await shell.runCommand('pip3 install "Jinja2>=3.1,<3.2"');
|
const result = await shell.runCommand('pip3 install --break-system-packages "Jinja2>=3.1,<3.2"');
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("no malicious packages found."),
|
result.output.includes("no malicious packages found."),
|
||||||
|
|
@ -88,7 +88,7 @@ describe("E2E: pip coverage", () => {
|
||||||
|
|
||||||
it(`python3 -m pip install routes through safe-chain`, async () => {
|
it(`python3 -m pip install routes through safe-chain`, async () => {
|
||||||
const shell = await container.openShell("zsh");
|
const shell = await container.openShell("zsh");
|
||||||
const result = await shell.runCommand('python3 -m pip install requests');
|
const result = await shell.runCommand('python3 -m pip install --break-system-packages requests');
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("no malicious packages found."),
|
result.output.includes("no malicious packages found."),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue