mirror of
https://github.com/morluto/rea.git
synced 2026-11-23 23:15:58 +00:00
test(filesystem): probe actual permission denial before host assertions
This commit is contained in:
1 parent
63370e9300
commit
d0375a1ed0
7 files changed
+102
-20
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { requirePermissionDenial } from "../../../tests/fixtures/permissionDenial.js";
|
||||
import {
|
||||
appendFile,
|
||||
chmod,
|
||||
@@ -167,9 +168,10 @@ it("uses confirmed publication after the output owner's descriptor cleanup compl
|
||||
}
|
||||
});
|
||||
|
||||
it.skipIf(process.platform === "win32" || process.getuid?.() === 0)(
|
||||
it.skipIf(process.platform === "win32")(
|
||||
"returns a tagged permission refusal for an existing read-only empty directory",
|
||||
async () => {
|
||||
async (context) => {
|
||||
await requirePermissionDenial(context, "directory-write");
|
||||
const root = await createTestTempDirectory("rea-bundle-readonly-");
|
||||
const files = await writeEnvironmentServeFiles(root);
|
||||
const inputs = await readEnvironmentExportInputs(
|
||||
@@ -200,9 +202,10 @@ it.skipIf(process.platform === "win32" || process.getuid?.() === 0)(
|
||||
},
|
||||
);
|
||||
|
||||
it.skipIf(process.platform === "win32" || process.getuid?.() === 0)(
|
||||
it.skipIf(process.platform === "win32")(
|
||||
"names the nested path when write permission is lost after earlier files",
|
||||
async () => {
|
||||
async (context) => {
|
||||
await requirePermissionDenial(context, "directory-write");
|
||||
const root = await createTestTempDirectory("rea-bundle-later-denied-");
|
||||
const files = await writeEnvironmentServeFiles(root);
|
||||
const inputs = await readEnvironmentExportInputs(
|
||||
|
||||
Reference in new issue
Block a user