mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-05 21:19:08 +02:00
Move profile resolution to the authz gate
This commit is contained in:
@@ -58,6 +58,10 @@ func TestSetConfig_AllFieldsSaved(t *testing.T) {
|
||||
ctx := privilegedTestCtx()
|
||||
s := New(ctx, "console", "", false, false, false, false)
|
||||
|
||||
// The gate resolves the handle and hands the profile down in the context;
|
||||
// driving the handler directly skips it, so the test stands in for it.
|
||||
ctx = withTarget(ctx, ic.ConfigPath)
|
||||
|
||||
rosenpassEnabled := true
|
||||
rosenpassPermissive := true
|
||||
serverSSHAllowed := true
|
||||
|
||||
Reference in New Issue
Block a user