File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
compute/cloud-client/src/test/java/compute/reservation Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,17 @@ public void testCreateReservation()
102102
103103 @ Test
104104 @ Order (3 )
105+ public void testGetReservation ()
106+ throws IOException {
107+ Reservation reservation = GetReservation .getReservation (
108+ PROJECT_ID , RESERVATION_NAME , ZONE );
109+
110+ assertNotNull (reservation );
111+ assertThat (reservation .getName ()).isEqualTo (RESERVATION_NAME );
112+ }
113+
114+ @ Test
115+ @ Order (4 )
105116 public void testListReservation () throws IOException {
106117 List <Reservation > reservations =
107118 ListReservations .listReservations (PROJECT_ID , ZONE );
@@ -120,8 +131,6 @@ public void testUpdateVmsForReservation()
120131 Reservation reservation = GetReservation .getReservation (
121132 PROJECT_ID , RESERVATION_NAME , ZONE );
122133
123- assertNotNull (reservation );
124- assertThat (reservation .getName ()).isEqualTo (RESERVATION_NAME );
125134 Assert .assertEquals (newNumberOfVms , reservation .getSpecificReservation ().getCount ());
126135 }
127136}
You can’t perform that action at this time.
0 commit comments