Skip to content

Commit 1120546

Browse files
Fix test failures caused by Communication mgmt tests (Azure#15791)
* Add azure-identity dependency * Packaging update of azure-mgmt-communication * Generate resource name for tests * Update test records for Communication mgmt * Update links in Communication mgmt README * Disable auto updating for Communication mgmt * Fix another README link Co-authored-by: Azure SDK Bot <adxpysdk@microsoft.com>
1 parent a2176eb commit 1120546

11 files changed

+153
-145
lines changed

sdk/communication/azure-mgmt-communication/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ For a more complete view of Azure libraries, see the [azure sdk python release](
77

88
# Usage
99

10-
For code examples, see [Communication Management](https://docs.microsoft.com/python/api/overview/azure/)
11-
on docs.microsoft.com.
10+
To learn how to use the management libraries, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt).
11+
12+
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/).
13+
For docs and references for this service, see [Azure Communication Services](https://docs.microsoft.com/azure/communication-services/) on docs.microsoft.com.
14+
15+
Code samples for this management package can be found on GitHub at [Getting started - Managing Azure Communication Services using Azure Python SDK](https://github.com/Azure-Samples/azure-samples-python-management/tree/master/samples/communication).
16+
Additional GitHub samples using Azure Communication Services are listed at [Communication Samples](https://github.com/Azure/communication#samples).
1217

1318

1419
# Provide Feedback
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
-e ../../../tools/azure-sdk-tools
22
-e ../../notificationhubs/azure-mgmt-notificationhubs
3+
-e ../../identity/azure-identity

sdk/communication/azure-mgmt-communication/sdk_packaging.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ package_doc_id = ""
66
is_stable = false
77
is_arm = true
88
need_msrestazure = true
9+
auto_update = false

sdk/communication/azure-mgmt-communication/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
author_email='azpysdkhelp@microsoft.com',
6262
url='https://github.com/Azure/azure-sdk-for-python',
6363
classifiers=[
64-
"Development Status :: 4 - Beta",
64+
'Development Status :: 4 - Beta',
6565
'Programming Language :: Python',
6666
'Programming Language :: Python :: 2',
6767
'Programming Language :: Python :: 2.7',
@@ -70,6 +70,7 @@
7070
'Programming Language :: Python :: 3.6',
7171
'Programming Language :: Python :: 3.7',
7272
'Programming Language :: Python :: 3.8',
73+
'Programming Language :: Python :: 3.9',
7374
'License :: OSI Approved :: MIT License',
7475
],
7576
zip_safe=False,
@@ -81,8 +82,8 @@
8182
]),
8283
install_requires=[
8384
'msrest>=0.5.0',
85+
'msrestazure>=0.4.32,<2.0.0',
8486
'azure-common~=1.1',
85-
'azure-mgmt-core>=1.2.0,<2.0.0',
8687
],
8788
extras_require={
8889
":python_version<'3.0'": ['azure-mgmt-nspkg'],

sdk/communication/azure-mgmt-communication/tests/recordings/test_mgmt_communication.test_communication_crud.yaml

Lines changed: 43 additions & 43 deletions
Large diffs are not rendered by default.

sdk/communication/azure-mgmt-communication/tests/recordings/test_mgmt_communication_list_resources.test_communication_list_by_rg.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ interactions:
1515
User-Agent:
1616
- azsdk-python-mgmt-communication/1.0.0b5 Python/3.8.3 (Windows-10-10.0.21264-SP0)
1717
method: PUT
18-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rg?api-version=2020-08-20-preview
18+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rgd3a91c4f?api-version=2020-08-20-preview
1919
response:
2020
body:
21-
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rg","name":"test-resource-list-by-rg","type":"Microsoft.Communication/communicationServices","location":"global","properties":{"provisioningState":"Accepted","hostName":"test-resource-list-by-rg.communication.azure.com","immutableResourceId":"369ed78f-8fde-45c5-b8cf-a873e6f737dd","dataLocation":"UnitedStates"}}'
21+
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rgd3a91c4f","name":"test-resource-list-by-rgd3a91c4f","type":"Microsoft.Communication/communicationServices","location":"global","properties":{"provisioningState":"Accepted","hostName":"test-resource-list-by-rgd3a91c4f.communication.azure.com","immutableResourceId":"e6c1d48e-5265-4c58-9823-19c5dd6c3303","dataLocation":"UnitedStates"}}'
2222
headers:
2323
azure-asyncoperation:
24-
- https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/b4752e63-e594-4f50-ab27-c9f0bb2c790a?api-version=2020-08-20-preview
24+
- https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/14313a6a-8461-418f-bd0f-f8e2dc8cebf0?api-version=2020-08-20-preview
2525
cache-control:
2626
- no-cache
2727
content-length:
28-
- '573'
28+
- '565'
2929
content-type:
3030
- application/json; charset=utf-8
3131
date:
32-
- Wed, 02 Dec 2020 18:29:38 GMT
32+
- Tue, 15 Dec 2020 00:43:14 GMT
3333
etag:
34-
- '"240e1382-0000-0700-0000-5fc7dd120000"'
34+
- '"50006af4-0000-0700-0000-5fd806a20000"'
3535
expires:
3636
- '-1'
3737
location:
38-
- https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/b4752e63-e594-4f50-ab27-c9f0bb2c790a?api-version=2020-08-20-preview
38+
- https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/14313a6a-8461-418f-bd0f-f8e2dc8cebf0?api-version=2020-08-20-preview
3939
pragma:
4040
- no-cache
4141
server:
@@ -61,21 +61,21 @@ interactions:
6161
User-Agent:
6262
- azsdk-python-mgmt-communication/1.0.0b5 Python/3.8.3 (Windows-10-10.0.21264-SP0)
6363
method: GET
64-
uri: https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/b4752e63-e594-4f50-ab27-c9f0bb2c790a?api-version=2020-08-20-preview
64+
uri: https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/14313a6a-8461-418f-bd0f-f8e2dc8cebf0?api-version=2020-08-20-preview
6565
response:
6666
body:
67-
string: '{"id":"/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/b4752e63-e594-4f50-ab27-c9f0bb2c790a","name":"b4752e63-e594-4f50-ab27-c9f0bb2c790a","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rg","status":"Succeeded","startTime":"2020-12-02T18:29:38.0048921Z","endTime":"2020-12-02T18:29:39.6161013Z","percentComplete":100.0,"properties":null}'
67+
string: '{"id":"/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/14313a6a-8461-418f-bd0f-f8e2dc8cebf0","name":"14313a6a-8461-418f-bd0f-f8e2dc8cebf0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rgd3a91c4f","status":"Succeeded","startTime":"2020-12-15T00:43:14.3302233Z","endTime":"2020-12-15T00:43:15.6518082Z","percentComplete":100.0,"properties":null}'
6868
headers:
6969
cache-control:
7070
- no-cache
7171
content-length:
72-
- '565'
72+
- '557'
7373
content-type:
7474
- application/json; charset=utf-8
7575
date:
76-
- Wed, 02 Dec 2020 18:30:08 GMT
76+
- Tue, 15 Dec 2020 00:43:44 GMT
7777
etag:
78-
- '"2b009ee8-0000-0800-0000-5fc7dd130000"'
78+
- '"e20b75a0-0000-0800-0000-5fd806a30000"'
7979
expires:
8080
- '-1'
8181
pragma:
@@ -105,21 +105,21 @@ interactions:
105105
User-Agent:
106106
- azsdk-python-mgmt-communication/1.0.0b5 Python/3.8.3 (Windows-10-10.0.21264-SP0)
107107
method: GET
108-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rg?api-version=2020-08-20-preview
108+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rgd3a91c4f?api-version=2020-08-20-preview
109109
response:
110110
body:
111-
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rg","name":"test-resource-list-by-rg","type":"Microsoft.Communication/communicationServices","location":"global","properties":{"provisioningState":"Succeeded","hostName":"test-resource-list-by-rg.communication.azure.com","immutableResourceId":"369ed78f-8fde-45c5-b8cf-a873e6f737dd","dataLocation":"UnitedStates"}}'
111+
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rgd3a91c4f","name":"test-resource-list-by-rgd3a91c4f","type":"Microsoft.Communication/communicationServices","location":"global","properties":{"provisioningState":"Succeeded","hostName":"test-resource-list-by-rgd3a91c4f.communication.azure.com","immutableResourceId":"e6c1d48e-5265-4c58-9823-19c5dd6c3303","dataLocation":"UnitedStates"}}'
112112
headers:
113113
cache-control:
114114
- no-cache
115115
content-length:
116-
- '574'
116+
- '566'
117117
content-type:
118118
- application/json; charset=utf-8
119119
date:
120-
- Wed, 02 Dec 2020 18:30:08 GMT
120+
- Tue, 15 Dec 2020 00:43:44 GMT
121121
etag:
122-
- '"240e6c82-0000-0700-0000-5fc7dd130000"'
122+
- '"50007af4-0000-0700-0000-5fd806a30000"'
123123
expires:
124124
- '-1'
125125
pragma:
@@ -152,16 +152,16 @@ interactions:
152152
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices?api-version=2020-08-20-preview
153153
response:
154154
body:
155-
string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rg","name":"test-resource-list-by-rg","type":"Microsoft.Communication/communicationServices","location":"global","properties":{"provisioningState":"Succeeded","hostName":"test-resource-list-by-rg.communication.azure.com","immutableResourceId":"369ed78f-8fde-45c5-b8cf-a873e6f737dd","dataLocation":"UnitedStates"}}]}'
155+
string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_communication_list_resources_test_communication_list_by_rgd3a91c4f/providers/Microsoft.Communication/communicationServices/test-resource-list-by-rgd3a91c4f","name":"test-resource-list-by-rgd3a91c4f","type":"Microsoft.Communication/communicationServices","location":"global","properties":{"provisioningState":"Succeeded","hostName":"test-resource-list-by-rgd3a91c4f.communication.azure.com","immutableResourceId":"e6c1d48e-5265-4c58-9823-19c5dd6c3303","dataLocation":"UnitedStates"}}]}'
156156
headers:
157157
cache-control:
158158
- no-cache
159159
content-length:
160-
- '586'
160+
- '578'
161161
content-type:
162162
- application/json; charset=utf-8
163163
date:
164-
- Wed, 02 Dec 2020 18:30:09 GMT
164+
- Tue, 15 Dec 2020 00:43:45 GMT
165165
expires:
166166
- '-1'
167167
pragma:

0 commit comments

Comments
 (0)