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

postfix_network_listening_disabled tests #6708

Merged
merged 1 commit into from Mar 17, 2021

Conversation

mildas
Copy link
Contributor

@mildas mildas commented Mar 16, 2021

Description:

Add a new test scenario and fix existing ones. The existing ones didn't work as expected because when postfix is not running, the /etc/postfix/main.cf file is not checked at all.

@@ -1,4 +1,6 @@
#!/bin/bash
# packages = postfix

echo "inet_interfaces = some_different_interface,loopback-only" > /etc/postfix/main.cf
Copy link
Member

Choose a reason for hiding this comment

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

I see value in testing if a correct substring is not mistaken as a correct configuration, the rule description mentions that the only value configured should be the one from the variable.

Copy link
Member

Choose a reason for hiding this comment

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

I see that the original test "tested" two things at the same time, so it could be put into a test scenario of its own.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good point. I have added a new test scenario similar to the previous one.

Unfortunately, in the new test scenario, I have to start postfix first and then add the configuration. It's because having inet_interfaces = some_different_interface,loopback-only requires to have interface called loopback-only. Without that, you can't start postfix.

@openshift-ci
Copy link

openshift-ci bot commented Mar 16, 2021

@mildas: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-ocp4-cis-node 61dcf37 link /test e2e-aws-ocp4-cis-node

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@yuumasato yuumasato self-assigned this Mar 17, 2021
@yuumasato yuumasato added this to the 0.1.56 milestone Mar 17, 2021
@yuumasato yuumasato merged commit 9bbca5e into ComplianceAsCode:master Mar 17, 2021
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.

None yet

2 participants