Skip to content

Commit

Permalink
[Communication]: Added identity exception tests (#18191)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsundaralingam authored Apr 21, 2021
1 parent 679b42e commit 6ffc542
Show file tree
Hide file tree
Showing 24 changed files with 452 additions and 129 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/json
Date:
- Tue, 13 Apr 2021 17:54:24 GMT
- Wed, 21 Apr 2021 01:03:37 GMT
User-Agent:
- azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
x-ms-return-client-request-id:
Expand All @@ -29,17 +29,17 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 13 Apr 2021 17:54:24 GMT
- Wed, 21 Apr 2021 01:03:35 GMT
ms-cv:
- UEGC+xqwQkqRRfXm5Md24A.0
- MAFpWlOWZkOwGTjcoqQs/A.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
transfer-encoding:
- chunked
x-processing-time:
- 12ms
- 13ms
status:
code: 201
message: Created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/json
Date:
- Tue, 13 Apr 2021 17:54:24 GMT
- Wed, 21 Apr 2021 01:03:37 GMT
User-Agent:
- azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
x-ms-return-client-request-id:
Expand All @@ -23,24 +23,24 @@ interactions:
response:
body:
string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized",
"expiresOn": "2021-04-14T17:54:25.0058231+00:00"}}'
"expiresOn": "2021-04-22T01:03:36.4974103+00:00"}}'
headers:
api-supported-versions:
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07
content-type:
- application/json; charset=utf-8
date:
- Tue, 13 Apr 2021 17:54:25 GMT
- Wed, 21 Apr 2021 01:03:37 GMT
ms-cv:
- I9ZS0qxvQEKYO/S5ErFh1w.0
- 8h5FkbC290CXIiTUXJXG1A.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
transfer-encoding:
- chunked
x-processing-time:
- 215ms
- 460ms
status:
code: 201
message: Created
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
interactions:
- request:
body: '{}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '2'
Content-Type:
- application/json
Date:
- Wed, 21 Apr 2021 01:03:38 GMT
User-Agent:
- azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
x-ms-return-client-request-id:
- 'true'
method: POST
uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07
response:
body:
string: '{"identity": {"id": "sanitized"}}'
headers:
api-supported-versions:
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07
content-type:
- application/json; charset=utf-8
date:
- Wed, 21 Apr 2021 01:03:37 GMT
ms-cv:
- vm3Y63QS2E2q02bPpNW/pw.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
transfer-encoding:
- chunked
x-processing-time:
- 13ms
status:
code: 201
message: Created
version: 1
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 13 Apr 2021 17:54:27 GMT
- Wed, 21 Apr 2021 01:03:38 GMT
ms-cv:
- Z2JdPGt9IEegXVCKKHjiJg.0
- /0cdgYWzkUSJN8NGVXbzww.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
transfer-encoding:
- chunked
x-processing-time:
- 162ms
- 12ms
status:
code: 201
message: Created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/json
Date:
- Tue, 13 Apr 2021 17:54:26 GMT
- Wed, 21 Apr 2021 01:03:39 GMT
User-Agent:
- azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
x-ms-return-client-request-id:
Expand All @@ -29,17 +29,17 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 13 Apr 2021 17:54:27 GMT
- Wed, 21 Apr 2021 01:03:38 GMT
ms-cv:
- NpGxr/VCv0i3/F8p8B/PEw.0
- v1sp8VZ12kmfHIv4KPQL/g.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
transfer-encoding:
- chunked
x-processing-time:
- 16ms
- 11ms
status:
code: 201
message: Created
Expand All @@ -55,7 +55,7 @@ interactions:
Content-Length:
- '0'
Date:
- Tue, 13 Apr 2021 17:54:27 GMT
- Wed, 21 Apr 2021 01:03:39 GMT
User-Agent:
- azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
x-ms-return-client-request-id:
Expand All @@ -69,15 +69,15 @@ interactions:
api-supported-versions:
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07
date:
- Tue, 13 Apr 2021 17:54:27 GMT
- Wed, 21 Apr 2021 01:03:39 GMT
ms-cv:
- zRztRbFrrEe9RLXIARPN7w.0
- pd0NJk+DuE+kE0OxofV5oA.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
x-processing-time:
- 583ms
- 556ms
status:
code: 204
message: No Content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 13 Apr 2021 17:54:29 GMT
- Wed, 21 Apr 2021 01:03:41 GMT
ms-cv:
- 3qpzL2TAgU2LX4OLE/ZWKQ.0
- i1V3NBItW0+3BVjUvRgbMw.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
transfer-encoding:
- chunked
x-processing-time:
- 91ms
- 192ms
status:
code: 201
message: Created
Expand All @@ -61,15 +61,15 @@ interactions:
api-supported-versions:
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07
date:
- Tue, 13 Apr 2021 17:54:30 GMT
- Wed, 21 Apr 2021 01:03:42 GMT
ms-cv:
- 04FDSY1mSkeU92Los0y+zA.0
- LTpN0ElayE2anISXsYUn0A.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
x-processing-time:
- 591ms
- 559ms
status:
code: 204
message: No Content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/json
Date:
- Tue, 13 Apr 2021 17:54:29 GMT
- Wed, 21 Apr 2021 01:03:43 GMT
User-Agent:
- azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
x-ms-return-client-request-id:
Expand All @@ -29,17 +29,17 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 13 Apr 2021 17:54:30 GMT
- Wed, 21 Apr 2021 01:03:42 GMT
ms-cv:
- ESJNBGhGTEWm2nfyGmja5g.0
- qRo3jp67IUCPfCZMWCCiOg.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
transfer-encoding:
- chunked
x-processing-time:
- 12ms
- 10ms
status:
code: 201
message: Created
Expand All @@ -57,7 +57,7 @@ interactions:
Content-Type:
- application/json
Date:
- Tue, 13 Apr 2021 17:54:29 GMT
- Wed, 21 Apr 2021 01:03:44 GMT
User-Agent:
- azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
x-ms-return-client-request-id:
Expand All @@ -66,24 +66,24 @@ interactions:
uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07
response:
body:
string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:54:29.7152371+00:00"}'
string: '{"token": "sanitized", "expiresOn": "2021-04-22T01:03:42.4880688+00:00"}'
headers:
api-supported-versions:
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07
content-type:
- application/json; charset=utf-8
date:
- Tue, 13 Apr 2021 17:54:30 GMT
- Wed, 21 Apr 2021 01:03:42 GMT
ms-cv:
- 8x1vXQTCY0qKMkC4Z/KGFg.0
- f/in6N3GcUGnAXhB0syCrw.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
transfer-encoding:
- chunked
x-processing-time:
- 28ms
- 149ms
status:
code: 200
message: OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 13 Apr 2021 17:54:32 GMT
- Wed, 21 Apr 2021 01:03:44 GMT
ms-cv:
- DkbbkXtjlkOEK0yQgPG8ZA.0
- /8iK7bJGjUi0wHSNAwuUvg.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
transfer-encoding:
- chunked
x-processing-time:
- 11ms
- 63ms
status:
code: 201
message: Created
Expand All @@ -58,24 +58,24 @@ interactions:
uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07
response:
body:
string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:54:32.0766183+00:00"}'
string: '{"token": "sanitized", "expiresOn": "2021-04-22T01:03:43.9098436+00:00"}'
headers:
api-supported-versions:
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07
content-type:
- application/json; charset=utf-8
date:
- Tue, 13 Apr 2021 17:54:33 GMT
- Wed, 21 Apr 2021 01:03:44 GMT
ms-cv:
- ZOyy1+vBp0eAegnujOspGA.0
- lFmF0NQQv0mEcihxGfvDNA.0
request-context:
- appId=
strict-transport-security:
- max-age=2592000
transfer-encoding:
- chunked
x-processing-time:
- 135ms
- 152ms
status:
code: 200
message: OK
Expand Down
Loading

0 comments on commit 6ffc542

Please sign in to comment.