Skip to content

Commit 7d82ec4

Browse files
Disabled Instance creation
1 parent dad792e commit 7d82ec4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import com.google.cloud.compute.v1.InstanceTemplate;
2424
import com.google.cloud.compute.v1.InstanceTemplatesClient;
2525
import com.google.cloud.compute.v1.InstancesClient;
26-
import compute.DeleteInstance;
26+
import compute.CreateInstance;
2727
import compute.DeleteInstanceTemplate;
2828
import compute.Util;
2929
import java.io.IOException;
@@ -34,6 +34,7 @@
3434
import org.junit.jupiter.api.AfterAll;
3535
import org.junit.jupiter.api.Assertions;
3636
import org.junit.jupiter.api.BeforeAll;
37+
import org.junit.jupiter.api.Disabled;
3738
import org.junit.jupiter.api.Test;
3839
import org.junit.jupiter.api.Timeout;
3940
import 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

Comments
 (0)