mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 11:01:24 +00:00
test(secrets): skip strict file-permission resolver tests on windows
This commit is contained in:
committed by
Peter Steinberger
parent
bde9cbb058
commit
b84d7796be
@@ -37,6 +37,9 @@ describe("secret ref resolver", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("resolves file refs in jsonPointer mode", async () => {
|
it("resolves file refs in jsonPointer mode", async () => {
|
||||||
|
if (process.platform === "win32") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const root = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-secrets-resolve-file-"));
|
const root = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-secrets-resolve-file-"));
|
||||||
cleanupRoots.push(root);
|
cleanupRoots.push(root);
|
||||||
const filePath = path.join(root, "secrets.json");
|
const filePath = path.join(root, "secrets.json");
|
||||||
@@ -250,6 +253,9 @@ describe("secret ref resolver", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("supports file raw mode with id=value", async () => {
|
it("supports file raw mode with id=value", async () => {
|
||||||
|
if (process.platform === "win32") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const root = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-secrets-resolve-raw-"));
|
const root = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-secrets-resolve-raw-"));
|
||||||
cleanupRoots.push(root);
|
cleanupRoots.push(root);
|
||||||
const filePath = path.join(root, "token.txt");
|
const filePath = path.join(root, "token.txt");
|
||||||
|
|||||||
Reference in New Issue
Block a user