mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Use numpy==2.4.4 as test malware in pdm e2e tests
The safe-chain-pi-test package no longer exists on PyPI. Aikido now patches numpy==2.4.4 into the malware list for tests, matching the pattern already used in the poetry e2e suite.
This commit is contained in:
parent
54db058ac7
commit
ffe7f8de1f
1 changed files with 3 additions and 3 deletions
|
|
@ -70,7 +70,7 @@ describe("E2E: pdm coverage", () => {
|
||||||
await shell.runCommand("cd /tmp/test-pdm-malware && pdm init --non-interactive");
|
await shell.runCommand("cd /tmp/test-pdm-malware && pdm init --non-interactive");
|
||||||
|
|
||||||
const result = await shell.runCommand(
|
const result = await shell.runCommand(
|
||||||
"cd /tmp/test-pdm-malware && pdm add safe-chain-pi-test"
|
"cd /tmp/test-pdm-malware && pdm add numpy==2.4.4"
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
|
|
@ -231,7 +231,7 @@ describe("E2E: pdm coverage", () => {
|
||||||
|
|
||||||
// Add malware package - this will create lock file and attempt download
|
// Add malware package - this will create lock file and attempt download
|
||||||
const result = await shell.runCommand(
|
const result = await shell.runCommand(
|
||||||
"cd /tmp/test-pdm-install-malware && pdm add safe-chain-pi-test 2>&1"
|
"cd /tmp/test-pdm-install-malware && pdm add numpy==2.4.4 2>&1"
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
|
|
@ -252,7 +252,7 @@ describe("E2E: pdm coverage", () => {
|
||||||
|
|
||||||
// Try to add malware alongside safe package
|
// Try to add malware alongside safe package
|
||||||
const result = await shell.runCommand(
|
const result = await shell.runCommand(
|
||||||
"cd /tmp/test-pdm-batch && pdm add safe-chain-pi-test requests 2>&1"
|
"cd /tmp/test-pdm-batch && pdm add numpy==2.4.4 requests 2>&1"
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue