mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-26 16:49:08 +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
|
// Keys Config has no field for, in every shape a newer client could
|
||||||
// leave one behind.
|
// leave one behind.
|
||||||
unknown := map[string]any{
|
unknown := map[string]any{
|
||||||
"AString": "keep me",
|
"String": "keep me",
|
||||||
"ANumber": float64(7),
|
"Number": float64(7),
|
||||||
"ABool": true,
|
"Bool": true,
|
||||||
"ANull": nil,
|
"Null": nil,
|
||||||
"AList": []any{"a", float64(2), false},
|
"List": []any{"a", float64(2), false},
|
||||||
"AnObject": map[string]any{"Nested": map[string]any{"Deep": []any{float64(1)}}},
|
"Object": map[string]any{"Nested": map[string]any{"Deep": []any{float64(1)}}},
|
||||||
}
|
}
|
||||||
fields := map[string]any{"MTU": 1280}
|
fields := map[string]any{"MTU": 1280}
|
||||||
for k, v := range unknown {
|
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
|
return s, ctx, profName, currUser.Username, cfgPath
|
||||||
}
|
}
|
||||||
|
|
||||||
// testProfileOwner is the identity the unprivileged test contexts carry, so a
|
// testProfileOwner is the identity userCtx carries, which is who a fixture
|
||||||
// fixture profile can be owned by the very caller that drives the handler.
|
// profile belongs to.
|
||||||
// Without an owner the profile is unowned, which the loader hides from every
|
|
||||||
// unprivileged caller.
|
|
||||||
func testProfileOwner() *ipcauth.Identity {
|
func testProfileOwner() *ipcauth.Identity {
|
||||||
id := unprivilegedIdentity()
|
id := unprivilegedIdentity()
|
||||||
return &id
|
return &id
|
||||||
|
|||||||
Reference in New Issue
Block a user