2323import com .google .cloud .compute .v1 .InstanceTemplate ;
2424import com .google .cloud .compute .v1 .InstanceTemplatesClient ;
2525import com .google .cloud .compute .v1 .InstancesClient ;
26- import compute .DeleteInstance ;
26+ import compute .CreateInstance ;
2727import compute .DeleteInstanceTemplate ;
2828import compute .Util ;
2929import java .io .IOException ;
3434import org .junit .jupiter .api .AfterAll ;
3535import org .junit .jupiter .api .Assertions ;
3636import org .junit .jupiter .api .BeforeAll ;
37+ import org .junit .jupiter .api .Disabled ;
3738import org .junit .jupiter .api .Test ;
3839import org .junit .jupiter .api .Timeout ;
3940import org .junit .runner .RunWith ;
@@ -77,8 +78,9 @@ public static void setUp()
7778 Util .cleanUpExistingInstanceTemplates ("test-template-not-consume-" + javaVersion , PROJECT_ID );
7879
7980 // Create resources for testing.
80- CreateInstanceNotConsumeReservation .createInstanceNotConsumeReservation (
81- PROJECT_ID , ZONE , INSTANCE_NOT_CONSUME_RESERVATION_NAME , MACHINE_TYPE );
81+ CreateInstance .createInstance (PROJECT_ID , ZONE , INSTANCE_NOT_CONSUME_RESERVATION_NAME );
82+ // CreateInstanceNotConsumeReservation.createInstanceNotConsumeReservation(
83+ // PROJECT_ID, ZONE, INSTANCE_NOT_CONSUME_RESERVATION_NAME, MACHINE_TYPE);
8284 CreateTemplateNotConsumeReservation .createTemplateNotConsumeReservation (
8385 PROJECT_ID , TEMPLATE_NOT_CONSUME_RESERVATION_NAME , MACHINE_TYPE );
8486 TimeUnit .SECONDS .sleep (30 );
@@ -88,7 +90,7 @@ public static void setUp()
8890 public static void cleanup ()
8991 throws IOException , ExecutionException , InterruptedException , TimeoutException {
9092 // Delete the instance created for testing.
91- DeleteInstance .deleteInstance (PROJECT_ID , ZONE , INSTANCE_NOT_CONSUME_RESERVATION_NAME );
93+ // DeleteInstance.deleteInstance(PROJECT_ID, ZONE, INSTANCE_NOT_CONSUME_RESERVATION_NAME);
9294 DeleteInstanceTemplate .deleteInstanceTemplate (
9395 PROJECT_ID , TEMPLATE_NOT_CONSUME_RESERVATION_NAME );
9496
@@ -97,6 +99,7 @@ public static void cleanup()
9799 instanceTemplatesClient .close ();
98100 }
99101
102+ @ Disabled
100103 @ Test
101104 public void testCreateInstanceNotConsumeReservation () {
102105 Instance instance = instancesClient .get (
0 commit comments