Skip to content

Commit e875ce4

Browse files
committed
---
yaml --- r: 4865 b: refs/heads/logging-alpha c: 514e3fe h: refs/heads/master i: 4863: 642b5f1
1 parent dc813e9 commit e875ce4

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ refs/heads/compute-alpha: 969cba2627f1d53d352cc4a5ffe0879dacf65e6c
1212
refs/heads/dns-alpha: 2f90e7e338349287ace33375896907af0f032ca1
1313
refs/heads/dns-alpha-batch: 17442b07867021b85d0452f5f3eda29a3413288f
1414
refs/heads/gcs-nio: 283aeaf15efdcf3621eb6859f05e55ad7764375d
15-
refs/heads/logging-alpha: 6f9ff3478f7eb7b85ae3da36d70ca28f656b9ab9
15+
refs/heads/logging-alpha: 514e3fe873d50ddb5adf1e79f30b70db64fceaee
1616
refs/tags/v0.1.0: a615317f7424ed58621b1f65d5c4d8cbbe8a6ed8
1717
refs/tags/v0.1.1: 7a7f6985fe465e9dd6a075af55493f42b4933be0
1818
refs/tags/v0.1.2: 3eb3fe866ba22487686048f45d927b8c8638ea3f

branches/logging-alpha/gcloud-java-compute/src/main/java/com/google/gcloud/compute/testing/RemoteComputeHelper.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ public ComputeOptions options() {
5454

5555
/**
5656
* Returns a base name for testing resources generated using a random UUID. This base name can be
57-
* prepended to resource names to prevent name clashes.
57+
* prepended to resource names to prevent name clashes. This method always returns a 30 characters
58+
* long prefix. Since Compute Engine resource names can be at most 63 characters long your suffix
59+
* should be no longer than 33 characters.
5860
*/
5961
public static String baseResourceName() {
6062
return "test-" + UUID.randomUUID().toString().replace("-", "").substring(0, 24) + "-";
@@ -69,8 +71,7 @@ public static String baseResourceName() {
6971
* @return A {@code RemoteComputeHelper} object for the provided options
7072
* @throws ComputeHelperException if {@code keyStream} is not a valid JSON key stream
7173
*/
72-
public static RemoteComputeHelper create(String projectId, InputStream keyStream)
73-
throws ComputeHelperException {
74+
public static RemoteComputeHelper create(String projectId, InputStream keyStream) {
7475
try {
7576
ComputeOptions computeOptions = ComputeOptions.builder()
7677
.authCredentials(AuthCredentials.createForJson(keyStream))

0 commit comments

Comments
 (0)