Skip to content

Comments

Add mock configuration and database files for testing#15

Merged
rulasg merged 3 commits intomainfrom
adapt-to-includes
Mar 9, 2025
Merged

Add mock configuration and database files for testing#15
rulasg merged 3 commits intomainfrom
adapt-to-includes

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Mar 9, 2025

Introduce mock configuration files with detailed comments for testing purposes and update module dependencies.

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

Function 'Reset-DatabaseStore' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
# 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

The variable 'CONFIG_INVOKE_GET_ROOT_PATH_CMD' is assigned but never used.
# 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

The variable 'DB_INVOKE_GET_ROOT_PATH_ALIAS' is assigned but never used.
# 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

The variable 'DB_INVOKE_GET_ROOT_PATH_CMD' is assigned but never used.

$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

The variable 'MOCK_DATABASE_PATH' is assigned but never used.

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

The cmdlet 'Invoke-SfGetDbRootPath' does not have a help comment.
@rulasg rulasg merged commit 3fc6305 into main Mar 9, 2025
3 checks passed
@rulasg rulasg deleted the adapt-to-includes branch March 9, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant