Skip to content

Commit 29314e4

Browse files
committed
add sub field to more tests
1 parent 3a69f1a commit 29314e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enterprise/coderd/scim_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"testing"
1111

1212
"github.com/golang-jwt/jwt/v4"
13+
"github.com/google/uuid"
1314
"github.com/imulab/go-scim/pkg/v2/handlerutil"
1415
"github.com/imulab/go-scim/pkg/v2/spec"
1516
"github.com/stretchr/testify/assert"
@@ -568,6 +569,7 @@ func TestScim(t *testing.T) {
568569
//nolint:bodyclose
569570
scimUserClient, _ := fake.Login(t, client, jwt.MapClaims{
570571
"email": sUser.Emails[0].Value,
572+
"sub": uuid.NewString(),
571573
})
572574
scimUser, err = scimUserClient.User(ctx, codersdk.Me)
573575
require.NoError(t, err)
@@ -836,6 +838,7 @@ func TestScim(t *testing.T) {
836838
//nolint:bodyclose
837839
scimUserClient, _ := fake.Login(t, client, jwt.MapClaims{
838840
"email": sUser.Emails[0].Value,
841+
"sub": uuid.NewString(),
839842
})
840843
scimUser, err = scimUserClient.User(ctx, codersdk.Me)
841844
require.NoError(t, err)

0 commit comments

Comments
 (0)