This PR changes the scan mode logic for inserting newly discovered files into the historySet. The legacy logic added files into the historySet as soon as the scan function detected them. The updated code adds files later in the processing pipeline and only when the following conditions occur:
The parsing function rejects the file by throwing an error.
The TaskObject reports the file is associated with an Asset that does not exist in the API and --create-objects is false.
The tasks associated with the file (creating the Asset, updating STIG mappings, posting Reviews) have all completed successfully.
The PR also updates the unit tests for the history management features.
Resolves #62
This PR changes the scan mode logic for inserting newly discovered files into the historySet. The legacy logic added files into the historySet as soon as the scan function detected them. The updated code adds files later in the processing pipeline and only when the following conditions occur:
--create-objects
isfalse
.The PR also updates the unit tests for the history management features.