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

OCP4: Add remediation equality unit tests #5743

Merged
merged 3 commits into from
May 7, 2020

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented May 7, 2020

The tests check that remediations don't change files in inconsistent ways. This way we can keep a golden configuration for a specific service, and so remediations will work in the way that machine-config-operator expects.

JAORMX and others added 3 commits May 7, 2020 11:02
This needed to be fixed manually since without the fix we won't read
MachineConfigs properly.

Co-Authored-By: Jakub Hrozek <jhrozek@redhat.com>
If a file is changed in MachineConfig, it needs to have the same
contents, else the machine-config-operator won't be able to properly
reconcile the file.

Co-Authored-By: Jakub Hrozek <jhrozek@redhat.com>
Without this flag, running unit tests locally might give cached
results, which might be stale.

Co-Authored-By: Jakub Hrozek <jhrozek@redhat.com>
Copy link
Collaborator

@jhrozek jhrozek left a comment

Choose a reason for hiding this comment

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

lgtm

@jan-cerny
Copy link
Collaborator

@openscap-ci test this please

@JAORMX JAORMX merged commit e814bfa into ComplianceAsCode:master May 7, 2020
@vojtapolasek vojtapolasek added this to the 0.1.51 milestone May 11, 2020
This pull request was closed.
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.

4 participants