Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test enabling annotation #22327

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.DisabledIfEnvironmentVariable;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

Expand All @@ -27,9 +27,10 @@ public class CallConnectionAsyncLiveTests extends CallingServerTestBase {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreatePlayCancelHangupScenarioAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerAsyncClient callingServerAsyncClient =
Expand Down Expand Up @@ -78,9 +79,10 @@ public void runCreatePlayCancelHangupScenarioAsync(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreatePlayCancelHangupScenarioWithResponseAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerAsyncClient callingServerAsyncClient =
Expand Down Expand Up @@ -133,9 +135,10 @@ public void runCreatePlayCancelHangupScenarioWithResponseAsync(HttpClient httpCl

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateAddRemoveHangupScenarioAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerAsyncClient callingServerAsyncClient =
Expand Down Expand Up @@ -179,9 +182,10 @@ public void runCreateAddRemoveHangupScenarioAsync(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateAddRemoveHangupScenarioWithResponseAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerAsyncClient callingServerAsyncClient =
Expand Down Expand Up @@ -232,9 +236,10 @@ public void runCreateAddRemoveHangupScenarioWithResponseAsync(HttpClient httpCli

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateJoinHangupScenarioAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerAsyncClient callingServerAsyncClient =
Expand Down Expand Up @@ -286,9 +291,10 @@ public void runCreateJoinHangupScenarioAsync(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateJoinHangupScenarioWithResponseAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerAsyncClient callingServerAsyncClient =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.DisabledIfEnvironmentVariable;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

Expand All @@ -27,9 +27,10 @@ public class CallConnectionLiveTests extends CallingServerTestBase {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreatePlayCancelHangupScenario(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerClient callingServerClient = setupClient(builder, "runCreatePlayCancelHangupScenario");
Expand Down Expand Up @@ -76,9 +77,10 @@ public void runCreatePlayCancelHangupScenario(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreatePlayCancelHangupScenarioWithResponse(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerClient callingServerClient =
Expand Down Expand Up @@ -132,9 +134,10 @@ public void runCreatePlayCancelHangupScenarioWithResponse(HttpClient httpClient)

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateAddRemoveHangupScenario(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerClient callingServerClient = setupClient(builder, "runCreateAddRemoveHangupScenario");
Expand Down Expand Up @@ -172,9 +175,10 @@ public void runCreateAddRemoveHangupScenario(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateAddRemoveHangupScenarioWithResponse(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerClient callingServerClient =
Expand Down Expand Up @@ -225,9 +229,10 @@ public void runCreateAddRemoveHangupScenarioWithResponse(HttpClient httpClient)

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateJoinHangupScenario(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerClient callingServerClient = setupClient(builder, "runCreateJoinHangupScenario");
Expand Down Expand Up @@ -273,9 +278,10 @@ public void runCreateJoinHangupScenario(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runCreateJoinHangupScenarioWithResponse(HttpClient httpClient) {
CallingServerClientBuilder builder = getCallClientUsingConnectionString(httpClient);
CallingServerClient callingServerClient =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.DisabledIfEnvironmentVariable;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import org.mockito.Mockito;
Expand All @@ -35,9 +35,10 @@ public class DownloadContentAsyncLiveTests extends CallingServerTestBase {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadMetadataAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerAsyncClient conversationAsyncClient = setupAsyncClient(builder, "downloadMetadataAsync");
Expand All @@ -56,9 +57,10 @@ public void downloadMetadataAsync(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadMetadataRetryingAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerAsyncClient conversationAsyncClient = setupAsyncClient(builder, "downloadMetadataAsync");
Expand All @@ -77,9 +79,10 @@ public void downloadMetadataRetryingAsync(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadVideoAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerAsyncClient conversationAsyncClient = setupAsyncClient(builder, "downloadVideoAsync");
Expand All @@ -98,9 +101,10 @@ public void downloadVideoAsync(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadToFileAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerAsyncClient conversationAsyncClient = setupAsyncClient(builder, "downloadToFileAsync");
Expand Down Expand Up @@ -132,9 +136,10 @@ public void downloadToFileAsync(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadToFileRetryingAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerAsyncClient conversationAsyncClient = setupAsyncClient(builder, "downloadToFileAsync");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.DisabledIfEnvironmentVariable;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import org.mockito.Mockito;
Expand All @@ -28,9 +28,10 @@ public class DownloadContentLiveTests extends CallingServerTestBase {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadMetadata(HttpClient httpClient) throws UnsupportedEncodingException {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerClient conversationClient = setupClient(builder, "downloadMetadata");
Expand All @@ -48,9 +49,10 @@ public void downloadMetadata(HttpClient httpClient) throws UnsupportedEncodingEx

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void downloadVideo(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerClient conversationClient = setupClient(builder, "downloadVideo");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.DisabledIfEnvironmentVariable;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

Expand Down Expand Up @@ -208,9 +208,10 @@ public void startRecordingFailsAsync(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runAddRemoveScenarioAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerAsyncClient callingServerAsyncClient =
Expand Down Expand Up @@ -265,9 +266,10 @@ public void runAddRemoveScenarioAsync(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runAddRemoveScenarioWithResponseAsync(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerAsyncClient callingServerAsyncClient = setupAsyncClient(builder, "runAddRemoveScenarioWithResponseAsync");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.DisabledIfEnvironmentVariable;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

Expand Down Expand Up @@ -203,9 +203,10 @@ public void startRecordingFails(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runAddRemoveScenario(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerClient callingServerClient = setupClient(builder, "runAddRemoveScenario");
Expand Down Expand Up @@ -255,9 +256,10 @@ public void runAddRemoveScenario(HttpClient httpClient) {

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "COMMUNICATION_SKIP_INT_CALLINGSERVER_TEST",
matches = "(?i)(true)")
@EnabledIfEnvironmentVariable(
named = "RUN_CALLINGSERVER_TEST_RECORD",
matches = "(?i)(true)",
disabledReason = "Requires human intervention")
public void runAddRemoveScenarioWithResponse(HttpClient httpClient) {
CallingServerClientBuilder builder = getConversationClientUsingConnectionString(httpClient);
CallingServerClient callingServerClient = setupClient(builder, "runAddRemoveScenarioWithResponse");
Expand Down