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
Local testing for google cloud storage #1032
Comments
I'm not sure I understand. Can you give an example of what you're trying to do and what's happening? |
Sorry I didn't write it properly, |
I think this is asking for a local server that "acts like Google Cloud Storage" for the purpose of testing -- which I don't believe is available :( (/cc @Capstan who may know more than I do). @stephenplusplus , for our tests, we mock out the calls first, right? Then for system tests we actually do write directly to GCS? |
We do use mocks for our unit tests and the real thing for our system tests. For your tests, @ymohii, I wouldn't cover anything that we already do. You can just stub out your calls to gcloud to pull out your callback. Then feed the callback simulated responses from gcloud-- you can get those from running the real thing once and taking a snapshot of the response. Hope this is helpful. If it's available, I can try to help out in your actual code base. Here's an example of how a library using gcloud is testing: https://github.com/iamat/exo-dataset/tree/master/test |
@stephenplusplus @jgeewax |
No problem, thanks for asking! |
I'm writing an app with gcloud-node that needs to access Google Cloud Storage, but I could not find a way to test my app locally without writing my app GCS Buckets. Am i missing something ?
The text was updated successfully, but these errors were encountered: