-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added live tests for identity client aad (#15909)
- Loading branch information
1 parent
febfe9d
commit c5745c1
Showing
18 changed files
with
620 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
...recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '0' | ||
User-Agent: | ||
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) | ||
method: POST | ||
uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2020-07-20-preview2 | ||
response: | ||
body: | ||
string: '{"id": "sanitized"}' | ||
headers: | ||
api-supported-versions: | ||
- 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Tue, 22 Dec 2020 18:30:23 GMT | ||
ms-cv: | ||
- eSMH8ZATxUWO5OamG49Wdg.0 | ||
strict-transport-security: | ||
- max-age=2592000 | ||
transfer-encoding: | ||
- chunked | ||
x-processing-time: | ||
- 811ms | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '0' | ||
User-Agent: | ||
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) | ||
method: DELETE | ||
uri: https://communicationegrcrs.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 | ||
response: | ||
body: | ||
string: '' | ||
headers: | ||
api-supported-versions: | ||
- 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 | ||
date: | ||
- Tue, 22 Dec 2020 18:30:24 GMT | ||
ms-cv: | ||
- 91lJNqPMP0+hZnY0ay0tXA.0 | ||
strict-transport-security: | ||
- max-age=2592000 | ||
x-processing-time: | ||
- 741ms | ||
status: | ||
code: 204 | ||
message: No Content | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
...recordings/test_communication_identity_client.test_issue_token_from_managed_identity.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '0' | ||
User-Agent: | ||
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) | ||
method: POST | ||
uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2020-07-20-preview2 | ||
response: | ||
body: | ||
string: '{"id": "sanitized"}' | ||
headers: | ||
api-supported-versions: | ||
- 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Tue, 22 Dec 2020 18:32:41 GMT | ||
ms-cv: | ||
- NcQPodkL5UOzC+AtKJcXvw.0 | ||
strict-transport-security: | ||
- max-age=2592000 | ||
transfer-encoding: | ||
- chunked | ||
x-processing-time: | ||
- 501ms | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: '{"scopes": ["chat"]}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '20' | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) | ||
method: POST | ||
uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 | ||
response: | ||
body: | ||
string: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-23T18:32:41.3736569+00:00"}' | ||
headers: | ||
api-supported-versions: | ||
- 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Tue, 22 Dec 2020 18:32:41 GMT | ||
ms-cv: | ||
- W4rjQkxkvUSQqyJk5dUwCA.0 | ||
strict-transport-security: | ||
- max-age=2592000 | ||
transfer-encoding: | ||
- chunked | ||
x-processing-time: | ||
- 27ms | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.