fix(windows): retain failed native inspection ownership (#1826)

This commit is contained in:
Ysopwnable
2026-10-11 21:33:25 +08:00
committed by GitHub
parent 6ac5c36503
commit 0b4ce83618
11 changed files with 240 additions and 19 deletions
+7 -6
View File
@@ -169,17 +169,18 @@ describe("packaged Windows native admission", () => {
}),
).toMatchObject({
available: false,
retryable: true,
reason: expect.stringContaining("private DACL: access denied"),
});
});
it("requires every inspected native fact", () => {
const value = fixture();
expect(
loadWindowsNativeAuthority({
...value.host,
loadArtifact: () => ({ call: () => ({ privateDacl: true }) }),
}).available,
).toBe(false);
const loaded = loadWindowsNativeAuthority({
...value.host,
loadArtifact: () => ({ call: () => ({ privateDacl: true }) }),
});
expect(loaded.available).toBe(false);
expect(loaded).not.toHaveProperty("retryable");
});
});