Add mock configuration and database files for testing#15
Conversation
| return $dbstore | ||
| } | ||
|
|
||
| function Reset-DatabaseStore{ |
Check warning
Code scanning / PSScriptAnalyzer
Function 'Reset-DatabaseStore' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning
| # This file is required for CONFIF MOCK to work | ||
|
|
||
| $MOCK_CONFIG_PATH = "test_config_path" | ||
| $CONFIG_INVOKE_GET_ROOT_PATH_CMD = "Invoke-SfGetConfigRootPath" |
Check warning
Code scanning / PSScriptAnalyzer
The variable 'CONFIG_INVOKE_GET_ROOT_PATH_CMD' is assigned but never used. Warning
| # DATABASEV2 MOCK VARIABLES | ||
| # This file is required for DATABASEV2 MOCK to work | ||
|
|
||
| $DB_INVOKE_GET_ROOT_PATH_ALIAS = "SfGetDbRootPath" |
Check warning
Code scanning / PSScriptAnalyzer
The variable 'DB_INVOKE_GET_ROOT_PATH_ALIAS' is assigned but never used. Warning
| # This file is required for DATABASEV2 MOCK to work | ||
|
|
||
| $DB_INVOKE_GET_ROOT_PATH_ALIAS = "SfGetDbRootPath" | ||
| $DB_INVOKE_GET_ROOT_PATH_CMD = "Invoke-SfGetDbRootPath" |
Check warning
Code scanning / PSScriptAnalyzer
The variable 'DB_INVOKE_GET_ROOT_PATH_CMD' is assigned but never used. Warning
|
|
||
| $DB_INVOKE_GET_ROOT_PATH_ALIAS = "SfGetDbRootPath" | ||
| $DB_INVOKE_GET_ROOT_PATH_CMD = "Invoke-SfGetDbRootPath" | ||
| $MOCK_DATABASE_PATH = "test_database_path" |
Check warning
Code scanning / PSScriptAnalyzer
The variable 'MOCK_DATABASE_PATH' is assigned but never used. Warning
|
|
||
| Set-MyInvokeCommandAlias -Alias $DB_INVOKE_GET_ROOT_PATH_ALIAS -Command $DB_INVOKE_GET_ROOT_PATH_CMD | ||
|
|
||
| function Invoke-SfGetDbRootPath{ |
Check notice
Code scanning / PSScriptAnalyzer
The cmdlet 'Invoke-SfGetDbRootPath' does not have a help comment. Note
… configuration files
Introduce mock configuration files with detailed comments for testing purposes and update module dependencies.