diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_create_user.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_create_user.yaml deleted file mode 100644 index c2bc1d2d7dc8..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_create_user.yaml +++ /dev/null @@ -1,42 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Tue, 22 Dec 2020 18:26:56 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:26:55 GMT - ms-cv: - - 4whAoum970WIzePHLz1Ujg.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 18ms - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml deleted file mode 100644 index f159cc5d3c7c..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml +++ /dev/null @@ -1,38 +0,0 @@ -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:28:04 GMT - ms-cv: - - /4JsXqUuEkmQ1v304iaBTw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 635ms - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_delete_user.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_delete_user.yaml deleted file mode 100644 index 392431b12f89..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_delete_user.yaml +++ /dev/null @@ -1,78 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Tue, 22 Dec 2020 18:29:13 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:29:12 GMT - ms-cv: - - UzbbWyNM6Ee4hx1Ym7MwSA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 19ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Tue, 22 Dec 2020 18:29:14 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:29:13 GMT - ms-cv: - - bD8oBIuNQEWXEaluFwupbA.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 764ms - status: - code: 204 - message: No Content -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml deleted file mode 100644 index e1b92837214b..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml +++ /dev/null @@ -1,70 +0,0 @@ -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 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_issue_token.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_issue_token.yaml deleted file mode 100644 index 76d30c8ff3e6..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_issue_token.yaml +++ /dev/null @@ -1,84 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Tue, 22 Dec 2020 18:31:34 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:31:32 GMT - ms-cv: - - OXm+S4D9ak+t0Y4jKA3bFA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 24ms - 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 - Date: - - Tue, 22 Dec 2020 18:31:34 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:31:32.3009076+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:31:32 GMT - ms-cv: - - EArcgkwtPkCU38ZbLjwJEQ.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 24ms - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_issue_token_from_managed_identity.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_issue_token_from_managed_identity.yaml deleted file mode 100644 index 879ddee12d3c..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_issue_token_from_managed_identity.yaml +++ /dev/null @@ -1,76 +0,0 @@ -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 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml deleted file mode 100644 index 5e79664fa87f..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml +++ /dev/null @@ -1,122 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Tue, 22 Dec 2020 18:34:17 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:34:16 GMT - ms-cv: - - ZDSP6Prb6UGYOTBLvb6AdQ.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 23ms - 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 - Date: - - Tue, 22 Dec 2020 18:34:18 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:34:15.7537392+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:34:16 GMT - ms-cv: - - Hmv1R+jifUSsezIU2yJU8Q.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 31ms - status: - code: 200 - message: OK -- request: - body: '{}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/merge-patch+json - Date: - - Tue, 22 Dec 2020 18:34:18 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - method: PATCH - 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:34:16 GMT - ms-cv: - - vwznKj2MY0qO9HTJ9YWIRw.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 11ms - status: - code: 204 - message: No Content -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml deleted file mode 100644 index 853de6129c9d..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml +++ /dev/null @@ -1,110 +0,0 @@ -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:35:27 GMT - ms-cv: - - QmngflWD+EOVXH7i/FS+iw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 792ms - 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:35:27.28321+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:35:27 GMT - ms-cv: - - PRIzOxRVQkycMUEl6WNjHw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 30ms - status: - code: 200 - message: OK -- request: - body: '{}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/merge-patch+json - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: PATCH - 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:35:27 GMT - ms-cv: - - mUk2cNSJI0e/Nz7J7yCGYg.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 11ms - status: - code: 204 - message: No Content -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_create_user.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_create_user.yaml deleted file mode 100644 index 744fbd017292..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_create_user.yaml +++ /dev/null @@ -1,30 +0,0 @@ -interactions: -- request: - body: '' - headers: - Accept: - - application/json - Date: - - Tue, 22 Dec 2020 18:48:56 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:48:54 GMT - ms-cv: vfIkgQk+J0OWSV4P3J1i0w.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 22ms - status: - code: 200 - message: OK - url: https://communicationtrnhzmurqrr.communication.azure.com/identities?api-version=2020-07-20-preview2 -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml deleted file mode 100644 index 883eb09da417..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml +++ /dev/null @@ -1,26 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - 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?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:50:04 GMT - ms-cv: fj3guox5CUSvTCDG5gI0YA.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 534ms - status: - code: 200 - message: OK - url: https://communicationr7rdwwqs74n.communication.azure.com/identities?api-version=2020-07-20-preview2 -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml deleted file mode 100644 index 46f6bc7da32e..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml +++ /dev/null @@ -1,54 +0,0 @@ -interactions: -- request: - body: '' - headers: - Accept: - - application/json - Date: - - Tue, 22 Dec 2020 18:51:13 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:51:12 GMT - ms-cv: dHk7/E5BhUSf+g3Bkg94YQ.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 22ms - status: - code: 200 - message: OK - url: https://communication42hz4pfbosr.communication.azure.com/identities?api-version=2020-07-20-preview2 -- request: - body: '' - headers: - Date: - - Tue, 22 Dec 2020 18:51:14 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:51:12 GMT - ms-cv: 3DnY9x3jNUGrGnsi3LP0SA.0 - strict-transport-security: max-age=2592000 - x-processing-time: 440ms - status: - code: 204 - message: No Content - url: https://communication42hz4pfbosr.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml deleted file mode 100644 index 3d5253742e18..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml +++ /dev/null @@ -1,46 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - 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?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:52:27 GMT - ms-cv: ww9tz7CpG0SXqqYPyV70Cw.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 192ms - status: - code: 200 - message: OK - url: https://communicationrscjfarclwr.communication.azure.com/identities?api-version=2020-07-20-preview2 -- request: - body: null - headers: - 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:52:28 GMT - ms-cv: baDrTbu3H0qpWj2TJSno0A.0 - strict-transport-security: max-age=2592000 - x-processing-time: 864ms - status: - code: 204 - message: No Content - url: https://communicationrscjfarclwr.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_issue_token.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_issue_token.yaml deleted file mode 100644 index fce3ec17e7e1..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_issue_token.yaml +++ /dev/null @@ -1,62 +0,0 @@ -interactions: -- request: - body: '' - headers: - Accept: - - application/json - Date: - - Tue, 22 Dec 2020 18:53:37 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:53:36 GMT - ms-cv: Agl32miSq0CTEladXG7lbw.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 20ms - status: - code: 200 - message: OK - url: https://communicatione77tfh7y2ht.communication.azure.com/identities?api-version=2020-07-20-preview2 -- request: - body: '{"scopes": ["chat"]}' - headers: - Accept: - - application/json - Content-Length: - - '20' - Content-Type: - - application/json - Date: - - Tue, 22 Dec 2020 18:53:38 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:53:35.7585148+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:53:36 GMT - ms-cv: P3rSrWhwykmJcOW+Yb8Q2w.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 26ms - status: - code: 200 - message: OK - url: https://communicatione77tfh7y2ht.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_issue_token_from_managed_identity.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_issue_token_from_managed_identity.yaml deleted file mode 100644 index 44a889e13df3..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_issue_token_from_managed_identity.yaml +++ /dev/null @@ -1,54 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - 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?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:54:45 GMT - ms-cv: UywF8dbxrkyYXGTozRnuIw.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 773ms - status: - code: 200 - message: OK - url: https://communicationztg2acjbipc.communication.azure.com/identities?api-version=2020-07-20-preview2 -- request: - body: '{"scopes": ["chat"]}' - headers: - Accept: - - application/json - 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:54:45.1115885+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:54:45 GMT - ms-cv: ywaIOOtf9EiQs6pibQmCwg.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 25ms - status: - code: 200 - message: OK - url: https://communicationztg2acjbipc.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml deleted file mode 100644 index cefb985a000f..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml +++ /dev/null @@ -1,90 +0,0 @@ -interactions: -- request: - body: '' - headers: - Accept: - - application/json - Date: - - Tue, 22 Dec 2020 18:55:56 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:55:55 GMT - ms-cv: M9b8kGAz8UGwsoZe2mFLCA.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 29ms - status: - code: 200 - message: OK - url: https://communicationngn6p2kywhg.communication.azure.com/identities?api-version=2020-07-20-preview2 -- request: - body: '{"scopes": ["chat"]}' - headers: - Accept: - - application/json - Content-Length: - - '20' - Content-Type: - - application/json - Date: - - Tue, 22 Dec 2020 18:55:57 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - 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:55:54.788117+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:55:55 GMT - ms-cv: MBCUlMoRBECvCLmV00eWXw.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 27ms - status: - code: 200 - message: OK - url: https://communicationngn6p2kywhg.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 -- request: - body: '{}' - headers: - Content-Length: - - '2' - Content-Type: - - application/merge-patch+json - Date: - - Tue, 22 Dec 2020 18:55:57 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - method: PATCH - 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:55:55 GMT - ms-cv: MVgoSrOVSkiU0c+teqMDZQ.0 - strict-transport-security: max-age=2592000 - x-processing-time: 10ms - status: - code: 204 - message: No Content - url: https://communicationngn6p2kywhg.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml deleted file mode 100644 index 23b4c57c9632..000000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml +++ /dev/null @@ -1,78 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - 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?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:57:03 GMT - ms-cv: a9v8/cRgN0uyuQQUguwkGA.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 195ms - status: - code: 200 - message: OK - url: https://communicationxheui257vce.communication.azure.com/identities?api-version=2020-07-20-preview2 -- request: - body: '{"scopes": ["chat"]}' - headers: - Accept: - - application/json - 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:57:03.4428768+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:57:03 GMT - ms-cv: Oc9n/N0oA0mLVBlk8UaTpw.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 24ms - status: - code: 200 - message: OK - url: https://communicationxheui257vce.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 -- request: - body: '{}' - headers: - Content-Length: - - '2' - Content-Type: - - application/merge-patch+json - User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: PATCH - 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:57:03 GMT - ms-cv: lBOoIDU5lUe2vbpjz5+Gkg.0 - strict-transport-security: max-age=2592000 - x-processing-time: 11ms - status: - code: 204 - message: No Content - url: https://communicationxheui257vce.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/test_communication_identity_client.py b/sdk/communication/azure-communication-administration/tests/test_communication_identity_client.py deleted file mode 100644 index 9104aae5f915..000000000000 --- a/sdk/communication/azure-communication-administration/tests/test_communication_identity_client.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- -import pytest -from azure.communication.administration import CommunicationIdentityClient -from azure.core.credentials import AccessToken -from _shared.helper import URIIdentityReplacer -from _shared.testcase import ( - CommunicationTestCase, - BodyReplacerProcessor -) -from devtools_testutils import ResourceGroupPreparer -from _shared.communication_service_preparer import CommunicationServicePreparer -from azure.identity import DefaultAzureCredential -from azure.communication.administration._shared.utils import parse_connection_str - -class FakeTokenCredential(object): - def __init__(self): - self.token = AccessToken("Fake Token", 0) - - def get_token(self, *args): - return self.token -class CommunicationIdentityClientTest(CommunicationTestCase): - def setUp(self): - super(CommunicationIdentityClientTest, self).setUp() - self.recording_processors.extend([ - BodyReplacerProcessor(keys=["id", "token"]), - URIIdentityReplacer()]) - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - def test_create_user_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) - from devtools_testutils import is_live - if not is_live(): - credential = FakeTokenCredential() - else: - credential = DefaultAzureCredential() - identity_client = CommunicationIdentityClient(endpoint, credential) - user = identity_client.create_user() - - assert user.identifier is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - def test_create_user(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string( - connection_string) - user = identity_client.create_user() - - assert user.identifier is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - def test_issue_token_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) - from devtools_testutils import is_live - if not is_live(): - credential = FakeTokenCredential() - else: - credential = DefaultAzureCredential() - identity_client = CommunicationIdentityClient(endpoint, credential) - user = identity_client.create_user() - - token_response = identity_client.issue_token(user, scopes=["chat"]) - - assert user.identifier is not None - assert token_response.token is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - def test_issue_token(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string( - connection_string) - user = identity_client.create_user() - - token_response = identity_client.issue_token(user, scopes=["chat"]) - - assert user.identifier is not None - assert token_response.token is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - def test_revoke_tokens_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) - from devtools_testutils import is_live - if not is_live(): - credential = FakeTokenCredential() - else: - credential = DefaultAzureCredential() - identity_client = CommunicationIdentityClient(endpoint, credential) - user = identity_client.create_user() - - token_response = identity_client.issue_token(user, scopes=["chat"]) - identity_client.revoke_tokens(user) - - assert user.identifier is not None - assert token_response.token is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - def test_revoke_tokens(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string( - connection_string) - user = identity_client.create_user() - - token_response = identity_client.issue_token(user, scopes=["chat"]) - identity_client.revoke_tokens(user) - - assert user.identifier is not None - assert token_response.token is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - def test_delete_user_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) - from devtools_testutils import is_live - if not is_live(): - credential = FakeTokenCredential() - else: - credential = DefaultAzureCredential() - identity_client = CommunicationIdentityClient(endpoint, credential) - user = identity_client.create_user() - - identity_client.delete_user(user) - - assert user.identifier is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - def test_delete_user(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string( - connection_string) - user = identity_client.create_user() - - identity_client.delete_user(user) - - assert user.identifier is not None diff --git a/sdk/communication/azure-communication-administration/tests/test_communication_identity_client_async.py b/sdk/communication/azure-communication-administration/tests/test_communication_identity_client_async.py deleted file mode 100644 index a01f92c618ed..000000000000 --- a/sdk/communication/azure-communication-administration/tests/test_communication_identity_client_async.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- -import pytest -from azure.core.credentials import AccessToken -from azure.communication.administration.aio import CommunicationIdentityClient -from azure.communication.administration._shared.utils import parse_connection_str -from azure_devtools.scenario_tests import RecordingProcessor -from devtools_testutils import ResourceGroupPreparer -from _shared.helper import URIIdentityReplacer -from _shared.asynctestcase import AsyncCommunicationTestCase -from _shared.testcase import BodyReplacerProcessor -from _shared.communication_service_preparer import CommunicationServicePreparer -from azure.identity import DefaultAzureCredential - -class FakeTokenCredential(object): - def __init__(self): - self.token = AccessToken("Fake Token", 0) - - def get_token(self, *args): - return self.token -class CommunicationIdentityClientTestAsync(AsyncCommunicationTestCase): - def setUp(self): - super(CommunicationIdentityClientTestAsync, self).setUp() - self.recording_processors.extend([ - BodyReplacerProcessor(keys=["id", "token"]), - URIIdentityReplacer()]) - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - async def test_create_user_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) - from devtools_testutils import is_live - if not is_live(): - credential = FakeTokenCredential() - else: - credential = DefaultAzureCredential() - identity_client = CommunicationIdentityClient(endpoint, credential) - async with identity_client: - user = await identity_client.create_user() - - assert user.identifier is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - async def test_create_user(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string(connection_string) - async with identity_client: - user = await identity_client.create_user() - - assert user.identifier is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - async def test_issue_token_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) - from devtools_testutils import is_live - if not is_live(): - credential = FakeTokenCredential() - else: - credential = DefaultAzureCredential() - identity_client = CommunicationIdentityClient(endpoint, credential) - async with identity_client: - user = await identity_client.create_user() - token_response = await identity_client.issue_token(user, scopes=["chat"]) - - assert user.identifier is not None - assert token_response.token is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - async def test_issue_token(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string(connection_string) - async with identity_client: - user = await identity_client.create_user() - token_response = await identity_client.issue_token(user, scopes=["chat"]) - - assert user.identifier is not None - assert token_response.token is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - async def test_revoke_tokens_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) - from devtools_testutils import is_live - if not is_live(): - credential = FakeTokenCredential() - else: - credential = DefaultAzureCredential() - identity_client = CommunicationIdentityClient(endpoint, credential) - async with identity_client: - user = await identity_client.create_user() - token_response = await identity_client.issue_token(user, scopes=["chat"]) - await identity_client.revoke_tokens(user) - - assert user.identifier is not None - assert token_response.token is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - async def test_revoke_tokens(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string(connection_string) - async with identity_client: - user = await identity_client.create_user() - token_response = await identity_client.issue_token(user, scopes=["chat"]) - await identity_client.revoke_tokens(user) - - assert user.identifier is not None - assert token_response.token is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - async def test_delete_user_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) - from devtools_testutils import is_live - if not is_live(): - credential = FakeTokenCredential() - else: - credential = DefaultAzureCredential() - identity_client = CommunicationIdentityClient(endpoint, credential) - async with identity_client: - user = await identity_client.create_user() - await identity_client.delete_user(user) - - assert user.identifier is not None - - @ResourceGroupPreparer(random_name_enabled=True) - @CommunicationServicePreparer() - async def test_delete_user(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string(connection_string) - async with identity_client: - user = await identity_client.create_user() - await identity_client.delete_user(user) - - assert user.identifier is not None