From 07e7fce4b40fce25dac2b43f40d8a0d9de192257 Mon Sep 17 00:00:00 2001 From: Volodymyr Manilo Date: Sat, 27 Jan 2024 06:10:52 +0100 Subject: [PATCH] fix query test --- twingate/internal/client/query/query_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/twingate/internal/client/query/query_test.go b/twingate/internal/client/query/query_test.go index d157db12..5bec2b09 100644 --- a/twingate/internal/client/query/query_test.go +++ b/twingate/internal/client/query/query_test.go @@ -854,7 +854,7 @@ func TestBuildGroupsFilter(t *testing.T) { }, }, { - filter: &model.GroupsFilter{Type: optionalString("MANUAL")}, + filter: &model.GroupsFilter{Types: []string{"MANUAL"}}, expected: &GroupFilterInput{ Type: GroupTypeFilterOperatorInput{ In: []string{model.GroupTypeManual}, @@ -863,7 +863,7 @@ func TestBuildGroupsFilter(t *testing.T) { }, }, { - filter: &model.GroupsFilter{Type: optionalString("SYSTEM")}, + filter: &model.GroupsFilter{Types: []string{"SYSTEM"}}, expected: &GroupFilterInput{ Type: GroupTypeFilterOperatorInput{ In: []string{model.GroupTypeSystem}, @@ -872,7 +872,7 @@ func TestBuildGroupsFilter(t *testing.T) { }, }, { - filter: &model.GroupsFilter{Type: optionalString("SYNCED")}, + filter: &model.GroupsFilter{Types: []string{"SYNCED"}}, expected: &GroupFilterInput{ Type: GroupTypeFilterOperatorInput{ In: []string{model.GroupTypeSynced}, @@ -896,7 +896,7 @@ func TestBuildGroupsFilter(t *testing.T) { }, { filter: &model.GroupsFilter{ - Type: optionalString("SYSTEM"), + Types: []string{"SYSTEM"}, IsActive: optionalBool(false), }, expected: &GroupFilterInput{ @@ -908,7 +908,7 @@ func TestBuildGroupsFilter(t *testing.T) { }, { filter: &model.GroupsFilter{ - Type: optionalString("MANUAL"), + Types: []string{"MANUAL"}, IsActive: optionalBool(true), }, expected: &GroupFilterInput{ @@ -920,7 +920,7 @@ func TestBuildGroupsFilter(t *testing.T) { }, { filter: &model.GroupsFilter{ - Type: optionalString("MANUAL"), + Types: []string{"MANUAL"}, IsActive: optionalBool(false), }, expected: &GroupFilterInput{