Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"!**/dist",
"!**/node_modules",
"!client/coverage",
"!client/src/app/client"
"!client/src/app/client",
"!**/common/assets"
]
}
}
12 changes: 8 additions & 4 deletions e2e/tests/api/dependencies/global.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ const uploadSboms = async (axios: AxiosInstance, files: string[]) => {
const uploads = files.map((e) => {
const filePath = path.join(__dirname, `../../common/assets/sbom/${e}`);
fs.statSync(filePath); // Verify file exists

const fileStream = fs.createReadStream(filePath);
const contentType = e.endsWith(".bz2")
? "application/json+bzip2"
: "application/json";
return axios.post("/api/v2/sbom", fileStream, {
headers: { "Content-Type": "application/json+bzip2" },
headers: { "Content-Type": contentType },
});
});

Expand All @@ -45,10 +47,12 @@ const uploadAdvisories = async (axios: AxiosInstance, files: string[]) => {
const uploads = files.map((e) => {
const filePath = path.join(__dirname, `../../common/assets/csaf/${e}`);
fs.statSync(filePath); // Verify file exists

const fileStream = fs.createReadStream(filePath);
const contentType = e.endsWith(".bz2")
? "application/json+bzip2"
: "application/json";
return axios.post("/api/v2/advisory", fileStream, {
headers: { "Content-Type": "application/json+bzip2" },
headers: { "Content-Type": contentType },
});
});

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed e2e/tests/common/assets/csaf/cve-2023-0481.json.bz2
Binary file not shown.
Loading