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

Add mock test for GCS #82

Merged
merged 1 commit into from
Jan 4, 2019
Merged

Conversation

swapnilgm
Copy link
Contributor

@swapnilgm swapnilgm commented Dec 11, 2018

Signed-off-by: Swapnil Mhamane [email protected]

What this PR does / why we need it:
This PR adds mock client for GCS snapstore. Please check #70 for further details.
Which issue(s) this PR fixes:
Fixes #70
Special notes for your reviewer:
Please check the GCS support throully.
Release note:

Add mock test for GCS provider.

@swapnilgm swapnilgm added platform/gcp Google cloud platform/infrastructure size/s Size of pull request is small (see gardener-robot robot/bots/size.py) component/etcd-backup-restore ETCD Backup & Restore kind/test Test priority/normal area/robustness Robustness, reliability, resilience related needs/lgtm Needs approval for merging needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) status/new Issue is new and unprocessed labels Dec 11, 2018
Copy link
Collaborator

@shreyas-s-rao shreyas-s-rao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@swapnilgm Thanks for the well-written PR! Other than a couple of minor changes in the comments, it looks good to me. Please address those changes. Thanks.

"github.com/sirupsen/logrus"
"google.golang.org/api/iterator"
)

// GCSSnapStore is snapstore with local disk as backend
// GCSSnapStore is snapstore with local disk as backend.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modify comment to GCSSnapStore is a GCS-backed snapstore.
Also have a look at

// S3SnapStore is snapstore with local disk as backend
and modify if possible.

@swapnilgm swapnilgm force-pushed the gcs-mock-test branch 3 times, most recently from f8fcffb to 731b3a7 Compare January 2, 2019 08:02
Signed-off-by: Swapnil Mhamane <[email protected]>
@swapnilgm swapnilgm added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) status/new Issue is new and unprocessed labels Jan 3, 2019
@gardener-robot-ci-1 gardener-robot-ci-1 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jan 3, 2019
@swapnilgm
Copy link
Contributor Author

@shreyas-s-rao Thank you for the review. And sorry for the delay. I have updated the PR. PTAL.

Copy link
Contributor

@georgekuruvillak georgekuruvillak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@swapnilgm swapnilgm merged commit 26f7194 into gardener:master Jan 4, 2019
@swapnilgm swapnilgm deleted the gcs-mock-test branch January 4, 2019 15:01
@PadmaB PadmaB modified the milestones: 0.4.1, --- Jan 23, 2019
@gardener-robot gardener-robot added priority/3 Priority (lower number equals higher priority) and removed priority/3 Priority (lower number equals higher priority) labels Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/robustness Robustness, reliability, resilience related component/etcd-backup-restore ETCD Backup & Restore kind/test Test needs/lgtm Needs approval for merging needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) platform/gcp Google cloud platform/infrastructure size/s Size of pull request is small (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add mock tests for different cloud providers
6 participants