You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/update-datastore/CONTRIBUTING.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@ End-to-end tests should ensure that gcloud-java works when running on the
30
30
31
31
When changes are made to authentication and project ID-related code, authentication and project ID inference should be tested using all relevant methods detailed in the [authentication docs](https://github.com/GoogleCloudPlatform/gcloud-java#authentication) and [project ID docs](https://github.com/GoogleCloudPlatform/gcloud-java#specifying-a-project-id).
32
32
33
+
Known issue: If you have installed the Google Cloud SDK, be sure to log in (using `gcloud auth login`) before running tests. Though the Datastore tests use a local Datastore emulator that doesn't require authentication, they will not run if you have the Google Cloud SDK installed but aren't authenticated.
Copy file name to clipboardExpand all lines: branches/update-datastore/gcloud-java-datastore/src/main/java/com/google/gcloud/spi/DefaultDatastoreRpc.java
Copy file name to clipboardExpand all lines: branches/update-datastore/gcloud-java-datastore/src/test/java/com/google/gcloud/datastore/DatastoreExceptionTest.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,12 +42,15 @@ public void testDatastoreError() throws Exception {
Copy file name to clipboardExpand all lines: branches/update-datastore/gcloud-java-datastore/src/test/java/com/google/gcloud/datastore/DatastoreTest.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -735,7 +735,7 @@ public void testRetryableException() throws Exception {
Copy file name to clipboardExpand all lines: branches/update-datastore/gcloud-java-storage/src/main/java/com/google/gcloud/storage/testing/RemoteGcsHelper.java
+22-3Lines changed: 22 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,10 @@ public StorageOptions options() {
65
65
66
66
/**
67
67
* Deletes a bucket, even if non-empty. Objects in the bucket are listed and deleted until bucket
68
-
* deletion succeeds or {@code timeout} expires.
68
+
* deletion succeeds or {@code timeout} expires. To allow for the timeout, this method uses a
69
+
* separate thread to send the delete requests. Use
70
+
* {@link #forceDelete(Storage storage, String bucket)} if spawning an additional thread is
71
+
* undesirable, such as in the App Engine production runtime.
69
72
*
70
73
* @param storage the storage service to be used to issue requests
71
74
* @param bucket the bucket to be deleted
@@ -88,6 +91,17 @@ public static Boolean forceDelete(Storage storage, String bucket, long timeout,
88
91
}
89
92
}
90
93
94
+
/**
95
+
* Deletes a bucket, even if non-empty. This method blocks until the deletion completes or fails.
96
+
*
97
+
* @param storage the storage service to be used to issue requests
98
+
* @param bucket the bucket to be deleted
99
+
* @throws StorageException if an exception is encountered during bucket deletion
Copy file name to clipboardExpand all lines: branches/update-datastore/gcloud-java-storage/src/test/java/com/google/gcloud/storage/RemoteGcsHelperTest.java
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,36 @@ public void testForceDeleteFail() throws InterruptedException, ExecutionExceptio
0 commit comments