# Optionally Implement a custom test for your plugin, which will be called during the validation step
# This test can replace the validation of entries, but not the count.
# The test must return True, or raise an AssertionError
custom_test: Optional[Callable] = None
There are currently 7 plugins without a validation case:
[!] 7/39 plugins have no validation case!
plugin_name
plugin_class_name
test_case_name
success
routes
RoutesPlugin
False
timezone_data
TimezoneDataPlugin
False
image_file_execution_options
ImageFileExecutionOptions
False
active_control_set
ActiveControlSetPlugin
False
safeboot_configuration
SafeBootConfigurationPlugin
False
installed_programs_ntuser
InstalledProgramsNTUserPlugin
False
terminal_services_history
TSClientPlugin
False
Prepared the framework for enforcing validation in the future, all is left is flipping a switch in regipy_tests/validation/plugin_validation.py:
ENFORCE_VALIDATION = True
which will currently cause the validation step (and thus the build) to fail:
...
[!] 7/39 plugins have no validation case!
plugin_name
plugin_class_name
test_case_name
success
installed_programs_ntuser
InstalledProgramsNTUserPlugin
False
timezone_data
TimezoneDataPlugin
False
active_control_set
ActiveControlSetPlugin
False
safeboot_configuration
SafeBootConfigurationPlugin
False
terminal_services_history
TSClientPlugin
False
routes
RoutesPlugin
False
image_file_execution_options
ImageFileExecutionOptions
False
Traceback (most recent call last):
File "/home/martin/code/regipy/regipy_tests/validation/plugin_validation.py", line 176, in
main()
File "/home/martin/code/regipy/regipy_tests/validation/plugin_validation.py", line 150, in main
raise PluginValidationCaseFailureException(
PluginValidationCaseFailureException: 7 plugins are missing validation: ['InstalledProgramsNTUserPlugin', 'TimezoneDataPlugin', 'ActiveControlSetPlugin', 'SafeBootConfigurationPlugin', 'TSClientPlugin', 'RoutesPlugin', 'ImageFileExecutionOptions']
regipy_tests/validation/plugin_validation.py
:which will currently cause the validation step (and thus the build) to fail:
Traceback (most recent call last): File "/home/martin/code/regipy/regipy_tests/validation/plugin_validation.py", line 176, in
main()
File "/home/martin/code/regipy/regipy_tests/validation/plugin_validation.py", line 150, in main
raise PluginValidationCaseFailureException(
PluginValidationCaseFailureException: 7 plugins are missing validation: ['InstalledProgramsNTUserPlugin', 'TimezoneDataPlugin', 'ActiveControlSetPlugin', 'SafeBootConfigurationPlugin', 'TSClientPlugin', 'RoutesPlugin', 'ImageFileExecutionOptions']