-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Run SSH e2e test only if SSH keys are present #45165
Run SSH e2e test only if SSH keys are present #45165
Conversation
test/e2e/framework/util.go
Outdated
@@ -315,6 +315,13 @@ func SkipIfProviderIs(unsupportedProviders ...string) { | |||
} | |||
} | |||
|
|||
func SkipUnlessSSHKeyPresent() { | |||
_, err := GetSigner(TestContext.Provider) |
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.
if _, err := GetSigner(TestContext.Provider); err != nil {
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.
:) fixing
ec540b4
to
bcdcf9e
Compare
Not all CI systems support ssh keys to be present on the node. This supports the case where "local" provider is being used when running e2e test, but the environment does not have a SSH key.
bcdcf9e
to
5cd700a
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, fejta
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 44062, 45165) |
@dims PR needs rebase |
What this PR does / why we need it:
Not all CI systems support ssh keys to be present on the node. This
supports the case where "local" provider is being used when running
e2e test, but the environment does not have a SSH key.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
Release note: