Skip to content

Cloud Storage with local emulator #1731

Closed

Description

@arbesfeld

There are a few "Mock s3" servers that run in memory/disk. Since the google cloud storage and S3 APIs are the same, I was wondering if there was a way to use one of these servers with the Cloud Storage client? If not, what is the recommended way to use this API for local development?

Activity

  1. added
    type: questionRequest for information or clarification. Not an issue.
    api: storageIssues related to the Cloud Storage API.
    on Oct 20, 2016
  2. stephenplusplus commented on Oct 20, 2016

    @stephenplusplus
    Contributor

    Can you link the mock libraries? I'm not sure they'd be the same, but soon we will support using a custom endpoint which accepts the requests from our API (#1630).

  3. arbesfeld commented on Oct 20, 2016

    @arbesfeld
    ContributorAuthor
  4. nfarina commented on Feb 13, 2017

    @nfarina

    I found that it was simple enough to create my own mock classes to emulate Google Cloud Storage just enough for my tests to pass. I posted my code to this gist in case anyone finds it useful as a starting point. Note: written in ES7 with Flow annotations.

  5. lukesneeringer commented on Sep 21, 2017

    @lukesneeringer
    Contributor

    This issue was moved to googleapis/nodejs-storage#18

  6. added a commit that references this issue on Mar 11, 2026
  7. added a commit that references this issue on Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions