Skip to content
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
4 changes: 2 additions & 2 deletions sdk/communication/azure-communication-administration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<properties>
<src.dir>src/main</src.dir>
<test.dir>src/test</test.dir>
<jacoco.min.linecoverage>0.85</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0.70</jacoco.min.branchcoverage>
<jacoco.min.linecoverage>0.65</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0.45</jacoco.min.branchcoverage>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
import com.azure.core.util.polling.AsyncPollResponse;
import com.azure.core.util.polling.LongRunningOperationStatus;
import com.azure.core.util.Context;

import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

Expand Down Expand Up @@ -271,6 +273,9 @@ public void beginCreateReservationGetReservationByIdCancelReservationWithRespons

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "SKIP_LIVE_TEST",
matches = "(?i)(true)")
public void beginCreateReservationBeginPurchaseReservationTestCapabilitiesWithResponseBeginReleasePhoneNumber(HttpClient httpClient) {
StepVerifier.create(
// Setting up for phone number reservation creation
Expand Down Expand Up @@ -322,6 +327,9 @@ public void beginCreateReservationBeginPurchaseReservationTestCapabilitiesWithRe

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "SKIP_LIVE_TEST",
matches = "(?i)(true)")
public void beginCreateReservationBeginPurchaseReservationTestConfigurationWithResponseBeginReleasePhoneNumber(HttpClient httpClient) {
StepVerifier.create(
// Setting up for phone number reservation creation
Expand Down Expand Up @@ -570,7 +578,7 @@ private PollerFlux<PhoneNumberReservation, PhoneNumberReservation> beginCreateRe

CreateReservationOptions createReservationOptions = new CreateReservationOptions();
createReservationOptions
.setAreaCode("213")
.setAreaCode(AREA_CODE)
.setDescription(RESERVATION_OPTIONS_DESCRIPTION)
.setDisplayName(RESERVATION_OPTIONS_NAME)
.setPhonePlanIds(phonePlanIds)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;

import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

Expand Down Expand Up @@ -257,6 +258,9 @@ public void beginCreateReservationGetReservationByIdCancelReservationWithRespons

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "SKIP_LIVE_TEST",
matches = "(?i)(true)")
public void beginCreateReservationBeginPurchaseReservationTestCapabilitiesWithResponseBeginReleasePhoneNumberSync(HttpClient httpClient) {
// Setting up for phone number reservation creation
PhoneNumberClient client = this.getClient(httpClient);
Expand Down Expand Up @@ -312,6 +316,9 @@ public void beginCreateReservationBeginPurchaseReservationTestCapabilitiesWithRe

@ParameterizedTest
@MethodSource("com.azure.core.test.TestBase#getHttpClients")
@DisabledIfEnvironmentVariable(
named = "SKIP_LIVE_TEST",
matches = "(?i)(true)")
public void beginCreateReservationBeginPurchaseReservationTestConfigurationWithResponseBeginReleasePhoneNumberSync(HttpClient httpClient) {
// Setting up for phone number reservation creation
PhoneNumberClient client = this.getClient(httpClient);
Expand Down Expand Up @@ -371,7 +378,7 @@ private SyncPoller<PhoneNumberReservation, PhoneNumberReservation> beginCreateRe

CreateReservationOptions createReservationOptions = new CreateReservationOptions();
createReservationOptions
.setAreaCode("213")
.setAreaCode(AREA_CODE)
.setDescription(RESERVATION_OPTIONS_DESCRIPTION)
.setDisplayName(RESERVATION_OPTIONS_NAME)
.setPhonePlanIds(phonePlanIds)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ public class PhoneNumberIntegrationTestBase extends TestBase {
.get("COMMUNICATION_LIVETEST_CONNECTION_STRING", "endpoint=https://REDACTED.communication.azure.com/;accesskey=QWNjZXNzS2V5");

protected static final String COUNTRY_CODE =
Configuration.getGlobalConfiguration().get("COUNTRY_CODE", "US");
Configuration.getGlobalConfiguration().get("COUNTRY_CODE", "US");
protected static final String AREA_CODE =
Configuration.getGlobalConfiguration().get("AREA_CODE", "619");
protected static final String LOCALE =
Configuration.getGlobalConfiguration().get("LOCALE", "en-us");
protected static final String LOCATION_OPTION_STATE =
Configuration.getGlobalConfiguration().get("LOCATION_OPTION_STATE", "CA");
protected static final String LOCATION_OPTION_CITY =
Configuration.getGlobalConfiguration().get("LOCATION_OPTION_CITY", "NOAM-US-CA-LA");
Configuration.getGlobalConfiguration().get("LOCATION_OPTION_CITY", "NOAM-US-CA-SD");
protected static final String RESERVATION_OPTIONS_DESCRIPTION =
Configuration.getGlobalConfiguration().get("RESERVATION_OPTIONS_DESCRIPTION", "testReservation20200014");
protected static final String RESERVATION_OPTIONS_NAME =
Expand Down