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

Find a way to integration test GCS #66

Open
discentem opened this issue May 2, 2023 · 4 comments
Open

Find a way to integration test GCS #66

discentem opened this issue May 2, 2023 · 4 comments
Assignees
Labels
Google Cloud Storage FR/Bugs related to GCS store implementation

Comments

@discentem
Copy link
Owner

we have minio for s3 but it's been hard to find something for GCS.

Maybe https://github.com/oittaa/gcp-storage-emulator?

@discentem discentem added the Google Cloud Storage FR/Bugs related to GCS store implementation label May 2, 2023
@discentem
Copy link
Owner Author

https://github.com/fsouza/fake-gcs-server looks much better

@radsec
Copy link
Collaborator

radsec commented May 11, 2023

I like this example the best: https://github.com/oittaa/gcp-storage-emulator. It is a simple binary that appears to just mock GCS calls which is sufficient for integration testing the functions we have.

@discentem
Copy link
Owner Author

I think I personally prefer fsouza/fake-gcs-server as it can be used as a go library (and therefore unit tests): https://github.com/fsouza/fake-gcs-server/blob/v1.45.1/fakestorage/server_test.go#L233

@discentem
Copy link
Owner Author

I've added unit tests here: #105

fake-gcs-server also provides a docker container so we can use that for integration tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Google Cloud Storage FR/Bugs related to GCS store implementation
Projects
None yet
Development

No branches or pull requests

3 participants