Build XCCDF only from module.ini and group.ini files #352
base: master
Are you sure you want to change the base?
Conversation
Previously building of module set has been corrupted when directory with the module contained more than one file with the ".ini" extentions. Build of the module set shouldn't be affected by various INI files, that are not related to the module set structure. So the scan is now read only group.ini and module.ini files whose names are reserved for PA purposes. In addition we expect only one of those files in each directory, so the ModuleSetFormatError exception is raised when both are detected in the same directory. - removed unused import of ModuleSetUtils Resolves #310
Use settings.module_ini and settings.group_ini in tests. Related #310
This is more like nice to have now, but I have good mood on Sunday. So set milestone and merge it just in case you want to resolve it now. |
CASESLegend
Table
|
|
@pirat89, I did some code cleanup, please take a look. The code now looks for just one ini file (either module.ini or group.ini) instead of multiple. If there's no one of these two in a folder, it's a failure. |
- fail if there's no INI in a dir - rename functions and variables so the name better suits their purpose
In my testing it is not true. But as we agreed, this could be probably removed at all. |
@pirat89 has found issues with the code. These are my notes that may not make much sense to others: |
Correct. If I hadn't known about the issues, I would not be able to decrypt notes above :-D |
Cleaning up qa_ack from last milestone. |
I think I have test in making somewhere; couldn't find it right now, though. |
@AloisMahdal ready to be verified. |
That's strange, our Jenkins jobs for CD has started by themself, again, 5 days after the last commit, and failed because they weren't started properly. I'm gonna push force causing another rebuild. |
Just rebased to run the build. without any other changes. |
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.
Rereviewed after rebase. @AloisMahdal, this PR awaits QE verification.
@bocekm If I remember well, @AloisMahdal found there probably an issue (or was it something else?) but it is just not documented here as the complete testing has not been finished because we postponed that to the next milestone. |
--test-- |
Previously building of module set has been corrupted when directory
with the module contained more than one file with the ".ini"
extentions. Build of the module set shouldn't be affected by various
INI files, that are not related to the module set structure.
So the scan is now read only group.ini and module.ini files whose
names are reserved for PA purposes. In addition we expect only one
of those files in each directory, so the ModuleSetFormatError
exception is raised when both are detected in the same directory.
Additionaly:
Resolves #310