Skip to content

Commit

Permalink
add integration
Browse files Browse the repository at this point in the history
  • Loading branch information
candiduslynx committed May 20, 2024
1 parent 16ff1ba commit 526e9f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/sdk/testint/users_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 526e9f6

Please sign in to comment.