From bcccb01d0a353c028cc8cb3254cac7ebae32929e Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Fri, 10 Oct 2025 08:29:07 -0500 Subject: [PATCH] tests/firefox: change test case to verify we handle missing addonId Signed-off-by: Austin Horstman --- .../modules/programs/firefox/profiles/extensions/exact.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/modules/programs/firefox/profiles/extensions/exact.nix b/tests/modules/programs/firefox/profiles/extensions/exact.nix index 8fb4c1890..8927d532a 100644 --- a/tests/modules/programs/firefox/profiles/extensions/exact.nix +++ b/tests/modules/programs/firefox/profiles/extensions/exact.nix @@ -8,7 +8,6 @@ let uBlockStubPkg = config.lib.test.mkStubPackage { name = "ublock-origin-dummy"; extraAttrs = { - addonId = "uBlock0@raymondhill.net"; meta.mozPermissions = [ "privacy" "storage" @@ -69,7 +68,7 @@ in ]; exactPermissions = true; settings = { - ${uBlockStubPkg.addonId} = { + ${uBlockStubPkg.name} = { permissions = [ "privacy" "storage" @@ -104,10 +103,10 @@ in // { test.asserts.assertions.expected = [ '' - Extension ${uBlockStubPkg.addonId} requests permissions that weren't + Extension ${uBlockStubPkg.name} requests permissions that weren't authorized: ["tabs"]. Consider adding the missing permissions to - '${lib.showOption modulePath}.profiles.extensions.extensions."${uBlockStubPkg.addonId}".permissions'. + '${lib.showOption modulePath}.profiles.extensions.extensions.${uBlockStubPkg.name}.permissions'. '' '' The following permissions were authorized, but extension