3838import org .junit .jupiter .api .AfterAll ;
3939import org .junit .jupiter .api .Assertions ;
4040import org .junit .jupiter .api .BeforeAll ;
41- import org .junit .jupiter .api .MethodOrderer ;
42- import org .junit .jupiter .api .Order ;
4341import org .junit .jupiter .api .Test ;
44- import org .junit .jupiter .api .TestMethodOrder ;
4542import org .junit .jupiter .api .Timeout ;
4643import org .junit .runner .RunWith ;
4744import org .junit .runners .JUnit4 ;
4845
4946@ RunWith (JUnit4 .class )
5047@ Timeout (value = 25 , unit = TimeUnit .MINUTES )
51- @ TestMethodOrder (MethodOrderer . OrderAnnotation . class )
5248public class ReservationIT {
5349
5450 private static final String PROJECT_ID = System .getenv ("GOOGLE_CLOUD_PROJECT" );
@@ -156,7 +152,6 @@ public static void cleanup()
156152 }
157153
158154 @ Test
159- @ Order (1 )
160155 public void testCreateReservationWithGlobalInstanceTemplate ()
161156 throws IOException , ExecutionException , InterruptedException , TimeoutException {
162157 CreateReservationForInstanceTemplate .createReservationForInstanceTemplate (
@@ -182,17 +177,4 @@ public void testCreateReservationWithRegionInstanceTemplate()
182177 Assert .assertTrue (reservation .getZone ().contains (ZONE ));
183178 Assert .assertEquals (RESERVATION_NAME_REGIONAL , reservation .getName ());
184179 }
185-
186- @ Test
187- @ Order (2 )
188- public void testUpdateVmsForReservation ()
189- throws IOException , ExecutionException , InterruptedException , TimeoutException {
190- int newNumberOfVms = 5 ;
191- UpdateVmsForReservation .updateVmsForReservation (
192- PROJECT_ID , ZONE , RESERVATION_NAME_GLOBAL , newNumberOfVms );
193- Reservation reservation = GetReservation .getReservation (
194- PROJECT_ID , RESERVATION_NAME_GLOBAL , ZONE );
195-
196- Assert .assertEquals (newNumberOfVms , reservation .getSpecificReservation ().getCount ());
197- }
198180}
0 commit comments