-
Notifications
You must be signed in to change notification settings - Fork 2.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
test connection add #12036
test connection add #12036
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jwhonce 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 |
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.
I think you accidentally helpers.bash?
negatedFailureMessage string | ||
} | ||
|
||
func VerifyService(name, uri, identity interface{}) OmegaMatcher { |
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.
I like this validation of a given service, but should we add, in CI a generic way to actually test the given connection? Not sure if this already exists but could be helpful for some basic use cases
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.
@cdoern Define "test" that you desire. Round trip ping? Just a connection?
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.
just a simple connection would be useful to validate what the user has given is valid syntax and a valid url
@jwhonce all kinds of unhappy tests |
Would you mind removing |
ad0ca37
to
f28d195
Compare
Already done. |
3d1e956
to
9d65df5
Compare
5fc3034
to
87ab0f9
Compare
@cevich I see in lib.sh where the ssh key generation should happen but when the test code runs ~/.ssh has only the |
@jwhonce this is an easy area for confusion. That function runs as root, so we generate a key for root and authorize it for the user. So all you need is a second go at that, but as the user... |
...okay, that PR should help you out (assuming its CI passes) |
b82e66d
to
5e06ffa
Compare
@containers/podman-maintainers PTAL |
* Fix connection JSON encoding * Add custom ginkgo matchers for connection testing * Cleanup code Fixes containers#11984 Signed-off-by: Jhon Honce <[email protected]>
@jwhonce LGTM. Just the changes in tests were too out-of-context for me so I'll wait for CI to verify that. |
/lgtm |
Fixes #11984
Signed-off-by: Jhon Honce [email protected]