Skip to content

Commit 1af177d

Browse files
committed
fixup test
1 parent 88e4db9 commit 1af177d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

enterprise/coderd/scim_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ func TestScim(t *testing.T) {
814814

815815
// User is dormant on create
816816
sUser := makeScimUser(t)
817-
res, err := client.Request(ctx, http.MethodPut, "/scim/v2/Users", sUser, setScimAuth(scimAPIKey))
817+
res, err := client.Request(ctx, http.MethodPost, "/scim/v2/Users", sUser, setScimAuth(scimAPIKey))
818818
require.NoError(t, err)
819819
defer res.Body.Close()
820820
assert.Equal(t, http.StatusOK, res.StatusCode)
@@ -843,7 +843,7 @@ func TestScim(t *testing.T) {
843843

844844
// Patch the user
845845
mockAudit.ResetLogs()
846-
res, err = client.Request(ctx, "PATCH", "/scim/v2/Users/"+sUser.ID, sUser, setScimAuth(scimAPIKey))
846+
res, err = client.Request(ctx, http.MethodPut, "/scim/v2/Users/"+sUser.ID, sUser, setScimAuth(scimAPIKey))
847847
require.NoError(t, err)
848848
_, _ = io.Copy(io.Discard, res.Body)
849849
_ = res.Body.Close()

0 commit comments

Comments
 (0)