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

Wizard: Add kernel append input (HMS-5299) #2734

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

regexowl
Copy link
Collaborator

@regexowl regexowl commented Jan 10, 2025

This adds the kernel append input, removes kernel append from the OpenSCAP step and adds basic tests to cover the functionality.

JIRA: HMS-5299

@regexowl
Copy link
Collaborator Author

/jira-epic HMS-5192

This is in a preparation to expose kernel append customization.

It will be easier to mutate kernel append if it's represented as an array of arguments, rather than currently used string.
This adds the kernel append input. New arguments can be added by pressing the "Add" button or hitting Enter after the argument.

The kernel arguments linked to a selected OpenSCAP profile are rendered in a category marked as "Required by OpenSCAP" and are read only.
@schutzbot schutzbot changed the title Wizard: Add kernel append input Wizard: Add kernel append input (HMS-5299) Jan 10, 2025
@regexowl regexowl force-pushed the kernel-append-input branch from 6199c02 to 418f4aa Compare January 10, 2025 09:59
This removes kernel append from the list of information about the selected OpenSCAP step.
This adds basic tests for kernel append.
@regexowl regexowl force-pushed the kernel-append-input branch from 418f4aa to 265fa11 Compare January 10, 2025 10:13
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 85.95506% with 25 lines in your changes missing coverage. Please review.

Project coverage is 84.85%. Comparing base (224b927) to head (265fa11).

Files with missing lines Patch % Lines
...Wizard/steps/Kernel/components/KernelArguments.tsx 80.41% 19 Missing ⚠️
src/Components/CreateImageWizard/validators.ts 16.66% 5 Missing ⚠️
src/store/wizardSlice.ts 96.42% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2734      +/-   ##
==========================================
- Coverage   84.86%   84.85%   -0.01%     
==========================================
  Files         183      183              
  Lines       20795    20947     +152     
  Branches     2019     2044      +25     
==========================================
+ Hits        17648    17775     +127     
- Misses       3125     3150      +25     
  Partials       22       22              
Files with missing lines Coverage Δ
...Components/CreateImageWizard/steps/Oscap/Oscap.tsx 92.89% <100.00%> (+0.27%) ⬆️
...mageWizard/steps/Oscap/OscapProfileInformation.tsx 100.00% <ø> (ø)
...Components/CreateImageWizard/steps/Oscap/index.tsx 98.27% <100.00%> (ø)
...nents/CreateImageWizard/utilities/requestMapper.ts 94.83% <100.00%> (+0.11%) ⬆️
src/test/fixtures/oscap.ts 100.00% <100.00%> (ø)
src/store/wizardSlice.ts 89.32% <96.42%> (+0.22%) ⬆️
src/Components/CreateImageWizard/validators.ts 88.63% <16.66%> (-5.27%) ⬇️
...Wizard/steps/Kernel/components/KernelArguments.tsx 81.00% <80.41%> (-19.00%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 224b927...265fa11. Read the comment docs.

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.

1 participant