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

Run SSH e2e test only if SSH keys are present #45165

Merged

Conversation

dims
Copy link
Member

@dims dims commented May 1, 2017

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:

NONE

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 1, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@k8s-github-robot k8s-github-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note-none Denotes a PR that doesn't merit a release note. labels May 1, 2017
@@ -315,6 +315,13 @@ func SkipIfProviderIs(unsupportedProviders ...string) {
}
}

func SkipUnlessSSHKeyPresent() {
_, err := GetSigner(TestContext.Provider)
Copy link
Member

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 {

Copy link
Member Author

Choose a reason for hiding this comment

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

:) fixing

@dims dims force-pushed the run-ssh-test-only-if-key-present branch from ec540b4 to bcdcf9e Compare May 1, 2017 14:09
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.
@dims dims force-pushed the run-ssh-test-only-if-key-present branch from bcdcf9e to 5cd700a Compare May 1, 2017 15:05
@dims dims changed the title Run SSH e2e test only if SSH keys are present [WIP] Run SSH e2e test only if SSH keys are present May 1, 2017
@dims dims changed the title [WIP] Run SSH e2e test only if SSH keys are present Run SSH e2e test only if SSH keys are present May 1, 2017
@fejta
Copy link
Contributor

fejta commented May 1, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 1, 2017
@k8s-github-robot
Copy link

[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 /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 1, 2017
@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 44062, 45165)

@k8s-github-robot k8s-github-robot merged commit 0df0251 into kubernetes:master May 1, 2017
@k8s-github-robot
Copy link

@dims PR needs rebase

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 1, 2017
@dims dims deleted the run-ssh-test-only-if-key-present branch November 16, 2017 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants