From 526e9f6711f67c996d180a4e348efe15a83128fd Mon Sep 17 00:00:00 2001 From: candiduslynx Date: Mon, 20 May 2024 14:10:46 +0300 Subject: [PATCH] add integration --- pkg/sdk/testint/users_integration_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/sdk/testint/users_integration_test.go b/pkg/sdk/testint/users_integration_test.go index dcebb58d8c..817127ccc7 100644 --- a/pkg/sdk/testint/users_integration_test.go +++ b/pkg/sdk/testint/users_integration_test.go @@ -12,6 +12,7 @@ import ( func TestInt_UsersShow(t *testing.T) { client := testClient(t) + secondaryClient := testSecondaryClient(t) ctx := testContext(t) userTest, userCleanup := testClientHelper().User.CreateUserWithName(t, "USER_FOO") @@ -74,6 +75,14 @@ func TestInt_UsersShow(t *testing.T) { require.NoError(t, err) assert.Equal(t, 1, len(users)) }) + + t.Run("with like options", func(t *testing.T) { + users, err := secondaryClient.Users.Show(ctx, nil) + require.NoError(t, err) + assert.Contains(t, users, *userTest) + assert.Contains(t, users, *userTest2) + assert.Equal(t, 2, len(users)) + }) } func TestInt_UserCreate(t *testing.T) {