Skip to content

Commit 88e4db9

Browse files
committed
test fix
1 parent 0a843b9 commit 88e4db9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

enterprise/coderd/scim.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ func immutabilityViolation[T comparable](old, new T) bool {
517517
return old != new
518518
}
519519

520+
//nolint:revive // active is not a control flag
520521
func scimUserStatus(user database.User, active bool) database.UserStatus {
521522
if !active {
522523
return database.UserStatusSuspended

enterprise/coderd/scim_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ func TestScim(t *testing.T) {
720720

721721
sUser.UserName += "changed"
722722

723-
res, err = client.Request(ctx, http.MethodPut, "/scim/v2/Users", sUser, setScimAuth(scimAPIKey))
723+
res, err = client.Request(ctx, http.MethodPut, "/scim/v2/Users/"+sUser.ID, sUser, setScimAuth(scimAPIKey))
724724
require.NoError(t, err)
725725
defer res.Body.Close()
726726
assert.Equal(t, http.StatusBadRequest, res.StatusCode)

0 commit comments

Comments
 (0)