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

Update test scenarios for accounts_password_last_change_is_in_past #10213

Conversation

marcusburghardt
Copy link
Member

Description:

Some CI tests use containers, and those container might not have commands like passwd.
One approach would be to install the package in the test scenarios, but the name of the package that brings up the passwd command differs among distros.
In favor of simplicity, entries were manually created in the /etc/shadow file.
This is sufficient for the context of this rule.

Rationale:

Review Hints:

Automatus Tests should pass in CI tests.

@marcusburghardt marcusburghardt added the Test Suite Update in Test Suite. label Feb 15, 2023
@marcusburghardt marcusburghardt added this to the 0.1.67 milestone Feb 15, 2023
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

rhel8 (from CTF) Environment (using Fedora as testing environment)
Open in Gitpod

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@marcusburghardt marcusburghardt marked this pull request as draft February 15, 2023 10:34
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label Feb 15, 2023
Some CI tests use containers, and those container might not have
commands like passwd. One approach would be to install the package in
the test scenarios, but the name of the package that brings up the
passwd command differs among distros. In favor of simplicity, entries
were manually created in the /etc/shadow file. This is sufficient for
the context of this rule.
@marcusburghardt marcusburghardt force-pushed the accounts_password_last_change_is_in_past_container branch from 517f069 to e7a3d27 Compare February 15, 2023 11:08
@marcusburghardt marcusburghardt marked this pull request as ready for review February 15, 2023 11:58
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Used by openshift-ci bot. label Feb 15, 2023
@marcusburghardt
Copy link
Member Author

FYI @teacup-on-rockingchair

@codeclimate
Copy link

codeclimate bot commented Feb 15, 2023

Code Climate has analyzed commit e7a3d27 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 51.7% (0.0% change).

View more on Code Climate.

@vojtapolasek vojtapolasek self-assigned this Feb 15, 2023
Copy link
Collaborator

@vojtapolasek vojtapolasek left a comment

Choose a reason for hiding this comment

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

Looks good, tests are passing. Thank you.

@vojtapolasek vojtapolasek merged commit c132ed4 into ComplianceAsCode:master Feb 16, 2023
@marcusburghardt marcusburghardt deleted the accounts_password_last_change_is_in_past_container branch February 16, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test Suite Update in Test Suite.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

accounts_password_last_change_is_in_past test scenarios results in unknown for containers
2 participants