-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add mock configuration and database files for testing #15
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # CONFIG MOCK VARIABLES | ||
| # This file is required for CONFIF MOCK to work | ||
|
|
||
| $MOCK_CONFIG_PATH = "test_config_path" | ||
Check warningCode scanning / PSScriptAnalyzer The variable 'MOCK_CONFIG_PATH' is assigned but never used. Warning
The variable 'MOCK_CONFIG_PATH' is assigned but never used.
|
||
| $CONFIG_INVOKE_GET_ROOT_PATH_CMD = "Invoke-SfGetConfigRootPath" | ||
Check warningCode scanning / PSScriptAnalyzer The variable 'CONFIG_INVOKE_GET_ROOT_PATH_CMD' is assigned but never used. Warning
The variable 'CONFIG_INVOKE_GET_ROOT_PATH_CMD' is assigned but never used.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # DATABASEV2 MOCK VARIABLES | ||
| # This file is required for DATABASEV2 MOCK to work | ||
|
|
||
| $DB_INVOKE_GET_ROOT_PATH_ALIAS = "SfGetDbRootPath" | ||
Check warningCode scanning / PSScriptAnalyzer The variable 'DB_INVOKE_GET_ROOT_PATH_ALIAS' is assigned but never used. Warning
The variable 'DB_INVOKE_GET_ROOT_PATH_ALIAS' is assigned but never used.
|
||
| $DB_INVOKE_GET_ROOT_PATH_CMD = "Invoke-SfGetDbRootPath" | ||
Check warningCode scanning / PSScriptAnalyzer The variable 'DB_INVOKE_GET_ROOT_PATH_CMD' is assigned but never used. Warning
The variable 'DB_INVOKE_GET_ROOT_PATH_CMD' is assigned but never used.
|
||
| $MOCK_DATABASE_PATH = "test_database_path" | ||
Check warningCode scanning / PSScriptAnalyzer The variable 'MOCK_DATABASE_PATH' is assigned but never used. Warning
The variable 'MOCK_DATABASE_PATH' is assigned but never used.
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # This file is required for INCLUDE DATABASE V2 | ||
|
|
||
| $DB_INVOKE_GET_ROOT_PATH_ALIAS = "SfGetDbRootPath" | ||
| $DB_INVOKE_GET_ROOT_PATH_CMD = "Invoke-SfGetDbRootPath" | ||
|
|
||
| Set-MyInvokeCommandAlias -Alias $DB_INVOKE_GET_ROOT_PATH_ALIAS -Command $DB_INVOKE_GET_ROOT_PATH_CMD | ||
|
|
||
| function Invoke-SfGetDbRootPath{ | ||
Check noticeCode scanning / PSScriptAnalyzer The cmdlet 'Invoke-SfGetDbRootPath' does not have a help comment. Note
The cmdlet 'Invoke-SfGetDbRootPath' does not have a help comment.
|
||
| [CmdletBinding()] | ||
| param() | ||
|
|
||
| $databaseRoot = GetDatabaseRootPath | ||
| return $databaseRoot | ||
|
|
||
| } Export-ModuleMember -Function Invoke-SfGetDbRootPath | ||
This file was deleted.
Check warning
Code scanning / PSScriptAnalyzer
Function 'Reset-DatabaseStore' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning