See: Description
Class | Description |
---|---|
RemoteStorageHelper |
Utility to create a remote storage configuration for testing.
|
StorageRpcTestBase |
A stub implementation of
StorageRpc which can be used outside of the Storage module for
testing purposes. |
Exception | Description |
---|---|
RemoteStorageHelper.StorageHelperException |
A simple usage example:
Before the test:
RemoteStorageHelper helper = RemoteStorageHelper.create();
Storage storage = helper.getOptions().getService();
String bucket = RemoteStorageHelper.generateBucketName();
storage.create(BucketInfo.of(bucket));
After the test:
RemoteStorageHelper.forceDelete(storage, bucket, 5, TimeUnit.SECONDS);
Copyright © 2023 Google LLC. All rights reserved.