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: Move firewalld tests into one file #994

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Mingli-Yu
Copy link

Moving firewalld related tests into one file should be convenient for the user who doesn't care firewalld.

Copy link
Contributor

openshift-ci bot commented May 20, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Mingli-Yu
Once this PR has been reviewed and has the lgtm label, please assign jwhonce for approval. For more information see the Kubernetes Code Review Process.

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

Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

@@ -329,3 +329,71 @@ function setup() {
expected_rc=1 run_netavark -f ${TESTSDIR}/testfiles/invalid-port.json setup $(get_container_netns_path)
assert_json ".error" "invalid host ip \"abcd\" provided for port 8080" "host ip error"
}

@test "$fw_driver - test firewalld reload" {
Copy link
Member

Choose a reason for hiding this comment

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

you need to fix the test name to use the real driver and make the test use NETAVARK_FW=iptables run_netavark ... to set the correct driver.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks! The change is in the latest PR now.

@@ -329,3 +329,71 @@ function setup() {
expected_rc=1 run_netavark -f ${TESTSDIR}/testfiles/invalid-port.json setup $(get_container_netns_path)
assert_json ".error" "invalid host ip \"abcd\" provided for port 8080" "host ip error"
}

@test "$fw_driver - test firewalld reload" {
setup_firewalld
Copy link
Member

Choose a reason for hiding this comment

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

this must be dropped now that it is part of the firewalld file

Copy link
Author

Choose a reason for hiding this comment

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

Thanks! The change is in the latest PR now.

Moving firewalld related tests into one file should be convenient
for the user who doesn't care firewalld.

Signed-off-by: Mingli Yu <[email protected]>
@Mingli-Yu
Copy link
Author

ping.

Thanks!

@Luap99
Copy link
Member

Luap99 commented Jun 17, 2024

@Mingli-Yu the tests are failing so there isn't much point for me to review this. It is up to you to fix that.
Also you have not fixed my earlier review comment with the $fw_driver in the test name which is not correct

@Mingli-Yu
Copy link
Author

@Luap99 Many thanks for your respond! I actually didn't fix any test cases right now, just try to group all firewalld related cases into one file. And latest PR did have the problem with the $fw_driver in the test name. Do you plan to group all firewalld related cases into one file? If yes, I will send a new PR then.

@Luap99
Copy link
Member

Luap99 commented Jun 19, 2024

I don't have any plans in that regard. These are upstream tests that work for us. If others like to make them work in their environments and send PRs to do that is fine for me but I am not interesting in spending a bunch of time to get them work in every possible scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants