Skip to content

Commit

Permalink
Automated developer guide update
Browse files Browse the repository at this point in the history
  • Loading branch information
schutzbot committed Jul 18, 2024
1 parent fc70deb commit 0ede79b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ https://github.com/RedHatInsights/image-builder-frontend/blob/c84b493eba82ce83a7
##### Mocking flags for tests

Flags can be mocked for the unit tests to access some feature. Checkout:
https://github.com/osbuild/image-builder-frontend/blob/9a464e416bc3769cfc8e23b62f1dd410eb0e0455/src/test/Components/CreateImageWizardV2/CreateImageWizard.test.tsx#L49
https://github.com/osbuild/image-builder-frontend/blob/9a464e416bc3769cfc8e23b62f1dd410eb0e0455/src/test/Components/CreateImageWizard/CreateImageWizard.test.tsx#L49

If the two possible code path accessible via the toggles are defined in the code
base, then it's good practice to test the two of them. If not, only test what's
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Notes:
"additionalProperties": false,
"required": [
"datastream",
"tailored_profile_id",
"tailoring_file"
],
"type": "object",
Expand All @@ -28,6 +29,10 @@ Notes:
"type": "string",
"description": "The path to the datastream file"
},
"tailored_profile_id": {
"type": "string",
"description": "The id of the new customized (tailored) OpenSCAP profile"
},
"tailoring_file": {
"type": "string",
"description": "Path to the JSON file which contains tailoring options to be imported"
Expand All @@ -38,8 +43,7 @@ Notes:
"additionalProperties": false,
"required": [
"profile_id",
"datastream",
"new_profile"
"datastream"
],
"type": "object",
"description": "OpenSCAP configuration variables",
Expand All @@ -54,7 +58,11 @@ Notes:
},
"new_profile": {
"type": "string",
"description": "The name of the new customized OpenSCAP profile"
"description": "The id of the new customized (tailored) OpenSCAP profile"
},
"tailored_profile_id": {
"type": "string",
"description": "The id of the new customized (tailored) OpenSCAP profile"
},
"selected": {
"type": "array",
Expand Down

0 comments on commit 0ede79b

Please sign in to comment.