Skip to content

Commit

Permalink
fix query test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmanilo committed Jan 27, 2024
1 parent 81bffd8 commit 07e7fce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions twingate/internal/client/query/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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},
Expand All @@ -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},
Expand All @@ -896,7 +896,7 @@ func TestBuildGroupsFilter(t *testing.T) {
},
{
filter: &model.GroupsFilter{
Type: optionalString("SYSTEM"),
Types: []string{"SYSTEM"},
IsActive: optionalBool(false),
},
expected: &GroupFilterInput{
Expand All @@ -908,7 +908,7 @@ func TestBuildGroupsFilter(t *testing.T) {
},
{
filter: &model.GroupsFilter{
Type: optionalString("MANUAL"),
Types: []string{"MANUAL"},
IsActive: optionalBool(true),
},
expected: &GroupFilterInput{
Expand All @@ -920,7 +920,7 @@ func TestBuildGroupsFilter(t *testing.T) {
},
{
filter: &model.GroupsFilter{
Type: optionalString("MANUAL"),
Types: []string{"MANUAL"},
IsActive: optionalBool(false),
},
expected: &GroupFilterInput{
Expand Down

0 comments on commit 07e7fce

Please sign in to comment.