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
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public static boolean waitForConnectionIsInState(String connectionUuid, EquinixS
}
}
try {
Thread.sleep(15000);
Thread.sleep(30000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
Expand All @@ -390,7 +390,7 @@ private ConnectionSearchResponse getConnections() throws ApiException {
SearchRequest searchRequest = new SearchRequest()
.filter(new Expression()
.addAndItem(new Expression()
.property(SearchFieldName._OPERATION_PROVIDERSTATUS)
.property(SearchFieldName.OPERATION_PROVIDERSTATUS)
.operator(Expression.OperatorEnum.EQUAL)
.values(singletonList(ProviderStatus.AVAILABLE.getValue()))))
.pagination(new PaginationRequest().limit(5).offset(10))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* API tests for MetrosApi
*/
public class MetrosApiTest {
private final String metroCode = "DC";
private final String metroCode = "SV";

@Test
public void getMetroByCode() throws ApiException {
Expand All @@ -35,7 +35,7 @@ public void getMetroByCode() throws ApiException {

@Test
public void getMetros() throws ApiException {
MetroResponse metroResponse = metrosApi.getMetros(Presence.MY_PORTS, 1, 10);
MetroResponse metroResponse = metrosApi.getMetros(null,1, 10);
assertEquals(200, metrosApi.getApiClient().getStatusCode());
boolean metroFound = metroResponse.getData().stream().anyMatch(metro -> metro.getCode().equals(metroCode));
assertTrue(metroFound);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static void waitForDirectTypeIsProvisioned(UUID routingProtocolUuid, Str
break;
}
try {
Thread.sleep(3000);
Thread.sleep(8000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
Expand Down
Loading