From 33344d161c22188a754b79e4d2f976b4e050339b Mon Sep 17 00:00:00 2001 From: Arif Saikat <71465659+arifsaikat-microsoft@users.noreply.github.com> Date: Wed, 16 Jun 2021 14:15:12 -0700 Subject: [PATCH] skip test refactor --- .../CallConnectionAsyncLiveTests.java | 14 +++++++------- .../callingserver/CallConnectionLiveTests.java | 14 +++++++------- .../DownloadContentAsyncLiveTests.java | 12 ++++++------ .../callingserver/DownloadContentLiveTests.java | 6 +++--- .../callingserver/ServerCallAsyncLiveTests.java | 6 +++--- .../callingserver/ServerCallLiveTests.java | 6 +++--- 6 files changed, 29 insertions(+), 29 deletions(-) diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionAsyncLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionAsyncLiveTests.java index 80a776f34a17e..f2f56f02a7264 100644 --- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionAsyncLiveTests.java +++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionAsyncLiveTests.java @@ -14,7 +14,7 @@ import com.azure.communication.common.PhoneNumberIdentifier; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.Response; -import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; +import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; @@ -27,7 +27,7 @@ public class CallConnectionAsyncLiveTests extends CallingServerTestBase { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -79,7 +79,7 @@ public void runCreatePlayCancelHangupScenarioAsync(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -135,7 +135,7 @@ public void runCreatePlayCancelHangupScenarioWithResponseAsync(HttpClient httpCl @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -182,7 +182,7 @@ public void runCreateAddRemoveHangupScenarioAsync(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -236,7 +236,7 @@ public void runCreateAddRemoveHangupScenarioWithResponseAsync(HttpClient httpCli @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -291,7 +291,7 @@ public void runCreateJoinHangupScenarioAsync(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionLiveTests.java index e6d8e66de9e85..4f3b5003bc763 100644 --- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionLiveTests.java +++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/CallConnectionLiveTests.java @@ -14,7 +14,7 @@ import com.azure.communication.common.PhoneNumberIdentifier; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.Response; -import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; +import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; @@ -27,7 +27,7 @@ public class CallConnectionLiveTests extends CallingServerTestBase { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -77,7 +77,7 @@ public void runCreatePlayCancelHangupScenario(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -134,7 +134,7 @@ public void runCreatePlayCancelHangupScenarioWithResponse(HttpClient httpClient) @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -175,7 +175,7 @@ public void runCreateAddRemoveHangupScenario(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -229,7 +229,7 @@ public void runCreateAddRemoveHangupScenarioWithResponse(HttpClient httpClient) @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -278,7 +278,7 @@ public void runCreateJoinHangupScenario(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java index cbbcd18842af2..899ffe2d8f77c 100644 --- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java +++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java @@ -8,7 +8,7 @@ import com.azure.core.http.HttpClient; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; -import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; +import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; import org.mockito.Mockito; @@ -35,7 +35,7 @@ public class DownloadContentAsyncLiveTests extends CallingServerTestBase { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -57,7 +57,7 @@ public void downloadMetadataAsync(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -79,7 +79,7 @@ public void downloadMetadataRetryingAsync(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -101,7 +101,7 @@ public void downloadVideoAsync(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -136,7 +136,7 @@ public void downloadToFileAsync(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentLiveTests.java index 7ff2806fc4d9a..24433330c0696 100644 --- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentLiveTests.java +++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentLiveTests.java @@ -6,7 +6,7 @@ import com.azure.communication.callingserver.models.CallingServerErrorException; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.Response; -import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; +import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; import org.mockito.Mockito; @@ -28,7 +28,7 @@ public class DownloadContentLiveTests extends CallingServerTestBase { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -49,7 +49,7 @@ public void downloadMetadata(HttpClient httpClient) throws UnsupportedEncodingEx @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallAsyncLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallAsyncLiveTests.java index 0d94b095cb2f2..f6c5c62a50c60 100644 --- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallAsyncLiveTests.java +++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallAsyncLiveTests.java @@ -18,7 +18,7 @@ import com.azure.communication.common.PhoneNumberIdentifier; import com.azure.core.http.HttpClient; import com.azure.core.http.rest.Response; -import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; +import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; @@ -208,7 +208,7 @@ public void startRecordingFailsAsync(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -266,7 +266,7 @@ public void runAddRemoveScenarioAsync(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallLiveTests.java index 5f675bc726834..bd98c67c09beb 100644 --- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallLiveTests.java +++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/ServerCallLiveTests.java @@ -19,7 +19,7 @@ import com.azure.core.http.HttpClient; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; +import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; @@ -203,7 +203,7 @@ public void startRecordingFails(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention") @@ -256,7 +256,7 @@ public void runAddRemoveScenario(HttpClient httpClient) { @ParameterizedTest @MethodSource("com.azure.core.test.TestBase#getHttpClients") - @EnabledIfEnvironmentVariable( + @DisabledIfEnvironmentVariable( named = "RUN_CALLINGSERVER_TEST_RECORD", matches = "(?i)(true)", disabledReason = "Requires human intervention")