From 5d54447d63e5359fdd3d7c76b14d90a4c03cff89 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Wed, 18 Nov 2026 21:38:35 +0800 Subject: [PATCH] test(artifacts): verify encrypted PCK extraction refusal (#12054) * test(artifacts): verify encrypted PCK extraction refusal * test(artifacts): check encrypted refusal without fixing wording --- tests/acceptance/godotPck.test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/godotPck.test.ts b/tests/acceptance/godotPck.test.ts index 8d6e37508a..3f0ad3d6cc 100644 --- a/tests/acceptance/godotPck.test.ts +++ b/tests/acceptance/godotPck.test.ts @@ -277,8 +277,8 @@ cliTest( cliTest( "retains encrypted-directory declarations without claiming an empty package", async ({ cli }) => { - const root = await createTestTempDirectory("rea-pck-encrypted-cli-"); - const source = join(root, "encrypted.pck"); + const root = await createTestTempDirectory("rea-pck-refusal-"); + const source = join(root, "game.pck"); const bytes = buildGodotPck(4, members, { packFlags: 3 }); const directory = Number(bytes.readBigUInt64LE(32)); bytes.fill(0xff, directory + 4); @@ -310,6 +310,12 @@ cliTest( ], }); expect(extracted.exitCode).toBe(1); + expect(extracted.json).toMatchObject({ + code: "unsupported_target", + message: expect.stringMatching(/\bencrypted\b/iu), + details: { path: source }, + }); + expect(await readdir(root)).toEqual(["game.pck"]); }, );