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

Default to port 22 when dialing #1568

Merged
merged 1 commit into from
Jul 25, 2023
Merged

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Jul 18, 2023

[NO NEW TESTS NEEDED]

Fixes: containers/podman#19162

@rhatdan
Copy link
Member Author

rhatdan commented Jul 18, 2023

@dustymabe PTAL
@giuseppe @vrothberg @Luap99 @containers/podman-maintainers PTAL

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

Code LGTM but I think we need a regression test

@TomSweeneyRedHat
Copy link
Member

LGTM
once a test is added

@rhatdan
Copy link
Member Author

rhatdan commented Jul 18, 2023

Not sure we can get a regression tests without actually connecting to another machine.

@Luap99
Copy link
Member

Luap99 commented Jul 19, 2023

I think you can add a test like:

func TestDial(t *testing.T) {

At least making sure it fails with connection refused and not with the strconv.Atoi error when the port is unset.

@rhatdan rhatdan force-pushed the ssh branch 2 times, most recently from ef31364 to ea229d7 Compare July 20, 2023 23:58
@rhatdan
Copy link
Member Author

rhatdan commented Jul 20, 2023

@Luap99 are you happy with the test?

@Luap99
Copy link
Member

Luap99 commented Jul 21, 2023

I don't see any test here, did you forgot to push?

[NO NEW TESTS NEEDED]

Fixes: containers/podman#19162

Signed-off-by: Daniel J Walsh <[email protected]>
@rhatdan
Copy link
Member Author

rhatdan commented Jul 21, 2023

@Luap99 should be there now.

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 25, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 4004082 into containers:main Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2023: podman remote error: strconv.Atoi: parsing "": invalid syntax
5 participants