-
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
Add tests to make sure mounts.conf does not warn on missing content #21272
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
test/system/030-run.bats
Outdated
skip_if_remote "--default-mounts-file is not supported for remote clients" | ||
MOUNTS_CONF=$PODMAN_TMPDIR/mounts.conf | ||
run_podman run --rm --default-mounts-file=${MOUNTS_CONF} $IMAGE echo test1 | ||
assert "$output" = "test1" "No warning messages" |
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.
Request: unique test failure messages: "No warning messages with missing mounts.conf", "...with empty mounts.conf", "with bogus mounts.conf". That makes it so much nicer for the monkey looking at test failures.
test/system/030-run.bats
Outdated
randcontent=$(random_string 30) | ||
mkdir -p $PODMAN_TMPDIR/mounts | ||
echo $randcontent > $PODMAN_TMPDIR/mounts/$randfile | ||
echo $PODMAN_TMPDIR/mounts:/run/secrets > $PODMAN_TMPDIR/mounts.conf |
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.
Could use ${MOUNTS_CONF}
instead of $PODMAN_TMPDIR/mounts.conf
for consistency. Same for the other reference above.
5315c33
to
7197204
Compare
Signed-off-by: Daniel J Walsh <[email protected]>
@edsantiago @vrothberg @ashley-cui @baude @giuseppe @umohnani8 @Luap99 merge me. |
LGTM |
LGTM |
/lgtm |
11c37d5
into
containers:main
Does this PR introduce a user-facing change?