-
Notifications
You must be signed in to change notification settings - Fork 254
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
Add action plan CSV #1351
Add action plan CSV #1351
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments addressed from other channel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted an issue when identical filenames for different output files are used. Also some grammatical issues with documentation text.
I believe it would also make sense to add this new parameter to our sample config file(s) as well as updating it with the ScubaResults defaults in full_config.yaml.
Co-authored-by: Addam Schroll <108814318+schrolla@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updates addressed the previous concerns and comments. Unit tests pass and Invoke-SCuBA
works as expected. New test for filename collision works as expected with variables defined in both config file or command line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work Alden. I performed a cursory review given the timing of the PR and the end of the release. My comments assume that others will review and test the PR as well.
My recommendations are below:
- Regression test the existing OutCsvFileName parameter to ensure it wasn’t broken.
- Ensure that hands-on testing is performed and that the test scenarios include cases with the config file.
@tkol2022 Sorry I just now noticed that I forgot to fill in the |
@tkol2022 I just added some new unit tests to test the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note some changes to make sure unit tests don't litter.
PowerShell/ScubaGear/Testing/Unit/PowerShell/Orchestrator/ConvertTo-ResultsCsv.Tests.ps1
Show resolved
Hide resolved
PowerShell/ScubaGear/Testing/Unit/PowerShell/Orchestrator/Invoke-Scuba.Tests.ps1
Show resolved
Hide resolved
…e creation in tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final unit test review item has been addressed. Looks good.
@nanda-katikaneni The PR has been approved and is ready for merge. |
* Add ActionPlan csv * Add ActionPlan.csv to reports.md * Update parameters.md with OutPlanFileName * Ensure the action plan file is still created even if all tests pass * Unhardcode column names * Add spaces to empty columns * Minor documentation fixes Co-authored-by: Addam Schroll <108814318+schrolla@users.noreply.github.com> * Add OutPlanFileName to sample config files * Error if OutPlanFileName and OutCsvFileName are equal * Add missing newline to config * Rename OutPlanFileName to OutActionPlanFileName * Move OutActionPlanFileName documentation to appropriate spot in alphabetical order * Add unit tests for OutCsvFileName and OutActionPlanFileName parameters * Mock ConvertTo-ResultsCsv in Invoke-ScubaCached to prevent actual file creation in tests --------- Co-authored-by: Addam Schroll <108814318+schrolla@users.noreply.github.com>
🗣 Description
Remove the action plan columns from ScubaResults.csv, separate into separate ActionPlan.csv file.
💭 Motivation and context
Closes #1350
🧪 Testing
Testing I've manually performed:
Invoke-Scuba
without modifying either CSV file nameInvoke-Scuba
with-OutActionPlanFileName
parameterInvoke-Scuba
with both-OutActionPlanFileName
and-OutCsvFileName
Invoke-Scuba
with-OutActionPlanFileName
and-OutCsvFileName
set equal to each otherInvoke-ScubaCached
without modifying either CSV file nameInvoke-ScubaCached
with-OutActionPlanFileName
parameterInvoke-ScubaCached
with both-OutActionPlanFileName
and-OutCsvFileName
Invoke-ScubaCached
with-OutActionPlanFileName
and-OutCsvFileName
set equal to each otherInvoke-Scuba
with both-OutActionPlanFileName
and-OutCsvFileName
set in a config fileInvoke-Scuba
against a product configured to have no failing SHALL statementsInvoke-ScubaCached
against a product configured to have no failing SHALL statements✅ Pre-approval checklist
✅ Pre-merge checklist
PR passed smoke test check.
Feature branch has been rebased against changes from parent branch, as needed
Use
Rebase branch
button below or use this reference to rebase from the command line.Resolved all merge conflicts on branch
Notified merge coordinator that PR is ready for merge via comment mention
✅ Post-merge checklist