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

parametrize methods for getting remediation conditionals of XCCDF platforms #9777

Conversation

vojtapolasek
Copy link
Collaborator

Description:

  • Platform.to_bash_conditional now becomes Platform.get_remediation_conditional("bash")
  • the same goes for Ansible
  • unit tests are adjusted accordignly

Rationale:

This will allow greater flexibility in future and it will make code deduplication easier.

for Bash:
to_bash_conditional is now get_remediation_conditional("bash)

the same is for Ansible
Unit tests are updated accordingly.
@vojtapolasek vojtapolasek added the Infrastructure Our content build system label Nov 7, 2022
@github-actions
Copy link

github-actions bot commented Nov 7, 2022

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

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@jan-cerny jan-cerny self-assigned this Nov 7, 2022
@jan-cerny jan-cerny added this to the 0.1.65 milestone Nov 7, 2022
@codeclimate
Copy link

codeclimate bot commented Nov 7, 2022

Code Climate has analyzed commit 4c04afc 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 46.7% (0.0% change).

View more on Code Climate.

Copy link
Collaborator

@jan-cerny jan-cerny left a comment

Choose a reason for hiding this comment

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

Great PR, it's a nice example of a standalone and reviewable PR, thanks!

@jan-cerny jan-cerny merged commit 2f11980 into ComplianceAsCode:master Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants