Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix client#removeGroupMemberships parameter order (#51)
* Fix client#removeGroupMemberships parameter order I wasn't able to see the following Azure error in the audit logs `warnings` field. It looks as though even though the request to Azure fails, when the Azure app is removed the group memberships are still cleaned up. I was only able to see the error below by adding a log line to print the error when revoke is called. ``` 1 error occurred: * error removing group membership: graphrbac.GroupsClient#RemoveMember: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="Unknown" Message="Unknown service error" Details=[{"odata.error":{"code":"Request_ResourceNotFound","date":"2020-10-23T20:32:14","message":{"lang":"en","value":"Resource 'c1004989-2986-48e8-9e2e-aa03b7cacbc1' does not exist or one of its queried reference-property objects are not present."},"requestId":"a2d4d4c6-4e0a-4ea2-a807-16486c307d03"}}] : timestamp=2020-10-23T14:32:14.604-0600 ``` * Add test assertion to ensure deleting group member works --------- Co-authored-by: Austin Gebauer <[email protected]>
- Loading branch information