From 4605d0feba9a68f28fa5df8b424a152e5eb66963 Mon Sep 17 00:00:00 2001 From: "Theodor S. Midtlien" Date: Wed, 16 Sep 2026 14:41:23 +0200 Subject: [PATCH] Fix codespell and test comment --- client/internal/profilemanager/service_test.go | 12 ++++++------ client/server/setconfig_mdm_test.go | 6 ++---- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/client/internal/profilemanager/service_test.go b/client/internal/profilemanager/service_test.go index b32a7b532..de71190c5 100644 --- a/client/internal/profilemanager/service_test.go +++ b/client/internal/profilemanager/service_test.go @@ -729,12 +729,12 @@ func TestSetProfileField_KeepsKeysItWasNotAskedToWrite(t *testing.T) { // Keys Config has no field for, in every shape a newer client could // leave one behind. unknown := map[string]any{ - "AString": "keep me", - "ANumber": float64(7), - "ABool": true, - "ANull": nil, - "AList": []any{"a", float64(2), false}, - "AnObject": map[string]any{"Nested": map[string]any{"Deep": []any{float64(1)}}}, + "String": "keep me", + "Number": float64(7), + "Bool": true, + "Null": nil, + "List": []any{"a", float64(2), false}, + "Object": map[string]any{"Nested": map[string]any{"Deep": []any{float64(1)}}}, } fields := map[string]any{"MTU": 1280} for k, v := range unknown { diff --git a/client/server/setconfig_mdm_test.go b/client/server/setconfig_mdm_test.go index e2e7240b5..d3689c1d0 100644 --- a/client/server/setconfig_mdm_test.go +++ b/client/server/setconfig_mdm_test.go @@ -103,10 +103,8 @@ func setupServerWithProfile(t *testing.T) (s *Server, ctx context.Context, profN return s, ctx, profName, currUser.Username, cfgPath } -// testProfileOwner is the identity the unprivileged test contexts carry, so a -// fixture profile can be owned by the very caller that drives the handler. -// Without an owner the profile is unowned, which the loader hides from every -// unprivileged caller. +// testProfileOwner is the identity userCtx carries, which is who a fixture +// profile belongs to. func testProfileOwner() *ipcauth.Identity { id := unprivilegedIdentity() return &id