samples(Storage Batch Operations): Add samples and tests for storage batch operations#3127
samples(Storage Batch Operations): Add samples and tests for storage batch operations#3127mahendra-google wants to merge 19 commits intoGoogleCloudPlatform:mainfrom
Conversation
|
@purva9413 After looking at errors from build log , I think Storage Batch Operations APIs are not enabled on both Kokoro servers i.e. Kokoro CI Linux 3 and Kokoro CI Windows 3. |
|
The API has been enabled but there are failing tests. Please take a look and also please address comments from the review. Thanks! |
|
@purva9413 This test is not failing locally. Could you add kokoro label once I have done some code changes? |
|
@purva9413 Could you add kokoro label again?. This time I have added the null-conditional operator (?.) for all retrievedResponse properties and also added console logs to print those individual values to find exactly which value is null. |
|
@purva9413 This PR is ready for review. |
|
@purva9413 Could you review the retry logic implemented as a part of the recent code changes, with reference to the IAM pull request? |
|
Please fix failing tests. |
…eBatchJobTest Remove unused private fields `_kmsKey`, `_keyRingId`, `_cryptoKeyId`, and `_cryptoKeyName` from CreateBatchJobTest to improve code clarity and maintainability.
…easing retry attempts Extended the retry attempts in cancelBatchJobTest from 100 to 1000. This ensures the test accounts for delayed state transitions in the Koko environment while maintaining efficiency via an early exit once the 'Canceled' state is reached.
Updated Google.Cloud.Storage.V1 to 4.14.0 and Google.Cloud.StorageBatchOperations.V1 to 1.0.0-beta05.
This PR contains samples and test cases to create, list, get, cancel and delete storage batch job operations.
The region tags used to create samples are as below:-