mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-17 04:09:07 +02:00
Fix codespell and test comment
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user