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

test/system: podman run update /etc/hosts #12219

Closed
wants to merge 2 commits into from

Conversation

chuanchang
Copy link
Contributor

This test case is used for covering rhbz#1902979.

Signed-off-by: Alex Jia [email protected]

What this PR does / why we need it:

How to verify it

Which issue(s) this PR fixes:

Special notes for your reviewer:

This test case is used for covering rhbz#1902979.

Signed-off-by: Alex Jia <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 8, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: chuanchang
To complete the pull request process, please assign zhangguanzhang after the PR has been reviewed.
You can assign the PR to them by writing /assign @zhangguanzhang in a comment when ready.

The full list of commands accepted by this bot can be found 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

@rhatdan
Copy link
Member

rhatdan commented Nov 8, 2021

@edsantiago PTAL

Copy link
Member

@edsantiago edsantiago left a comment

Choose a reason for hiding this comment

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

Thank you for your PRs!

A few fixes needed. And, in this and all your other PRs, could you resubmit with a more descriptive commit message? A commit message should be something that a future maintainer can read without reference to other sources. It's OK to link to external BZs or issues, but please give a short description of what the problem actually is. (This is especially important with BZs that have a lot of RH-internal-only comments).

@@ -736,4 +736,11 @@ EOF
is "$output" "$random_1" "output matches STDIN"
}

# rhbz#1902979 : podman run fails to update /etc/hosts when --uidmap is provided
@test "podman run update /etc/hosts" {
HOSTS=$(random_string 25)
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion: use singular (HOST), not plural. Plural is confusing here.

@test "podman run update /etc/hosts" {
HOSTS=$(random_string 25)
run_podman run --uidmap 0:10001:10002 --rm --hostname $HOSTS $IMAGE grep $HOSTS /etc/hosts
is "${lines[0]}" ".*$HOSTS.*"
Copy link
Member

Choose a reason for hiding this comment

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

This check is unnecessary: if the grep above were to fail, run_podman would issue a failure.

@@ -736,4 +736,11 @@ EOF
is "$output" "$random_1" "output matches STDIN"
}

# rhbz#1902979 : podman run fails to update /etc/hosts when --uidmap is provided
@test "podman run update /etc/hosts" {
Copy link
Member

Choose a reason for hiding this comment

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

Please make this test name more descriptive, such as by including something about uidmap.

Copy link
Member

Choose a reason for hiding this comment

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

Fixed

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 21, 2021
@umohnani8
Copy link
Member

@chuanchang please rebase

@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 14, 2021
@github-actions
Copy link

A friendly reminder that this PR had no activity for 30 days.

@rhatdan rhatdan closed this Jan 14, 2022
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-pr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants