mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-23 23:29:08 +02:00
wire up dnssettings
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user