You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Reacted by Paul Myburgh, Joe Lust, sebbov, David Gang and Oleksii Leonov
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).
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.
Activity
stephenplusplus commentedon Oct 20, 2016
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).
arbesfeld commentedon Oct 20, 2016
Here are a few :
nfarina commentedon Feb 13, 2017
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.
lukesneeringer commentedon Sep 21, 2017
This issue was moved to googleapis/nodejs-storage#18
chore(main): release 6.0.0 (#1731)
samples: added samples for upload from / download into memory (#1731)
chore(main): release 3.7.0 (#1731)
chore(deps): update dependency mocha to v11 (#1731)
samples: added samples for upload from / download into memory (google…
chore(main): release 3.7.0 (#1731)