Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support using GCS emulators #176

Closed
manuteleco opened this issue Jul 23, 2023 · 0 comments · Fixed by #177
Closed

Support using GCS emulators #176

manuteleco opened this issue Jul 23, 2023 · 0 comments · Fixed by #177

Comments

@manuteleco
Copy link
Contributor

Official Google Cloud Storage libraries usually allow configuring them to perform requests against a GCS emulator server, instead of the real service API.

The user can define a STORAGE_EMULATOR_HOST environment variable pointing to a emulator server. When defined, client libraries will:

  • Direct GCS API requests to that host
  • Disable (or don't enforce) authentication

It would be great to have support for GCS emulators in googleCloudStorageR as well. This is generally useful in the context of automated tests. And depending on the emulator implementation, it can even give local filesystem support to applications that were previously hardwired to use GCS.

I've already sketched a solution that I have been using for my own purposes in the last few days. I'll open a PR shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant