wire up dnssettings

Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
Dmitri Dolguikh
2026-08-03 14:12:27 +02:00
parent 82c1e18264
commit 2f399f1e6e
4 changed files with 69 additions and 1 deletions
@@ -254,7 +254,7 @@ func TestGetPostureChecks(t *testing.T) {
// )
}
func TestGetGetAllowedUserIds(t *testing.T) {
func TestGetAllowedUserIds(t *testing.T) {
ctx := context.TODO()
s, err := NewPostgresqlStore(ctx, "postgresql://root:netbird@localhost:5432/netbird")
@@ -267,3 +267,16 @@ func TestGetGetAllowedUserIds(t *testing.T) {
assert.NotEmpty(t, userIds)
assert.NotEmpty(t, groupToUserIds)
}
func TestGetDnsSettings(t *testing.T) {
ctx := context.TODO()
s, err := NewPostgresqlStore(ctx, "postgresql://root:netbird@localhost:5432/netbird")
assert.NoError(t, err)
// err = loadSQL(ctx, s.pool, initDb)
//assert.NoError(t, err)
set, err := s.GetDnsSettings(ctx, "ckvdmrqfic3c739ihh5g") //"ckd7ee2fic3c73dtendg")
assert.NoError(t, err)
assert.NotEmpty(t, set.DisabledManagementGroups)
}