Skip to content

Commit 338a5d6

Browse files
Fixed tests
1 parent 2acaf13 commit 338a5d6

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

compute/cloud-client/src/test/java/compute/reservation/CrudOperationsReservationIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
@Timeout(value = 6, unit = TimeUnit.MINUTES)
4242
public class CrudOperationsReservationIT {
4343
private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT");
44-
private static final String ZONE = "us-central1-b";
44+
private static final String ZONE = "us-central1-a";
4545
private static final String RESERVATION_NAME = "test-reservation-" + UUID.randomUUID();
4646
private static final int NUMBER_OF_VMS = 3;
4747

compute/cloud-client/src/test/java/compute/reservation/ReservationIT.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
import org.junit.jupiter.api.AfterAll;
4848
import org.junit.jupiter.api.Assertions;
4949
import org.junit.jupiter.api.BeforeAll;
50-
import org.junit.jupiter.api.Order;
5150
import org.junit.jupiter.api.Test;
5251
import org.junit.jupiter.api.Timeout;
5352
import org.junit.runner.RunWith;
@@ -179,18 +178,6 @@ public void testCreateReservationWithRegionInstanceTemplate()
179178
Assert.assertEquals(RESERVATION_NAME_REGIONAL, reservation.getName());
180179
}
181180

182-
@Test
183-
@Order(2)
184-
public void testUpdateVmsForReservation()
185-
throws IOException, ExecutionException, InterruptedException, TimeoutException {
186-
int newNumberOfVms = 5;
187-
Reservation reservation = UpdateVmsForReservation.updateVmsForReservation(
188-
PROJECT_ID, ZONE, RESERVATION_NAME_GLOBAL, newNumberOfVms);
189-
190-
assertNotNull(reservation);
191-
Assert.assertEquals(newNumberOfVms, reservation.getSpecificReservation().getCount());
192-
}
193-
194181
@Test
195182
public void testCreateSharedReservation()
196183
throws ExecutionException, InterruptedException, TimeoutException {

0 commit comments

Comments
 (0)