-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 E2E test for multiple credentials #3559
Add E2E test for multiple credentials #3559
Conversation
/kind changelog-not-required |
2b8bc49
to
3b969b0
Compare
3b969b0
to
3e1b2a5
Compare
This change adds an E2E test which exercises the mulitple credentials feature added in vmware-tanzu#3489. The test creates a secret from the given credentials and creates a BackupStorageLocation which uses those credentials. A backup and restore is then performed to the default BSL and to the newly created BSL. This change adds new flags to the E2E test suite to configure the BSL created and used in the test. Signed-off-by: Bridget McErlean <[email protected]>
3e1b2a5
to
9ad1e89
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor suggestions.
It is so good to have these e2e tests! This looks great.
test/e2e/backup_test.go
Outdated
"Failed to successfully backup and restore Kibishii namespace") | ||
}) | ||
|
||
It("should successfully back up and restore to multiple BackupStorageLocations with unique credentials", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test name could be more precise and helpful. By itself it is not operating with multiple BSLs, only an additional one besides the existing default. So maybe if it's named "should successfully back up and restore to an additional BackupStorageLocation with unique credentials" it'd avoid people looking for more than one BSL being used in this test (I have no idea who'd do that... maybe me :) ).
These are such nits:
s/additionalBsl/additionalBSL
s/additionalBslCredentials/additionalBSLCredentials
s/additionalBslBucket/additionalBSLBucket
etc
Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)
Signed-off-by: Bridget McErlean <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'd like for this to handle more than one credential, but it's OK for this release. Would you add an issue please to be able to test with N credentials. Thanks!
Please add a summary of your change
This change adds an E2E test which exercises the mulitple credentials
feature added in #3489. The test creates a secret from the given
credentials and creates a BackupStorageLocation which uses those
credentials. A backup and restore is then performed to the default
BSL and to the newly created BSL.
This change adds new flags to the E2E test suite to configure the BSL
created and used in the test.
Signed-off-by: Bridget McErlean [email protected]
Does your change fix a particular issue?
Part of #3304
Please indicate you've done the following:
/kind changelog-not-required
.site/content/docs/main
.