Skip to content

Comments

test(block/gs): run pre-signed URL test with fake-gcs-server#9987

Closed
skshetry wants to merge 1 commit intotreeverse:masterfrom
skshetry:saugat/gs-presigned-url-unit-test
Closed

test(block/gs): run pre-signed URL test with fake-gcs-server#9987
skshetry wants to merge 1 commit intotreeverse:masterfrom
skshetry:saugat/gs-presigned-url-unit-test

Conversation

@skshetry
Copy link
Contributor

Add nowFactory injection and explicit signing credentials to enable proper testing of GetPreSignedURL with fake-gcs-server. This follows the same pattern used in the Azure adapter.

  • Add WithNowFactory option to mock time.Now() for deterministic tests
  • Add WithPresignedCredentials option for fake-gcs-server signing
  • Remove "no credentials found" test skip workaround
  • Include test RSA private key for URL signing

Related:

Add `nowFactory` injection and explicit signing credentials to enable
proper testing of GetPreSignedURL with `fake-gcs-server`. This follows
the same pattern used in the Azure adapter.

- Add WithNowFactory option to mock time.Now() for deterministic tests
- Add WithPresignedCredentials option for fake-gcs-server signing
- Remove "no credentials found" test skip workaround
- Include test RSA private key for URL signing
@github-actions github-actions bot added area/testing Improvements or additions to tests area/block-adapter labels Jan 16, 2026
@skshetry skshetry closed this Jan 16, 2026
@skshetry skshetry deleted the saugat/gs-presigned-url-unit-test branch January 16, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/block-adapter area/testing Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant