Skip to content

Commit c5745c1

Browse files
authored
Added live tests for identity client aad (#15909)
1 parent febfe9d commit c5745c1

18 files changed

+620
-84
lines changed

sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_create_user.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interactions:
1111
Content-Length:
1212
- '0'
1313
Date:
14-
- Thu, 10 Dec 2020 22:51:26 GMT
14+
- Tue, 22 Dec 2020 18:26:56 GMT
1515
User-Agent:
1616
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
1717
x-ms-return-client-request-id:
@@ -27,15 +27,15 @@ interactions:
2727
content-type:
2828
- application/json; charset=utf-8
2929
date:
30-
- Thu, 10 Dec 2020 22:51:26 GMT
30+
- Tue, 22 Dec 2020 18:26:55 GMT
3131
ms-cv:
32-
- 7v+JU+4sXEu3iOcMG67i8g.0
32+
- 4whAoum970WIzePHLz1Ujg.0
3333
strict-transport-security:
3434
- max-age=2592000
3535
transfer-encoding:
3636
- chunked
3737
x-processing-time:
38-
- 26ms
38+
- 18ms
3939
status:
4040
code: 200
4141
message: OK

sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ interactions:
2323
content-type:
2424
- application/json; charset=utf-8
2525
date:
26-
- Thu, 10 Dec 2020 22:52:36 GMT
26+
- Tue, 22 Dec 2020 18:28:04 GMT
2727
ms-cv:
28-
- MomL+0MB7EyhD2dh2BIUOw.0
28+
- /4JsXqUuEkmQ1v304iaBTw.0
2929
strict-transport-security:
3030
- max-age=2592000
3131
transfer-encoding:
3232
- chunked
3333
x-processing-time:
34-
- 484ms
34+
- 635ms
3535
status:
3636
code: 200
3737
message: OK

sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_delete_user.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interactions:
1111
Content-Length:
1212
- '0'
1313
Date:
14-
- Thu, 10 Dec 2020 22:53:44 GMT
14+
- Tue, 22 Dec 2020 18:29:13 GMT
1515
User-Agent:
1616
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
1717
x-ms-return-client-request-id:
@@ -27,15 +27,15 @@ interactions:
2727
content-type:
2828
- application/json; charset=utf-8
2929
date:
30-
- Thu, 10 Dec 2020 22:53:44 GMT
30+
- Tue, 22 Dec 2020 18:29:12 GMT
3131
ms-cv:
32-
- HU9zP3sAB060ixX6PUWTcQ.0
32+
- UzbbWyNM6Ee4hx1Ym7MwSA.0
3333
strict-transport-security:
3434
- max-age=2592000
3535
transfer-encoding:
3636
- chunked
3737
x-processing-time:
38-
- 24ms
38+
- 19ms
3939
status:
4040
code: 200
4141
message: OK
@@ -51,7 +51,7 @@ interactions:
5151
Content-Length:
5252
- '0'
5353
Date:
54-
- Thu, 10 Dec 2020 22:53:44 GMT
54+
- Tue, 22 Dec 2020 18:29:14 GMT
5555
User-Agent:
5656
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
5757
x-ms-return-client-request-id:
@@ -65,13 +65,13 @@ interactions:
6565
api-supported-versions:
6666
- 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2
6767
date:
68-
- Thu, 10 Dec 2020 22:53:45 GMT
68+
- Tue, 22 Dec 2020 18:29:13 GMT
6969
ms-cv:
70-
- LUZClOYgLkSQl86bl6mH5A.0
70+
- bD8oBIuNQEWXEaluFwupbA.0
7171
strict-transport-security:
7272
- max-age=2592000
7373
x-processing-time:
74-
- 760ms
74+
- 764ms
7575
status:
7676
code: 204
7777
message: No Content
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- application/json
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
Content-Length:
12+
- '0'
13+
User-Agent:
14+
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
15+
method: POST
16+
uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2020-07-20-preview2
17+
response:
18+
body:
19+
string: '{"id": "sanitized"}'
20+
headers:
21+
api-supported-versions:
22+
- 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2
23+
content-type:
24+
- application/json; charset=utf-8
25+
date:
26+
- Tue, 22 Dec 2020 18:30:23 GMT
27+
ms-cv:
28+
- eSMH8ZATxUWO5OamG49Wdg.0
29+
strict-transport-security:
30+
- max-age=2592000
31+
transfer-encoding:
32+
- chunked
33+
x-processing-time:
34+
- 811ms
35+
status:
36+
code: 200
37+
message: OK
38+
- request:
39+
body: null
40+
headers:
41+
Accept:
42+
- '*/*'
43+
Accept-Encoding:
44+
- gzip, deflate
45+
Connection:
46+
- keep-alive
47+
Content-Length:
48+
- '0'
49+
User-Agent:
50+
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
51+
method: DELETE
52+
uri: https://communicationegrcrs.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2
53+
response:
54+
body:
55+
string: ''
56+
headers:
57+
api-supported-versions:
58+
- 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2
59+
date:
60+
- Tue, 22 Dec 2020 18:30:24 GMT
61+
ms-cv:
62+
- 91lJNqPMP0+hZnY0ay0tXA.0
63+
strict-transport-security:
64+
- max-age=2592000
65+
x-processing-time:
66+
- 741ms
67+
status:
68+
code: 204
69+
message: No Content
70+
version: 1

sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_issue_token.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interactions:
1111
Content-Length:
1212
- '0'
1313
Date:
14-
- Thu, 10 Dec 2020 22:54:54 GMT
14+
- Tue, 22 Dec 2020 18:31:34 GMT
1515
User-Agent:
1616
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
1717
x-ms-return-client-request-id:
@@ -27,15 +27,15 @@ interactions:
2727
content-type:
2828
- application/json; charset=utf-8
2929
date:
30-
- Thu, 10 Dec 2020 22:54:54 GMT
30+
- Tue, 22 Dec 2020 18:31:32 GMT
3131
ms-cv:
32-
- 4ddtj5VSuUSfygOLzzMjUw.0
32+
- OXm+S4D9ak+t0Y4jKA3bFA.0
3333
strict-transport-security:
3434
- max-age=2592000
3535
transfer-encoding:
3636
- chunked
3737
x-processing-time:
38-
- 23ms
38+
- 24ms
3939
status:
4040
code: 200
4141
message: OK
@@ -53,7 +53,7 @@ interactions:
5353
Content-Type:
5454
- application/json
5555
Date:
56-
- Thu, 10 Dec 2020 22:54:55 GMT
56+
- Tue, 22 Dec 2020 18:31:34 GMT
5757
User-Agent:
5858
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
5959
x-ms-return-client-request-id:
@@ -62,22 +62,22 @@ interactions:
6262
uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2
6363
response:
6464
body:
65-
string: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-11T22:54:54.5367532+00:00"}'
65+
string: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-23T18:31:32.3009076+00:00"}'
6666
headers:
6767
api-supported-versions:
6868
- 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2
6969
content-type:
7070
- application/json; charset=utf-8
7171
date:
72-
- Thu, 10 Dec 2020 22:54:54 GMT
72+
- Tue, 22 Dec 2020 18:31:32 GMT
7373
ms-cv:
74-
- /ARVDCNNC0SiBNuTR5/e+w.0
74+
- EArcgkwtPkCU38ZbLjwJEQ.0
7575
strict-transport-security:
7676
- max-age=2592000
7777
transfer-encoding:
7878
- chunked
7979
x-processing-time:
80-
- 31ms
80+
- 24ms
8181
status:
8282
code: 200
8383
message: OK
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- application/json
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
Content-Length:
12+
- '0'
13+
User-Agent:
14+
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
15+
method: POST
16+
uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2020-07-20-preview2
17+
response:
18+
body:
19+
string: '{"id": "sanitized"}'
20+
headers:
21+
api-supported-versions:
22+
- 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2
23+
content-type:
24+
- application/json; charset=utf-8
25+
date:
26+
- Tue, 22 Dec 2020 18:32:41 GMT
27+
ms-cv:
28+
- NcQPodkL5UOzC+AtKJcXvw.0
29+
strict-transport-security:
30+
- max-age=2592000
31+
transfer-encoding:
32+
- chunked
33+
x-processing-time:
34+
- 501ms
35+
status:
36+
code: 200
37+
message: OK
38+
- request:
39+
body: '{"scopes": ["chat"]}'
40+
headers:
41+
Accept:
42+
- application/json
43+
Accept-Encoding:
44+
- gzip, deflate
45+
Connection:
46+
- keep-alive
47+
Content-Length:
48+
- '20'
49+
Content-Type:
50+
- application/json
51+
User-Agent:
52+
- azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
53+
method: POST
54+
uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2
55+
response:
56+
body:
57+
string: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-23T18:32:41.3736569+00:00"}'
58+
headers:
59+
api-supported-versions:
60+
- 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2
61+
content-type:
62+
- application/json; charset=utf-8
63+
date:
64+
- Tue, 22 Dec 2020 18:32:41 GMT
65+
ms-cv:
66+
- W4rjQkxkvUSQqyJk5dUwCA.0
67+
strict-transport-security:
68+
- max-age=2592000
69+
transfer-encoding:
70+
- chunked
71+
x-processing-time:
72+
- 27ms
73+
status:
74+
code: 200
75+
message: OK
76+
version: 1

0 commit comments

Comments
 (0)