Skip to content

Commit f9672e5

Browse files
committed
Update CallingServer Live Test.
1 parent 95cd52c commit f9672e5

File tree

4 files changed

+36
-39
lines changed

4 files changed

+36
-39
lines changed

sdk/communication/azure-communication-callingserver/tests/recordings/test_live_call_connection_async.test_create_play_cancel_hangup_scenario_async.yaml

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ interactions:
1515
User-Agent:
1616
- azsdk-python-communication-identity/1.0.1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
1717
x-ms-date:
18-
- Sun, 19 Sep 2021 20:24:56 GMT
18+
- Wed, 06 Oct 2021 19:41:50 GMT
1919
x-ms-return-client-request-id:
2020
- 'true'
2121
method: POST
2222
uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07
2323
response:
2424
body:
25-
string: '{"identity":{"id":"8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000c-9f9d-5986-8170-254822001a34"}}'
25+
string: '{"identity":{"id":"8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000c-f702-012d-290c-113a0d001d38"}}'
2626
headers:
2727
api-supported-versions:
2828
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1,
2929
2021-10-31-preview
3030
content-type:
3131
- application/json; charset=utf-8
3232
date:
33-
- Sun, 19 Sep 2021 20:24:56 GMT
33+
- Wed, 06 Oct 2021 19:41:50 GMT
3434
ms-cv:
35-
- aGPosBX/KEW2sq0HQMnYhA.0
35+
- bXw2fsd4Ik2RIFRRQnG/gQ.0
3636
request-context:
3737
- appId=
3838
strict-transport-security:
@@ -42,7 +42,7 @@ interactions:
4242
x-cache:
4343
- CONFIG_NOCACHE
4444
x-processing-time:
45-
- 131ms
45+
- 578ms
4646
status:
4747
code: 201
4848
message: Created
@@ -62,24 +62,24 @@ interactions:
6262
User-Agent:
6363
- azsdk-python-communication-identity/1.0.1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
6464
x-ms-date:
65-
- Sun, 19 Sep 2021 20:24:57 GMT
65+
- Wed, 06 Oct 2021 19:41:51 GMT
6666
x-ms-return-client-request-id:
6767
- 'true'
6868
method: POST
6969
uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07
7070
response:
7171
body:
72-
string: '{"identity":{"id":"8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000c-9f9d-5afd-9406-454822001a09"}}'
72+
string: '{"identity":{"id":"8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000c-f702-0339-28c5-593a0d00112d"}}'
7373
headers:
7474
api-supported-versions:
7575
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1,
7676
2021-10-31-preview
7777
content-type:
7878
- application/json; charset=utf-8
7979
date:
80-
- Sun, 19 Sep 2021 20:24:56 GMT
80+
- Wed, 06 Oct 2021 19:41:51 GMT
8181
ms-cv:
82-
- v+9ovAkI0k2hUsn6UJKaPA.0
82+
- Pn5YHy7HG02m71EMqkyoCQ.0
8383
request-context:
8484
- appId=
8585
strict-transport-security:
@@ -89,7 +89,7 @@ interactions:
8989
x-cache:
9090
- CONFIG_NOCACHE
9191
x-processing-time:
92-
- 138ms
92+
- 45ms
9393
status:
9494
code: 201
9595
message: Created
@@ -107,24 +107,24 @@ interactions:
107107
User-Agent:
108108
- azsdk-python-communication-callingserver/1.0.0b1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
109109
method: POST
110-
uri: https://sanitized.communication.azure.com/calling/callConnections?api-version=2021-09-15-preview
110+
uri: https://sanitized.communication.azure.com/calling/callConnections?api-version=2021-11-15-preview
111111
response:
112112
body:
113-
string: '{"callConnectionId": "421f0b00-d5a3-49d8-a0e3-e172a00d8acb"}'
113+
string: '{"callConnectionId": "ba201300-6a2e-423f-8e47-398a2aac7cff"}'
114114
headers:
115115
content-length: '59'
116116
content-type: application/json; charset=utf-8
117-
date: Sun, 19 Sep 2021 20:24:57 GMT
117+
date: Wed, 06 Oct 2021 19:41:53 GMT
118118
x-cache: CONFIG_NOCACHE
119-
x-microsoft-skype-chain-id: 9dc55f2f-3eb4-4ec2-987b-cc534aa41ce5
119+
x-microsoft-skype-chain-id: 767d1091-a975-410a-a89d-58058fc8483c
120120
status:
121121
code: 201
122122
message: Created
123-
url: https://sanitized.communication.azure.com/calling/callConnections?api-version=2021-09-15-preview
123+
url: https://sanitized.communication.azure.com/calling/callConnections?api-version=2021-11-15-preview
124124
- request:
125125
body: '{"audioFileUri": "https://dummy.ngrok.io/audio/sample-message.wav", "loop":
126126
true, "operationContext": "<azure.communication.callingserver._models.PlayAudioOptions
127-
object at 0x00000165C1053880>", "audioFileId": "63160841-124e-4996-97f8-47dc1bcda982",
127+
object at 0x0000016AA2D850D0>", "audioFileId": "238c60c7-5a2f-4544-8fe2-5a8e1fd9e0ae",
128128
"callbackUri": "sanitized"}'
129129
headers:
130130
Accept:
@@ -136,24 +136,24 @@ interactions:
136136
User-Agent:
137137
- azsdk-python-communication-callingserver/1.0.0b1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
138138
method: POST
139-
uri: https://sanitized.communication.azure.com/calling/callConnections/421f0b00-d5a3-49d8-a0e3-e172a00d8acb/:playAudio?api-version=2021-09-15-preview
139+
uri: https://sanitized.communication.azure.com/calling/callConnections/ba201300-6a2e-423f-8e47-398a2aac7cff/:playAudio?api-version=2021-11-15-preview
140140
response:
141141
body:
142-
string: '{"operationId": "020429d1-0612-431e-ad7c-4a488c90d429", "status": "running",
142+
string: '{"operationId": "5b293ca5-e490-4dbb-99ee-c1410f2f6814", "status": "running",
143143
"operationContext": "<azure.communication.callingserver._models.PlayAudioOptions
144-
object at 0x00000165C1053880>"}'
144+
object at 0x0000016AA2D850D0>"}'
145145
headers:
146146
content-length: '184'
147147
content-type: application/json; charset=utf-8
148-
date: Sun, 19 Sep 2021 20:25:08 GMT
148+
date: Wed, 06 Oct 2021 19:42:05 GMT
149149
x-cache: CONFIG_NOCACHE
150-
x-microsoft-skype-chain-id: 5ef0f954-cf3f-4356-a48c-66e24303418c
150+
x-microsoft-skype-chain-id: c95fc3b8-fdf5-4f2e-8e4e-cdd470638a98
151151
status:
152152
code: 202
153153
message: Accepted
154-
url: https://sanitized.communication.azure.com/calling/callConnections/421f0b00-d5a3-49d8-a0e3-e172a00d8acb/:playAudio?api-version=2021-09-15-preview
154+
url: https://sanitized.communication.azure.com/calling/callConnections/ba201300-6a2e-423f-8e47-398a2aac7cff/:playAudio?api-version=2021-11-15-preview
155155
- request:
156-
body: '{"operationContext": "3044805c-1ea4-43bc-a854-afcae01cdaff"}'
156+
body: '{"operationContext": "c269a56f-58d9-40c4-a062-ce00b2c0946c"}'
157157
headers:
158158
Accept:
159159
- application/json
@@ -164,21 +164,20 @@ interactions:
164164
User-Agent:
165165
- azsdk-python-communication-callingserver/1.0.0b1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
166166
method: POST
167-
uri: https://sanitized.communication.azure.com/calling/callConnections/421f0b00-d5a3-49d8-a0e3-e172a00d8acb/:cancelAllMediaOperations?api-version=2021-09-15-preview
167+
uri: https://sanitized.communication.azure.com/calling/callConnections/ba201300-6a2e-423f-8e47-398a2aac7cff/:cancelAllMediaOperations?api-version=2021-11-15-preview
168168
response:
169169
body:
170-
string: '{"operationId": "8028786d-8325-449f-bc33-cf6772839882", "status": "completed",
171-
"operationContext": "3044805c-1ea4-43bc-a854-afcae01cdaff"}'
170+
string: '{"operationId": "5820d776-edf0-45ba-93cf-09e4725357ff", "status": "completed"}'
172171
headers:
173-
content-length: '133'
172+
content-length: '75'
174173
content-type: application/json; charset=utf-8
175-
date: Sun, 19 Sep 2021 20:25:18 GMT
174+
date: Wed, 06 Oct 2021 19:42:15 GMT
176175
x-cache: CONFIG_NOCACHE
177-
x-microsoft-skype-chain-id: 2a13c57d-4896-47c4-bf6d-877628cd09e2
176+
x-microsoft-skype-chain-id: 813c0af7-9a40-49e4-af63-4f60f08a11c1
178177
status:
179178
code: 200
180179
message: OK
181-
url: https://sanitized.communication.azure.com/calling/callConnections/421f0b00-d5a3-49d8-a0e3-e172a00d8acb/:cancelAllMediaOperations?api-version=2021-09-15-preview
180+
url: https://sanitized.communication.azure.com/calling/callConnections/ba201300-6a2e-423f-8e47-398a2aac7cff/:cancelAllMediaOperations?api-version=2021-11-15-preview
182181
- request:
183182
body: null
184183
headers:
@@ -187,17 +186,17 @@ interactions:
187186
User-Agent:
188187
- azsdk-python-communication-callingserver/1.0.0b1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
189188
method: POST
190-
uri: https://sanitized.communication.azure.com/calling/callConnections/421f0b00-d5a3-49d8-a0e3-e172a00d8acb/:hangup?api-version=2021-09-15-preview
189+
uri: https://sanitized.communication.azure.com/calling/callConnections/ba201300-6a2e-423f-8e47-398a2aac7cff/:hangup?api-version=2021-11-15-preview
191190
response:
192191
body:
193192
string: ''
194193
headers:
195194
content-length: '0'
196-
date: Sun, 19 Sep 2021 20:25:28 GMT
195+
date: Wed, 06 Oct 2021 19:42:25 GMT
197196
x-cache: CONFIG_NOCACHE
198-
x-microsoft-skype-chain-id: 799ee960-c232-4a76-aa2b-38d0d614c65c
197+
x-microsoft-skype-chain-id: 19a7f7e0-782b-4f77-b8c3-9b4481364016
199198
status:
200199
code: 202
201200
message: Accepted
202-
url: https://sanitized.communication.azure.com/calling/callConnections/421f0b00-d5a3-49d8-a0e3-e172a00d8acb/:hangup?api-version=2021-09-15-preview
201+
url: https://sanitized.communication.azure.com/calling/callConnections/ba201300-6a2e-423f-8e47-398a2aac7cff/:hangup?api-version=2021-11-15-preview
203202
version: 1

sdk/communication/azure-communication-callingserver/tests/test_callingserver_client_async.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
JoinCallOptions,
1515
PlayAudioOptions,
1616
CommunicationIdentifier,
17-
CallLocator,
17+
CallLocator,
1818
ServerCallLocator
1919
)
2020
from utils._unit_test_utils import CallingServerUnitTestUtils
@@ -417,9 +417,8 @@ async def test_cancel_participant_media_operation_failed(
417417
raised = True
418418
assert raised == True
419419

420-
421420
@pytest.mark.asyncio
422421
async def test_start_recording_relative_uri_fails():
423422
server_call_id = "aHR0cHM6Ly9jb252LXVzd2UtMDguY29udi5za3lwZS5jb20vY29udi8tby1FWjVpMHJrS3RFTDBNd0FST1J3P2k9ODgmZT02Mzc1Nzc0MTY4MDc4MjQyOTM"
424423
with pytest.raises(ValueError):
425-
await _mock_utils_async.create_calling_server_client_async().start_recording(ServerCallLocator(server_call_id), "/not/absolute/uri")
424+
await _mock_utils_async.create_calling_server_client_async().start_recording(ServerCallLocator(server_call_id), "/not/absolute/uri")

sdk/communication/azure-communication-callingserver/tests/test_live_call_connection_async.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def setUp(self):
6464
http_logging_policy=get_http_logging_policy()
6565
)
6666

67-
@pytest.mark.skip(reason="Skip because the server side bits not ready")
6867
@AsyncCommunicationTestCase.await_prepared_test
6968
async def test_create_play_cancel_hangup_scenario_async(self):
7069
# create call option

sdk/communication/azure-communication-callingserver/tests/test_live_server_call_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ async def test_create_add_remove_hangup_scenario_async(self):
155155
# Clean up/Hang up
156156
CallingServerLiveTestUtils.sleep_if_in_live_mode()
157157
await CallingServerLiveTestUtilsAsync.clean_up_connections_async(call_connections)
158-
158+
159159
@pytest.mark.skip(reason="Skip because the server side bits not ready")
160160
@AsyncCommunicationTestCase.await_prepared_test
161161
async def test_run_all_client_functions(self):

0 commit comments

Comments
 (0)