Skip to content

Commit

Permalink
Add integration tests for ServicePrincipals: Patch (#662)
Browse files Browse the repository at this point in the history
## Changes
Add integration tests for `ServicePrincipals`: `Patch`

Solves #434

- [x] `make test` passing
- [x] `make fmt` applied
- [x] relevant integration tests applied
  • Loading branch information
840 authored Oct 23, 2023
1 parent b31ae96 commit 5ef43e6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions internal/scim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,21 @@ func TestAccServicePrincipalsOnAWS(t *testing.T) {
require.NoError(t, err)
assert.Equal(t, byId.Id, byName.Id)

err = w.ServicePrincipals.Patch(ctx, iam.PartialUpdate{
Id: byId.Id,
Operations: []iam.Patch{
{
Op: iam.PatchOpReplace,
Path: "active",
Value: "false",
},
},
Schemas: []iam.PatchSchema{
iam.PatchSchemaUrnIetfParamsScimApiMessages20PatchOp,
},
})
require.NoError(t, err)

all, err := w.ServicePrincipals.ListAll(ctx, iam.ListServicePrincipalsRequest{})
require.NoError(t, err)

Expand Down

0 comments on commit 5ef43e6

Please sign in to comment.