Skip to content

Commit 697e6f6

Browse files
author
Vinothini Dharmaraj
committed
updating the test data
1 parent baf8d83 commit 697e6f6

File tree

29 files changed

+760
-640
lines changed

29 files changed

+760
-640
lines changed

sdk/communication/Azure.Communication.CallAutomation/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/communication/Azure.Communication.CallAutomation",
5-
"Tag": "net/communication/Azure.Communication.CallAutomation_b735ad3d8c"
5+
"Tag": "net/communication/Azure.Communication.CallAutomation_c509da75fb"
66
}

sdk/communication/Azure.Communication.CallAutomation/tests/CallMedias/CallMediaAutomatedLiveTests.cs

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ public async Task PlayMultipleFilesSourcesWithPlayMediaTest()
169169
new FileSource(new Uri(TestEnvironment.FileSourceUrl) )
170170
};
171171

172+
PlayOptions options = new PlayOptions(playFileSources, new List<CommunicationUserIdentifier>() { target }) { OperationContext = "context" };
173+
172174
// Assert the Play with multiple File Sources
173-
await callConnection.GetCallMedia().PlayAsync(playFileSources, new List<CommunicationUserIdentifier>() { target }).ConfigureAwait(false);
175+
await callConnection.GetCallMedia().PlayAsync(options).ConfigureAwait(false);
174176
var playCompletedEvent = await WaitForEvent<PlayCompleted>(callConnectionId, TimeSpan.FromSeconds(20));
175177
Assert.IsNotNull(playCompletedEvent);
176178
Assert.IsTrue(playCompletedEvent is PlayCompleted);
@@ -239,8 +241,10 @@ public async Task PlayMultipleFilesSourcesWithPlayMediaAllTest()
239241
new FileSource(new Uri(TestEnvironment.FileSourceUrl) )
240242
};
241243

244+
PlayToAllOptions options = new PlayToAllOptions(playFileSources) { OperationContext = "context" };
245+
242246
// Assert the Play with multiple File Sources
243-
await callConnection.GetCallMedia().PlayToAllAsync(playFileSources).ConfigureAwait(false);
247+
await callConnection.GetCallMedia().PlayToAllAsync(options).ConfigureAwait(false);
244248
var playCompletedEvent = await WaitForEvent<PlayCompleted>(callConnectionId, TimeSpan.FromSeconds(20));
245249
Assert.IsNotNull(playCompletedEvent);
246250
Assert.IsTrue(playCompletedEvent is PlayCompleted);
@@ -310,8 +314,10 @@ public async Task PlayMultipleTextSourcesWithPlayMediaTest()
310314
new TextSource("Test prompt3") { VoiceName = "en-US-NancyNeural" }
311315
};
312316

317+
PlayOptions options = new PlayOptions(playTextSources, new List<CommunicationUserIdentifier>() { target }) { OperationContext = "context" };
318+
313319
// Assert the Play with multiple Text Sources
314-
await callConnection.GetCallMedia().PlayAsync(playTextSources, new List<CommunicationUserIdentifier>() { target }).ConfigureAwait(false);
320+
await callConnection.GetCallMedia().PlayAsync(options).ConfigureAwait(false);
315321
var playCompletedEvent = await WaitForEvent<PlayCompleted>(callConnectionId, TimeSpan.FromSeconds(20));
316322
Assert.IsNotNull(playCompletedEvent);
317323
Assert.IsTrue(playCompletedEvent is PlayCompleted);
@@ -381,8 +387,10 @@ public async Task PlayMultipleTextSourcesWithPlayMediaAllTest()
381387
new TextSource("Test prompt3") { VoiceName = "en-US-NancyNeural" }
382388
};
383389

390+
PlayToAllOptions options = new PlayToAllOptions(playTextSources) { OperationContext = "context" };
391+
384392
// Assert the Play with multiple Text Sources
385-
await callConnection.GetCallMedia().PlayToAllAsync(playTextSources).ConfigureAwait(false);
393+
await callConnection.GetCallMedia().PlayToAllAsync(options).ConfigureAwait(false);
386394
var playCompletedEvent = await WaitForEvent<PlayCompleted>(callConnectionId, TimeSpan.FromSeconds(20));
387395
Assert.IsNotNull(playCompletedEvent);
388396
Assert.IsTrue(playCompletedEvent is PlayCompleted);
@@ -451,8 +459,10 @@ public async Task PlayCombinedTextAndFileSourcesWithPlayMediaTest()
451459
new TextSource("Test prompt1") { VoiceName = "en-US-NancyNeural" }
452460
};
453461

462+
PlayOptions options = new PlayOptions(playMultipleSources, new List<CommunicationUserIdentifier>() { target }) { OperationContext = "context" };
463+
454464
// Assert the Play with multiple Text Sources
455-
await callConnection.GetCallMedia().PlayAsync(playMultipleSources, new List<CommunicationUserIdentifier>() { target }).ConfigureAwait(false);
465+
await callConnection.GetCallMedia().PlayAsync(options).ConfigureAwait(false);
456466
var playCompletedEvent = await WaitForEvent<PlayCompleted>(callConnectionId, TimeSpan.FromSeconds(20));
457467
Assert.IsNotNull(playCompletedEvent);
458468
Assert.IsTrue(playCompletedEvent is PlayCompleted);
@@ -521,8 +531,10 @@ public async Task PlayCombinedTextAndFileSourcesWithPlayMediaAllTest()
521531
new TextSource("Test prompt1") { VoiceName = "en-US-NancyNeural" }
522532
};
523533

534+
PlayToAllOptions options = new PlayToAllOptions(playMultipleSources) { OperationContext = "context" };
535+
524536
// Assert the Play with multiple Text Sources
525-
await callConnection.GetCallMedia().PlayToAllAsync(playMultipleSources).ConfigureAwait(false);
537+
await callConnection.GetCallMedia().PlayToAllAsync(options).ConfigureAwait(false);
526538
var playCompletedEvent = await WaitForEvent<PlayCompleted>(callConnectionId, TimeSpan.FromSeconds(20));
527539
Assert.IsNotNull(playCompletedEvent);
528540
Assert.IsTrue(playCompletedEvent is PlayCompleted);
@@ -589,8 +601,10 @@ public async Task PlayInvalidFileSourceWithPlayMediaTest()
589601
new FileSource(new Uri("https://dummy.com/dummyurl.wav"))
590602
};
591603

604+
PlayOptions options = new PlayOptions(playMultipleSources, new List<CommunicationUserIdentifier>() { target });
605+
592606
// Assert the Play with multiple Text Sources
593-
await callConnection.GetCallMedia().PlayAsync(playMultipleSources, new List<CommunicationUserIdentifier>() { target }).ConfigureAwait(false);
607+
await callConnection.GetCallMedia().PlayAsync(options).ConfigureAwait(false);
594608
var playFailedEvent = await WaitForEvent<PlayFailed>(callConnectionId, TimeSpan.FromSeconds(20));
595609
Assert.IsNotNull(playFailedEvent);
596610
Assert.IsTrue(playFailedEvent is PlayFailed);
@@ -658,8 +672,10 @@ public async Task PlayInvalidFileSourceWithPlayMediaAllTest()
658672
new FileSource(new Uri("https://dummy.com/dummyurl.wav"))
659673
};
660674

675+
PlayToAllOptions options = new PlayToAllOptions(playMultipleSources) { OperationContext = "context" };
676+
661677
// Assert the Play with multiple Text Sources
662-
await callConnection.GetCallMedia().PlayToAllAsync(playMultipleSources).ConfigureAwait(false);
678+
await callConnection.GetCallMedia().PlayToAllAsync(options).ConfigureAwait(false);
663679

664680
var playFailedEvent = await WaitForEvent<PlayFailed>(callConnectionId, TimeSpan.FromSeconds(20));
665681
Assert.IsNotNull(playFailedEvent);

sdk/communication/Azure.Communication.CallAutomation/tests/Infrastructure/CallAutomationClientAutomatedLiveTestsBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public CallAutomationClientAutomatedLiveTestsBase(bool isAsync, RecordedTestMode
5353
JsonPathSanitizers.Add("$..botAppId");
5454
JsonPathSanitizers.Add("$..ivrContext");
5555
JsonPathSanitizers.Add("$..dialog.botAppId");
56-
JsonPathSanitizers.Add("$..operationContext");
5756
BodyKeySanitizers.Add(new BodyKeySanitizer(@"https://sanitized.skype.com/api/servicebuscallback/events?q=SanitizedSanitized") { JsonPath = "..callbackUri" });
5857
BodyKeySanitizers.Add(new BodyKeySanitizer(@"wss://sanitized.skype.com") { JsonPath = "..transportUrl" });
5958
BodyKeySanitizers.Add(new BodyKeySanitizer(@"https://sanitized.skype.com/prompt.wav") { JsonPath="$..file.uri"});

sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallAutomationClientAutomatedLiveTests/CreateCallAndReject.json

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

sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallAutomationClientAutomatedLiveTests/CreateCallAndRejectAsync.json

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

sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallAutomationClientAutomatedLiveTests/CreateCallToACSGetCallAndHangUpCallTest.json

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

sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallAutomationClientAutomatedLiveTests/CreateCallToACSGetCallAndHangUpCallTestAsync.json

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

sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallAutomationClientAutomatedLiveTests/CreateCallToAcsConnectCallAndHangupForEveryoneTest.json

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

sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallAutomationClientAutomatedLiveTests/CreateCallToAcsConnectCallAndHangupForEveryoneTestAsync.json

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

sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallAutomationClientAutomatedLiveTests/CreateCallToAcsConnectCallAndHangupTest.json

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

0 commit comments

Comments
 (0)