Skip to content

Commit

Permalink
[ACS][CallingServer] Disabling all CallingServer test as it is in the…
Browse files Browse the repository at this point in the history
… process of decomissioning (#41136)

* Disabling CallingServer test as it is in the process of decomissioning

* Adding import
  • Loading branch information
minwoolee-msft authored Jul 12, 2024
1 parent c435ac6 commit b9fe349
Show file tree
Hide file tree
Showing 19 changed files with 151 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.azure.communication.common.CommunicationIdentifier;
import com.azure.communication.common.CommunicationUserIdentifier;
import com.azure.core.http.rest.Response;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import java.util.AbstractMap;
Expand All @@ -22,6 +23,7 @@

public class CallAutomationAsyncClientUnitTests extends CallAutomationUnitTestBase {
@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void createCall() {
CallAutomationAsyncClient callAutomationAsyncClient = getCallAutomationAsyncClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -39,6 +41,7 @@ public void createCall() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void createCallWithResponse() {
CallAutomationAsyncClient callAutomationAsyncClient = getCallAutomationAsyncClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -59,6 +62,7 @@ public void createCallWithResponse() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void answerCall() {
CallAutomationAsyncClient callAutomationAsyncClient = getCallAutomationAsyncClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -72,6 +76,7 @@ public void answerCall() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void answerCallWithResponse() {
CallAutomationAsyncClient callAutomationAsyncClient = getCallAutomationAsyncClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -88,6 +93,7 @@ public void answerCallWithResponse() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void redirectCall() {
CallAutomationAsyncClient callAutomationAsyncClient = getCallAutomationAsyncClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -100,6 +106,7 @@ public void redirectCall() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void redirectCallWithResponse() {
CallAutomationAsyncClient callAutomationAsyncClient = getCallAutomationAsyncClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -116,6 +123,7 @@ public void redirectCallWithResponse() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void rejectCall() {
CallAutomationAsyncClient callAutomationAsyncClient = getCallAutomationAsyncClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -127,6 +135,7 @@ public void rejectCall() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void rejectCallWithResponse() {
CallAutomationAsyncClient callAutomationAsyncClient = getCallAutomationAsyncClient(new ArrayList<>(
Collections.singletonList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.util.ClientOptions;
import com.azure.identity.DefaultAzureCredentialBuilder;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Mono;

Expand All @@ -36,6 +37,7 @@ public Mono<HttpResponse> send(HttpRequest request) {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void missingTokenCredentialTest() throws NullPointerException {
builder
.endpoint(MOCK_URL)
Expand All @@ -44,6 +46,7 @@ public void missingTokenCredentialTest() throws NullPointerException {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void missingUrlTest()
throws NullPointerException {
builder
Expand All @@ -53,6 +56,7 @@ public void missingUrlTest()
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void nullPipelineTest() {
assertThrows(NullPointerException.class, () -> builder
.connectionString(MOCK_CONNECTION_STRING)
Expand All @@ -61,6 +65,7 @@ public void nullPipelineTest() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void nullCustomPolicyTest() {
assertThrows(NullPointerException.class, () -> builder
.connectionString(MOCK_CONNECTION_STRING)
Expand All @@ -69,6 +74,7 @@ public void nullCustomPolicyTest() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void nullConfigurationTest() {
assertThrows(NullPointerException.class, () -> builder
.connectionString(MOCK_CONNECTION_STRING)
Expand All @@ -77,6 +83,7 @@ public void nullConfigurationTest() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void nullHttpLogOptionsTest() {
assertThrows(NullPointerException.class, () -> builder
.connectionString(MOCK_CONNECTION_STRING)
Expand All @@ -85,6 +92,7 @@ public void nullHttpLogOptionsTest() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void nullRetryPolicyTest() {
assertThrows(
NullPointerException.class, () -> builder
Expand All @@ -94,6 +102,7 @@ public void nullRetryPolicyTest() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void buildPipelineForClient() {
CallAutomationAsyncClient callAutomationAsyncClient = builder
.connectionString(MOCK_CONNECTION_STRING)
Expand All @@ -104,6 +113,7 @@ public void buildPipelineForClient() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void setHttpLogOptions() {
HttpLogOptions options = new HttpLogOptions().setApplicationId(APPLICATION_ID);
CallAutomationAsyncClient callAutomationAsyncClient = builder
Expand All @@ -115,6 +125,7 @@ public void setHttpLogOptions() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void setClientOptions() {
ClientOptions options = new ClientOptions().setApplicationId(APPLICATION_ID);
CallAutomationAsyncClient callAutomationAsyncClient = builder
Expand All @@ -126,6 +137,7 @@ public void setClientOptions() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void noClientOptionsNoPipeline() {
CallAutomationAsyncClient callAutomationAsyncClient = builder
.connectionString(MOCK_CONNECTION_STRING)
Expand All @@ -135,6 +147,7 @@ public void noClientOptionsNoPipeline() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void addPolicy() {
AzureKeyCredential credential = new AzureKeyCredential("key");
CallAutomationAsyncClient callAutomationAsyncClient =
Expand All @@ -149,6 +162,7 @@ public void addPolicy() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void argumentExceptionOnConnectionStringAndEndpoint() {
assertThrows(IllegalArgumentException.class,
() -> builder
Expand All @@ -159,6 +173,7 @@ public void argumentExceptionOnConnectionStringAndEndpoint() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void argumentExceptionOnEmptyConnectionString() {
assertThrows(NullPointerException.class,
() -> builder
Expand All @@ -168,6 +183,7 @@ public void argumentExceptionOnEmptyConnectionString() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void argumentExceptionOnConnectionStringAndAzureKeyCredential() {
AzureKeyCredential credential = new AzureKeyCredential("key");
assertThrows(
Expand All @@ -179,6 +195,7 @@ public void argumentExceptionOnConnectionStringAndAzureKeyCredential() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void argumentExceptionOnConnectionStringAndTokenCredential() {
TokenCredential tokenCredential = new DefaultAzureCredentialBuilder().build();
assertThrows(
Expand All @@ -190,6 +207,7 @@ public void argumentExceptionOnConnectionStringAndTokenCredential() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void argumentExceptionOnAzureKeyCredentialAndTokenCredential() {
AzureKeyCredential credential = new AzureKeyCredential("key");
TokenCredential tokenCredential = new DefaultAzureCredentialBuilder().build();
Expand All @@ -202,6 +220,7 @@ public void argumentExceptionOnAzureKeyCredentialAndTokenCredential() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void noPipelineWithToken() {
TokenCredential tokenCredential = new DefaultAzureCredentialBuilder().build();
CallAutomationAsyncClient callAutomationAsyncClient = builder
Expand All @@ -214,6 +233,7 @@ public void noPipelineWithToken() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void noCredential() {
assertThrows(
IllegalArgumentException.class, () -> builder
Expand All @@ -223,6 +243,7 @@ public void noCredential() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void noEndpoint() {
assertThrows(
NullPointerException.class, () -> builder
Expand All @@ -231,6 +252,7 @@ public void noEndpoint() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void bothRetryOptionsAndRetryPolicySet() {
assertThrows(IllegalStateException.class, () -> builder
.connectionString(MOCK_CONNECTION_STRING)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.azure.communication.common.CommunicationUserIdentifier;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import java.util.AbstractMap.SimpleEntry;
Expand All @@ -25,6 +26,7 @@
public class CallAutomationClientUnitTests extends CallAutomationUnitTestBase {

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void createCall() {
CallAutomationClient callAutomationClient = getCallAutomationClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -42,6 +44,7 @@ public void createCall() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void createCallWithResponse() {
CallAutomationClient callAutomationClient = getCallAutomationClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -61,6 +64,7 @@ public void createCallWithResponse() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void answerCall() {
CallAutomationClient callAutomationClient = getCallAutomationClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -74,6 +78,7 @@ public void answerCall() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void answerCallWithResponse() {
CallAutomationClient callAutomationClient = getCallAutomationClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -90,6 +95,7 @@ public void answerCallWithResponse() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void redirectCall() {
CallAutomationClient callAutomationClient = getCallAutomationClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -102,6 +108,7 @@ public void redirectCall() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void redirectCallWithResponse() {
CallAutomationClient callAutomationClient = getCallAutomationClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -117,6 +124,7 @@ public void redirectCallWithResponse() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void rejectCall() {
CallAutomationClient callAutomationClient = getCallAutomationClient(new ArrayList<>(
Collections.singletonList(
Expand All @@ -128,6 +136,7 @@ public void rejectCall() {
}

@Test
@Disabled("Disabling test as calling sever is in the process of decommissioning")
public void rejectCallWithResponse() {
CallAutomationClient callAutomationClient = getCallAutomationClient(new ArrayList<>(
Collections.singletonList(
Expand Down
Loading

0 comments on commit b9fe349

Please sign in to comment.