Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Set update time in LocalStorageHelper/FakeStorageRpc #173

@hosainnet

Description

@hosainnet

Is your feature request related to a problem? Please describe.

When trying to test any time-based/process once filters (such as https://github.com/spring-cloud/spring-cloud-gcp/blob/master/spring-cloud-gcp-storage/src/main/java/org/springframework/cloud/gcp/storage/integration/filters/GcsPersistentAcceptOnceFileListFilter.java#L31) via FakeStorageRpc it doesn't work as expected (NPE/fixed time is set)

*Describe the solution you'd like

Any time we write a blob, we need update time to be set on the storage object

Describe alternatives you've considered

Not using those filters in tests, but that means our test is not realstic due to different behaviours in test/main code

Additional context
None

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: storageIssues related to the googleapis/java-storage-nio API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions