Skip to content
This repository was archived by the owner on Jul 15, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
import com.google.cloud.compute.v1.Firewall;
import com.google.cloud.compute.v1.FirewallsClient;
import com.google.cloud.compute.v1.GetInstanceRequest;
import com.google.cloud.compute.v1.Image;
import com.google.cloud.compute.v1.ImagesClient;
import com.google.cloud.compute.v1.Instance;
import com.google.cloud.compute.v1.InstanceGroupManager;
import com.google.cloud.compute.v1.InstanceGroupManagersClient;
Expand All @@ -39,7 +37,6 @@
import com.google.cloud.compute.v1.ShieldedInstanceConfig;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
Expand Down Expand Up @@ -229,28 +226,6 @@ public void testApiError() {
}
}

@Test
public void testInt64() throws IOException, ExecutionException, InterruptedException {
// we want to test a field with format:int64
String name = generateRandomName("image");
List<Long> licenseCodes = Collections.singletonList(5543610867827062957L);
String sourceImage = "projects/debian-cloud/global/images/debian-10-buster-v20210721";
ImagesClient imagesClient = ImagesClient.create();
Image image =
Image.newBuilder()
.setName(name)
.addAllLicenseCodes(licenseCodes)
.setSourceImage(sourceImage)
.build();
try {
imagesClient.insertAsync(DEFAULT_PROJECT, image).get();
Image fetched = imagesClient.get(DEFAULT_PROJECT, name);
Assert.assertEquals(licenseCodes, fetched.getLicenseCodesList());
} finally {
imagesClient.deleteAsync(DEFAULT_PROJECT, name).get();
}
}

@Test
public void testCapitalLetterField()
throws IOException, ExecutionException, InterruptedException {
Expand Down