From ce2e4638b6ce653ed7c7e88afce4fc99d343b7aa Mon Sep 17 00:00:00 2001 From: minwoolee-msft <77083090+minwoolee-msft@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:36:41 -0700 Subject: [PATCH] Disabling all CallingServer test as it is in the process of decomissioning (#44979) --- .../CallAutomationClientLiveTests.cs | 2 ++ .../CallAutomationClientTests.cs | 22 ++++++++++++++ .../CallConnection/CallConnectionLiveTests.cs | 5 ++++ .../CallConnection/CallConnectionTests.cs | 29 +++++++++++++++++++ .../tests/CallMedia/CallMediaLiveTests.cs | 1 + .../tests/CallMedia/CallMediaTests.cs | 6 ++-- .../CallRecording/CallRecordingLiveTests.cs | 1 + .../tests/CallRecording/CallRecordingTests.cs | 6 ++++ .../CallRecording/ContentDownloadLiveTests.cs | 4 +++ .../CallRecording/ContentDownloadTests.cs | 14 +++++++++ .../CallRecording/DeleteRecordingLiveTests.cs | 2 ++ .../CallRecording/DeleteRecordingTests.cs | 4 +++ .../Events/CallAutomationEventParserTests.cs | 10 +++++++ .../CallAutomationStreamingParserTests.cs | 4 +++ 14 files changed, 108 insertions(+), 2 deletions(-) diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallAutomationClient/CallAutomationClientLiveTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallAutomationClient/CallAutomationClientLiveTests.cs index 9c47ebd5a18ab..838b2846a6676 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallAutomationClient/CallAutomationClientLiveTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallAutomationClient/CallAutomationClientLiveTests.cs @@ -15,6 +15,7 @@ public CallAutomationClientLiveTests(bool isAsync) : base(isAsync) } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task CreateCallToACSGetCallAndHangUpCallTest() { /* Test case: ACS to ACS call @@ -65,6 +66,7 @@ public async Task CreateCallToACSGetCallAndHangUpCallTest() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task CreateCallToPSTNGetCallAndHangUpCallTest() { /* Test case: ACS to PSTN call diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallAutomationClient/CallAutomationClientTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallAutomationClient/CallAutomationClientTests.cs index 2611327087b2d..920cb13e954ac 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallAutomationClient/CallAutomationClientTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallAutomationClient/CallAutomationClientTests.cs @@ -18,6 +18,7 @@ public class CallAutomationClientTests : CallAutomationTestBase MediaStreamingAudioChannel.Mixed); [TestCaseSource(nameof(TestData_AnswerCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task AnswerCallAsync_200OK(string incomingCallContext, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(200, CreateOrAnswerCallOrGetCallConnectionPayload); @@ -31,6 +32,7 @@ public async Task AnswerCallAsync_200OK(string incomingCallContext, Uri callback } [TestCaseSource(nameof(TestData_AnswerCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void AnswerCall_200OK(string incomingCallContext, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(200, CreateOrAnswerCallOrGetCallConnectionPayload); @@ -44,6 +46,7 @@ public void AnswerCall_200OK(string incomingCallContext, Uri callbackUri) } [TestCaseSource(nameof(TestData_AnswerCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task AnswerCallWithOptionsAsync_200OK(string incomingCallContext, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(200, CreateOrAnswerCallOrGetCallConnectionWithMediaSubscriptionPayload); @@ -61,6 +64,7 @@ public async Task AnswerCallWithOptionsAsync_200OK(string incomingCallContext, U } [TestCaseSource(nameof(TestData_AnswerCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void AnswerCallWithOptions_200OK(string incomingCallContext, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(200, CreateOrAnswerCallOrGetCallConnectionWithMediaSubscriptionPayload); @@ -78,6 +82,7 @@ public void AnswerCallWithOptions_200OK(string incomingCallContext, Uri callback } [TestCaseSource(nameof(TestData_AnswerCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void AnswerCallAsync_401AuthFailed(string incomingCallContext, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(401); @@ -88,6 +93,7 @@ public void AnswerCallAsync_401AuthFailed(string incomingCallContext, Uri callba } [TestCaseSource(nameof(TestData_AnswerCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void AnswerCall_401AuthFailed(string incomingCallContext, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(401); @@ -98,6 +104,7 @@ public void AnswerCall_401AuthFailed(string incomingCallContext, Uri callbackUri } [TestCaseSource(nameof(TestData_RedirectCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task RedirectCallAsync_204NoContent(string incomingCallContext, CommunicationIdentifier target) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(204); @@ -108,6 +115,7 @@ public async Task RedirectCallAsync_204NoContent(string incomingCallContext, Com } [TestCaseSource(nameof(TestData_RedirectCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RedirectCall_204NoContent(string incomingCallContext, CommunicationIdentifier target) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(204); @@ -118,6 +126,7 @@ public void RedirectCall_204NoContent(string incomingCallContext, CommunicationI } [TestCaseSource(nameof(TestData_RedirectCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RedirectCallAsync_404NotFound(string incomingCallContext, CommunicationIdentifier target) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(404); @@ -128,6 +137,7 @@ public void RedirectCallAsync_404NotFound(string incomingCallContext, Communicat } [TestCaseSource(nameof(TestData_RedirectCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RedirectCall_404NotFound(string incomingCallContext, CommunicationIdentifier target) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(404); @@ -138,6 +148,7 @@ public void RedirectCall_404NotFound(string incomingCallContext, CommunicationId } [TestCaseSource(nameof(TestData_RejectCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task RejectCallAsync_204NoContent(string incomingCallContext, CallRejectReason reason) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(204); @@ -148,6 +159,7 @@ public async Task RejectCallAsync_204NoContent(string incomingCallContext, CallR } [TestCaseSource(nameof(TestData_RejectCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RejectCall_204NoContent(string incomingCallContext, CallRejectReason reason) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(204); @@ -158,6 +170,7 @@ public void RejectCall_204NoContent(string incomingCallContext, CallRejectReason } [TestCaseSource(nameof(TestData_RejectCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RejectCallAsync_404NotFound(string incomingCallContext, CallRejectReason reason) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(404); @@ -168,6 +181,7 @@ public void RejectCallAsync_404NotFound(string incomingCallContext, CallRejectRe } [TestCaseSource(nameof(TestData_RejectCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RejectCall_404NotFound(string incomingCallContext, CallRejectReason reason) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(404); @@ -178,6 +192,7 @@ public void RejectCall_404NotFound(string incomingCallContext, CallRejectReason } [TestCaseSource(nameof(TestData_CreateCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task CreateCallAsync_201Created(CallSource source, CommunicationIdentifier[] targets, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(201, CreateOrAnswerCallOrGetCallConnectionPayload); @@ -192,6 +207,7 @@ public async Task CreateCallAsync_201Created(CallSource source, CommunicationIde } [TestCaseSource(nameof(TestData_CreateCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void CreateCall_201Created(CallSource source, CommunicationIdentifier[] targets, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(201, CreateOrAnswerCallOrGetCallConnectionPayload); @@ -206,6 +222,7 @@ public void CreateCall_201Created(CallSource source, CommunicationIdentifier[] t } [TestCaseSource(nameof(TestData_CreateCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task CreateCallWithOptionsAsync_201Created(CallSource source, CommunicationIdentifier[] targets, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(201, CreateOrAnswerCallOrGetCallConnectionWithMediaSubscriptionPayload); @@ -228,6 +245,7 @@ public async Task CreateCallWithOptionsAsync_201Created(CallSource source, Commu } [TestCaseSource(nameof(TestData_CreateCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void CreateCallWithOptions_201Created(CallSource source, CommunicationIdentifier[] targets, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(201, CreateOrAnswerCallOrGetCallConnectionWithMediaSubscriptionPayload); @@ -250,6 +268,7 @@ public void CreateCallWithOptions_201Created(CallSource source, CommunicationIde } [TestCaseSource(nameof(TestData_CreateCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void CreateCallAsync_404NotFound(CallSource source, CommunicationIdentifier[] targets, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(404); @@ -260,6 +279,7 @@ public void CreateCallAsync_404NotFound(CallSource source, CommunicationIdentifi } [TestCaseSource(nameof(TestData_CreateCall))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void CreateCall_404NotFound(CallSource source, CommunicationIdentifier[] targets, Uri callbackUri) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(404); @@ -270,6 +290,7 @@ public void CreateCall_404NotFound(CallSource source, CommunicationIdentifier[] } [TestCaseSource(nameof(TestData_GetCallConnection))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetCallConnection(string callConnectionId) { var response = new CallAutomationClient(ConnectionString).GetCallConnection(callConnectionId); @@ -279,6 +300,7 @@ public void GetCallConnection(string callConnectionId) } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetCallRecording() { var response = new CallAutomationClient(ConnectionString).GetCallRecording(); diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionLiveTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionLiveTests.cs index 972c6e9a853f2..6731db28d1a4a 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionLiveTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionLiveTests.cs @@ -15,6 +15,7 @@ public CallConnectionLiveTests(bool isAsync) : base(isAsync) } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task RemoveAPSTNUserFromAnOngoingCallTest() { /* Test case: @@ -71,6 +72,7 @@ public async Task RemoveAPSTNUserFromAnOngoingCallTest() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task RemoveAPSTNUserAndAcsUserFromAnOngoingCallTest() { /* Test case: @@ -129,6 +131,7 @@ public async Task RemoveAPSTNUserAndAcsUserFromAnOngoingCallTest() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task StartAGroupCallAndHangUpTest() { /* Test case: @@ -193,6 +196,7 @@ public async Task StartAGroupCallAndHangUpTest() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task StartAGroupCallAndHangUpForEveryoneTest() { /* Test case: @@ -257,6 +261,7 @@ public async Task StartAGroupCallAndHangUpForEveryoneTest() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task TransferACallFromOneUserToAnotherUserTest() { /* Test case: diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionTests.cs index cd00799f3cde0..cc0e0429c32c6 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionTests.cs @@ -41,6 +41,7 @@ public class CallConnectionTests : CallAutomationTestBase private const string PhoneNumber = "+11234567"; [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task GetCallConnectionPropertiesAsync_200OK() { var callConnection = CreateMockCallConnection(200, CreateOrAnswerCallOrGetCallConnectionPayload); @@ -53,6 +54,7 @@ public async Task GetCallConnectionPropertiesAsync_200OK() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetCallConnectionProperties_200OK() { var callConnection = CreateMockCallConnection(200, CreateOrAnswerCallOrGetCallConnectionPayload); @@ -64,6 +66,7 @@ public void GetCallConnectionProperties_200OK() verifyCallConnectionProperties(response); } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetCallConnectionPropertiesAsync_404NotFound() { var callConnection = CreateMockCallConnection(404); @@ -74,6 +77,7 @@ public void GetCallConnectionPropertiesAsync_404NotFound() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetCallConnectionProperties_404NotFound() { var callConnection = CreateMockCallConnection(404); @@ -84,6 +88,7 @@ public void GetCallConnectionProperties_404NotFound() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task HangupCallAsync_204NoContent() { var callConnection = CreateMockCallConnection(204); @@ -93,6 +98,7 @@ public async Task HangupCallAsync_204NoContent() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void HangupCall_204NoContent() { var callConnection = CreateMockCallConnection(204); @@ -102,6 +108,7 @@ public void HangupCall_204NoContent() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void HangUpCallAsync_404NotFound() { var callConnection = CreateMockCallConnection(404); @@ -112,6 +119,7 @@ public void HangUpCallAsync_404NotFound() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void HangUpCall_404NotFound() { var callConnection = CreateMockCallConnection(404); @@ -122,6 +130,7 @@ public void HangUpCall_404NotFound() } [TestCaseSource(nameof(TestData_TransferCallToParticipant))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task TransferCallToParticipantAsync_202Accepted(CommunicationIdentifier targetParticipant) { var callConnection = CreateMockCallConnection(202, TransferCallOrRemoveParticipantsPayload); @@ -132,6 +141,7 @@ public async Task TransferCallToParticipantAsync_202Accepted(CommunicationIdenti } [TestCaseSource(nameof(TestData_TransferCallToParticipant))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void TransferCallToParticipant_202Accepted(CommunicationIdentifier targetParticipant) { var callConnection = CreateMockCallConnection(202, TransferCallOrRemoveParticipantsPayload); @@ -142,6 +152,7 @@ public void TransferCallToParticipant_202Accepted(CommunicationIdentifier target } [TestCaseSource(nameof(TestData_TransferCallToParticipant))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void TransferCallToParticipantAsync_404NotFound(CommunicationIdentifier targetParticipant) { var callConnection = CreateMockCallConnection(404); @@ -152,6 +163,7 @@ public void TransferCallToParticipantAsync_404NotFound(CommunicationIdentifier t } [TestCaseSource(nameof(TestData_TransferCallToParticipant))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void TransferCallToParticipant_404NotFound(CommunicationIdentifier targetParticipant) { var callConnection = CreateMockCallConnection(404); @@ -162,6 +174,7 @@ public void TransferCallToParticipant_404NotFound(CommunicationIdentifier target } [TestCaseSource(nameof(TestData_AddOrRemoveParticipants))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task AddParticipantsAsync_202Accepted(CommunicationIdentifier[] participantsToAdd) { var callConnection = CreateMockCallConnection(202, AddParticipantsPayload); @@ -172,6 +185,7 @@ public async Task AddParticipantsAsync_202Accepted(CommunicationIdentifier[] par } [TestCaseSource(nameof(TestData_AddOrRemoveParticipants))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void AddParticipants_202Accepted(CommunicationIdentifier[] participantsToAdd) { var callConnection = CreateMockCallConnection(202, AddParticipantsPayload); @@ -182,6 +196,7 @@ public void AddParticipants_202Accepted(CommunicationIdentifier[] participantsTo } [TestCaseSource(nameof(TestData_AddOrRemoveParticipants))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void AddParticipantsAsync_404NotFound(CommunicationIdentifier[] participantsToAdd) { var callConnection = CreateMockCallConnection(404); @@ -192,6 +207,7 @@ public void AddParticipantsAsync_404NotFound(CommunicationIdentifier[] participa } [TestCaseSource(nameof(TestData_AddOrRemoveParticipants))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void AddParticipants_404NotFound(CommunicationIdentifier[] participantsToAdd) { var callConnection = CreateMockCallConnection(404); @@ -202,6 +218,7 @@ public void AddParticipants_404NotFound(CommunicationIdentifier[] participantsTo } [TestCaseSource(nameof(TestData_GetParticipant))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task GetParticipantAsync_200OK(string participantMri) { var callConnection = CreateMockCallConnection(200, GetParticipantPayload); @@ -212,6 +229,7 @@ public async Task GetParticipantAsync_200OK(string participantMri) } [TestCaseSource(nameof(TestData_GetParticipant))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetParticipant_200OK(string participantMri) { var callConnection = CreateMockCallConnection(200, GetParticipantPayload); @@ -222,6 +240,7 @@ public void GetParticipant_200OK(string participantMri) } [TestCaseSource(nameof(TestData_GetParticipant))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetParticipantAsync_404NotFound(string participantMri) { var callConnection = CreateMockCallConnection(404); @@ -232,6 +251,7 @@ public void GetParticipantAsync_404NotFound(string participantMri) } [TestCaseSource(nameof(TestData_GetParticipant))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetParticipant_404NotFound(string participantMri) { var callConnection = CreateMockCallConnection(404); @@ -242,6 +262,7 @@ public void GetParticipant_404NotFound(string participantMri) } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task GetParticipantsAsync_200OK() { var callConnection = CreateMockCallConnection(200, GetParticipantsPayload); @@ -252,6 +273,7 @@ public async Task GetParticipantsAsync_200OK() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetParticipants_200OK() { var callConnection = CreateMockCallConnection(200, GetParticipantsPayload); @@ -262,6 +284,7 @@ public void GetParticipants_200OK() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetParticipantsAsync_404NotFound() { var callConnection = CreateMockCallConnection(404); @@ -272,6 +295,7 @@ public void GetParticipantsAsync_404NotFound() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetParticipants_404NotFound() { var callConnection = CreateMockCallConnection(404); @@ -282,6 +306,7 @@ public void GetParticipants_404NotFound() } [TestCaseSource(nameof(TestData_AddOrRemoveParticipants))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task RemoveParticipantsAsync_202Accepted(CommunicationIdentifier[] participants) { var callConnection = CreateMockCallConnection(202, TransferCallOrRemoveParticipantsPayload); @@ -292,6 +317,7 @@ public async Task RemoveParticipantsAsync_202Accepted(CommunicationIdentifier[] } [TestCaseSource(nameof(TestData_AddOrRemoveParticipants))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RemoveParticipants_202Accepted(CommunicationIdentifier[] participants) { var callConnection = CreateMockCallConnection(202, TransferCallOrRemoveParticipantsPayload); @@ -302,6 +328,7 @@ public void RemoveParticipants_202Accepted(CommunicationIdentifier[] participant } [TestCaseSource(nameof(TestData_AddOrRemoveParticipants))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RemoveParticipantsAsync_404NotFound(CommunicationIdentifier[] participants) { var callConnection = CreateMockCallConnection(404); @@ -312,6 +339,7 @@ public void RemoveParticipantsAsync_404NotFound(CommunicationIdentifier[] partic } [TestCaseSource(nameof(TestData_AddOrRemoveParticipants))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RemoveParticipants_404NotFound(CommunicationIdentifier[] participants) { var callConnection = CreateMockCallConnection(404); @@ -322,6 +350,7 @@ public void RemoveParticipants_404NotFound(CommunicationIdentifier[] participant } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void GetCallMediaTest() { var connectionId = "someId"; diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallMedia/CallMediaLiveTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallMedia/CallMediaLiveTests.cs index 17a20cd8997ab..da2a5037cb04d 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallMedia/CallMediaLiveTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallMedia/CallMediaLiveTests.cs @@ -13,6 +13,7 @@ public CallMediaLiveTests(bool isAsync) : base(isAsync) { } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task PlayAudio() { if (SkipCallingServerInteractionLiveTests) diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallMedia/CallMediaTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallMedia/CallMediaTests.cs index 37b07f61b2126..99b9e642aed88 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallMedia/CallMediaTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallMedia/CallMediaTests.cs @@ -44,7 +44,7 @@ public void Setup() } [TestCaseSource(nameof(TestData_PlayOperationsAsync))] - + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task MediaOperationsAsync_Return202Accepted(Func> operation) { if (_callMedia != null) @@ -56,7 +56,7 @@ public async Task MediaOperationsAsync_Return202Accepted(Func operation) { if (_callMedia != null) @@ -68,6 +68,7 @@ public void MediaOperations_Return202Accepted(Func operatio } [TestCaseSource(nameof(TestData_PlayOperationsAsync))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void MediaOperationsAsync_Return404NotFound(Func> operation) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(404); @@ -80,6 +81,7 @@ public void MediaOperationsAsync_Return404NotFound(Func operation) { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(404); diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/CallRecordingLiveTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/CallRecordingLiveTests.cs index cc22617e5e3ba..c4d4214533b54 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/CallRecordingLiveTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/CallRecordingLiveTests.cs @@ -13,6 +13,7 @@ public CallRecordingLiveTests(bool isAsync) : base(isAsync) { } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task RecordingOperations() { if (SkipCallingServerInteractionLiveTests) diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/CallRecordingTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/CallRecordingTests.cs index 165cd6dc1a304..297d7847acb58 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/CallRecordingTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/CallRecordingTests.cs @@ -21,6 +21,7 @@ public class CallRecordingTests : CallAutomationTestBase private static readonly Uri _callBackUri = new Uri("https://somecallbackurl"); [TestCaseSource(nameof(TestData_OperationsWithStatus))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RecordingOperations_WithRecordingStatus_Success(Func operation) { CallRecording callRecording = getMockCallRecording(200, responseContent: DummyRecordingStatusResponse); @@ -31,6 +32,7 @@ public void RecordingOperations_WithRecordingStatus_Success(Func>> operation) { CallRecording callRecording = getMockCallRecording(200, responseContent: DummyRecordingStatusResponse); @@ -41,6 +43,7 @@ public async Task RecordingOperationsAsync_WithRecordingStatus_Success(Func operation) { CallRecording callRecording = getMockCallRecording(expectedStatusCode); @@ -50,6 +53,7 @@ public void RecordingOperations_ReturnsSuccess(int expectedStatusCode, HttpStatu } [TestCaseSource(nameof(TestData_OperationsAsyncSuccess))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task RecordingOperationsAsync_ReturnsSuccess(int expectedStatusCode, HttpStatusCode httpStatusCode, Func> operation) { CallRecording callRecording = getMockCallRecording(expectedStatusCode); @@ -59,6 +63,7 @@ public async Task RecordingOperationsAsync_ReturnsSuccess(int expectedStatusCode } [TestCaseSource(nameof(TestData_Operations404))] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RecordingOperation_Returns404NotFound(Func operation) { CallRecording callRecording = getMockCallRecording(404); @@ -68,6 +73,7 @@ public void RecordingOperation_Returns404NotFound(Func operation) { CallRecording callRecording = getMockCallRecording(404); diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/ContentDownloadLiveTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/ContentDownloadLiveTests.cs index afdf21fee4355..9dcc44cbe3868 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/ContentDownloadLiveTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/ContentDownloadLiveTests.cs @@ -15,6 +15,7 @@ public ContentDownloadLiveTests(bool isAsync) : base(isAsync) { } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task DownloadMetadata() { if (SkipCallingServerInteractionLiveTests) @@ -33,6 +34,7 @@ public async Task DownloadMetadata() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task DownloadMetadata_404() { if (SkipCallingServerInteractionLiveTests) @@ -65,6 +67,7 @@ public async Task DownloadMetadata_404() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task DownloadMetadataRange() { if (SkipCallingServerInteractionLiveTests) @@ -83,6 +86,7 @@ public async Task DownloadMetadataRange() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] /// This test tries to get a US stored document id from EU endpoint. /// The backend server will redirect (respond with a 302) the request to a US endpoint /// and the SDK should be able to make the new request with no error. diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/ContentDownloadTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/ContentDownloadTests.cs index 0d13619a0036d..ae749d5913122 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/ContentDownloadTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/ContentDownloadTests.cs @@ -47,6 +47,7 @@ public class ContentDownloadTests : CallAutomationTestBase }; [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void DownloadMetadata_Test() { CallAutomationClient _callAutomationClient = CreateMockCallAutomationClient(200, DummyRecordingMetadata); @@ -57,6 +58,7 @@ public void DownloadMetadata_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task DownloadMetadataAsync_Test() { CallAutomationClient _callAutomationClient = CreateMockCallAutomationClient(200, DummyRecordingMetadata); @@ -67,6 +69,7 @@ public async Task DownloadMetadataAsync_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void DownloadRecording_Test() { CallAutomationClient _callAutomationClient = CreateMockCallAutomationClient(200, _dummyRecordingStream); @@ -77,6 +80,7 @@ public void DownloadRecording_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void DownloadRecordingByRanges_Test() { CallAutomationClient _callAutomationClient = CreateMockCallAutomationClient(206, _dummyRecordingStream.Take(5).ToArray(), _rangeResponseHeaders); @@ -87,6 +91,7 @@ public void DownloadRecordingByRanges_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task DownloadRecordingAsync_Test() { CallAutomationClient _callAutomationClient = CreateMockCallAutomationClient(200, _dummyRecordingStream); @@ -97,6 +102,7 @@ public async Task DownloadRecordingAsync_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task DownloadRecordingByRangesAsync_Test() { CallAutomationClient _callAutomationClient = CreateMockCallAutomationClient(206, _dummyRecordingStream.Take(5).ToArray(), _rangeResponseHeaders); @@ -107,6 +113,7 @@ public async Task DownloadRecordingByRangesAsync_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void DownloadRecordingToStream_Test() { HttpHeader[] rangeHeaderResponse = new HttpHeader[] @@ -127,6 +134,7 @@ public void DownloadRecordingToStream_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void DownloadRecordingToStream_ContentTransferOptions_Test() { ContentTransferOptions options = new() @@ -158,6 +166,7 @@ public void DownloadRecordingToStream_ContentTransferOptions_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void DownloadNotExistentContent_Failure_Test() { CallAutomationClient _callAutomationClient = CreateMockCallAutomationClient(404); @@ -167,6 +176,7 @@ public void DownloadNotExistentContent_Failure_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void DownloadNotExistentContentAsync_Failure_Test() { CallAutomationClient _callAutomationClient = CreateMockCallAutomationClient(404); @@ -176,6 +186,7 @@ public void DownloadNotExistentContentAsync_Failure_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void AccessDenied_Failure_Test() { CallAutomationClient _callAutomationClient = CreateMockCallAutomationClient(401); @@ -185,6 +196,7 @@ public void AccessDenied_Failure_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void AccessDeniedAsync_Failure_Test() { CallAutomationClient _callAutomationClient = CreateMockCallAutomationClient(401); @@ -194,6 +206,7 @@ public void AccessDeniedAsync_Failure_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void ParallelDownloadWithInvalidRangeFirst() { MockResponse invalidResponse = new(416); // Invalid range @@ -221,6 +234,7 @@ public void ParallelDownloadWithInvalidRangeFirst() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task ParallelDownloadWithInvalidRangeFirstAsync() { MockResponse invalidResponse = new(416); // Invalid range diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/DeleteRecordingLiveTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/DeleteRecordingLiveTests.cs index 30329b1d9b601..d3aacd0a9379f 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/DeleteRecordingLiveTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/DeleteRecordingLiveTests.cs @@ -13,6 +13,7 @@ public DeleteRecordingLiveTests(bool isAsync) : base(isAsync) { } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task DeleteRecording() { if (SkipCallingServerInteractionLiveTests) @@ -30,6 +31,7 @@ public async Task DeleteRecording() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task DeleteRecording404() { if (SkipCallingServerInteractionLiveTests) diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/DeleteRecordingTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/DeleteRecordingTests.cs index 4c93c8f12b679..83f0877765a7f 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/DeleteRecordingTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallRecording/DeleteRecordingTests.cs @@ -13,6 +13,7 @@ public class DeleteRecordingTests : CallAutomationTestBase private const string AmsDeleteUrl = "https://dummyurl.com/v1/objects/documentid"; [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void DeleteRecording_Returns200Ok() { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(200); @@ -21,6 +22,7 @@ public void DeleteRecording_Returns200Ok() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public async Task DeleteRecordingAsync_Returns200Ok() { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(200); @@ -29,6 +31,7 @@ public async Task DeleteRecordingAsync_Returns200Ok() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void DeleteRecording_Returns404NotFound() { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(404); @@ -39,6 +42,7 @@ public void DeleteRecording_Returns404NotFound() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void DeleteRecording_Returns401Unauthorized() { CallAutomationClient callAutomationClient = CreateMockCallAutomationClient(401); diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/Events/CallAutomationEventParserTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/Events/CallAutomationEventParserTests.cs index 88bccb3a9a905..8ed88b947b705 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/Events/CallAutomationEventParserTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/Events/CallAutomationEventParserTests.cs @@ -13,6 +13,7 @@ namespace Azure.Communication.CallingServer.Tests.Events public class CallAutomationEventParserTests { [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void EventParserShouldParseEventWithEventDataAndType() { // arrange @@ -35,6 +36,7 @@ public void EventParserShouldParseEventWithEventDataAndType() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void EventParserShouldParseEventWithCloudEvent() { // arrange @@ -62,6 +64,7 @@ public void EventParserShouldParseEventWithCloudEvent() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void EventParserShouldParseEventWithBinaryData() { // arrange @@ -89,6 +92,7 @@ public void EventParserShouldParseEventWithBinaryData() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void EventParserShouldParseEventsWithCloudEvents() { // arrange @@ -132,6 +136,7 @@ public void EventParserShouldParseEventsWithCloudEvents() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void EventParserShouldParseEventsWithBinaryData() { // arrange @@ -175,6 +180,7 @@ public void EventParserShouldParseEventsWithBinaryData() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RecordingStateChangedEventParsed_Test() { CallRecordingStateChanged @event = CommunicationCallingServerModelFactory.CallRecordingStateChanged( @@ -201,6 +207,7 @@ public void RecordingStateChangedEventParsed_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void PlayCompletedEventParsed_Test() { PlayCompleted @event = CommunicationCallingServerModelFactory.PlayCompleted( @@ -225,6 +232,7 @@ public void PlayCompletedEventParsed_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void PlayFailedEventParsed_Test() { PlayFailed @event = CommunicationCallingServerModelFactory.PlayFailed( @@ -249,6 +257,7 @@ public void PlayFailedEventParsed_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RecognizeCompletedEventParsed_Test() { RecognizeCompleted @event = CommunicationCallingServerModelFactory.RecognizeCompleted( @@ -282,6 +291,7 @@ public void RecognizeCompletedEventParsed_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void RecognizeFailedEventParsed_Test() { RecognizeFailed @event = CommunicationCallingServerModelFactory.RecognizeFailed( diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/MediaStreaming/CallAutomationStreamingParserTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/MediaStreaming/CallAutomationStreamingParserTests.cs index 1aed3c0e9cd46..8363c1c118cfb 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/MediaStreaming/CallAutomationStreamingParserTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/MediaStreaming/CallAutomationStreamingParserTests.cs @@ -10,6 +10,7 @@ namespace Azure.Communication.CallingServer.Tests.MediaStreaming internal class CallAutomationStreamingParserTests { [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void ParseMetadata_Test() { string metadataJson = "{" @@ -27,6 +28,7 @@ public void ParseMetadata_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void ParseAudio_Test() { string audioJson = "{" @@ -41,6 +43,7 @@ public void ParseAudio_Test() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void ParseBinaryData() { JObject jsonData = new JObject(); @@ -56,6 +59,7 @@ public void ParseBinaryData() } [Test] + [Ignore("Disabling this test as the library is flagged for decomissioning.")] public void ParseAudioEventsWithBynaryArray() { JObject jsonAudio = new JObject();