-
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
Fix handling of multiple filters in podman ps #1345
Conversation
Note to self: manpages and bash completions probably also need updating |
test/e2e/ps_test.go
Outdated
Expect(result.ExitCode()).To(Equal(0)) | ||
Expect(result.OutputToStringArray()[0]).To(Equal(fullCid)) | ||
}) | ||
|
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 this new test might have succeeded with the old behavior. It might be good to create a second container with key1==value2 and then make sure you only get one container back.
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.
One small test tweak suggestion, otherwise LGTM. If you want to tweak the test next week in a separate PR, I'm hip.
I tested the PR and it fixed my bug. Thanks again @mheon ! |
Docker expects multiple filters to be passed with multiple uses of the --filter flag (e.g. --filter=label=a=b --filter=label=c=d) and not a single comma-separated list of filters as we expected. Convert to the Docker format, and make some small cleanups to our handling of filters along the way. Signed-off-by: Matthew Heon <[email protected]>
Signed-off-by: Matthew Heon <[email protected]>
Fixed the test and added another container to make sure the match logic for multiple filters is logical-AND, and updated the manpage. This should be ready now. CI seems to be having its usual issues though. |
bot, retest this please |
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 assuming happy tests
Thanks for the test tweak
LGTM |
@rh-atomic-bot r=umohnani8 |
📌 Commit 9c5f809 has been approved by |
Signed-off-by: Matthew Heon <[email protected]> Closes: #1345 Approved by: umohnani8
☀️ Test successful - status-papr |
Docker expects multiple filters to be passed with multiple uses of the --filter flag (e.g. --filter=label=a=b --filter=label=c=d) and not a single comma-separated list of filters as we expected. Convert to the Docker format, and make some small cleanups to our handling of filters along the way.
Fixes #1341