Skip to content

Commit f494be1

Browse files
committed
fix: damn it was the version pin
1 parent de00570 commit f494be1

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

test/windows/plugin.spec.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,11 @@ describe("windows scanning", () => {
9494
const imageNameAndTag =
9595
"python@sha256:1f92d35b567363820d0f2f37c7ccf2c1543e2d852cea01edb027039e6aef25e6";
9696

97-
console.log("=== DEBUG: Starting scan ===");
98-
console.log("Image:", imageNameAndTag);
99-
10097
const pluginResult = await plugin.scan({
10198
path: imageNameAndTag,
10299
"exclude-app-vulns": true,
103100
});
104101

105-
console.log("Scan completed successfully");
106-
107102
const depGraph: DepGraph = pluginResult.scanResults[0].facts.find(
108103
(fact) => fact.type === "depGraph",
109104
)!.data;
@@ -113,23 +108,9 @@ describe("windows scanning", () => {
113108
const imageLayers: string[] = pluginResult.scanResults[0].facts.find(
114109
(fact) => fact.type === "imageLayers",
115110
)!.data;
116-
117-
// Debug output
118-
console.log("=== DEBUG: imageLayers ===");
119-
console.log("Total layers:", imageLayers.length);
120-
imageLayers.forEach((layer, index) => {
121-
console.log(`Layer ${index}: "${layer}"`);
122-
console.log(` - basename: "${path.basename(layer)}"`);
123-
console.log(` - endsWith("layer.tar"): ${layer.endsWith("layer.tar")}`);
124-
console.log(
125-
` - endsWith("\\\\layer.tar"): ${layer.endsWith("\\layer.tar")}`,
126-
);
127-
});
128-
console.log("=========================");
129-
130111
expect(imageLayers.length).toBeGreaterThan(0);
131112
expect(
132-
imageLayers.every((layer) => path.basename(layer) === "layer.tar"),
113+
imageLayers.every((layer) => layer.endsWith("layer.tar")),
133114
).toBeTruthy();
134115
expect(pluginResult.scanResults[0].identity.args?.platform).toEqual(
135116
"windows/amd64",

0 commit comments

Comments
 (0)