diff --git a/PowerShell/ScubaGear/Testing/Unit/PowerShell/Orchestrator/Invoke-ScubaConfig.Tests.ps1 b/PowerShell/ScubaGear/Testing/Unit/PowerShell/Orchestrator/Invoke-ScubaConfig.Tests.ps1 index f72e6a72e9..ee0a54c785 100644 --- a/PowerShell/ScubaGear/Testing/Unit/PowerShell/Orchestrator/Invoke-ScubaConfig.Tests.ps1 +++ b/PowerShell/ScubaGear/Testing/Unit/PowerShell/Orchestrator/Invoke-ScubaConfig.Tests.ps1 @@ -1,14 +1,12 @@ $OrchestratorPath = '../../../../Modules/Orchestrator.psm1' -$ScubaConfigPath = '../../../../Modules/ScubaConfig/ScubaConfig.psm1' -$ConnectionPath = '../../../../Modules/Connection/Connection.psm1' - Import-Module (Join-Path -Path $PSScriptRoot -ChildPath $OrchestratorPath) -Force -Import-Module (Join-Path -Path $PSScriptRoot -ChildPath $ScubaConfigPath) -Force -Import-Module (Join-Path -Path $PSScriptRoot -ChildPath $ConnectionPath) -Function Disconnect-SCuBATenant -Force InModuleScope Orchestrator { Context "Parameter override test"{ BeforeAll{ + $ConnectionPath = '../../../../Modules/Connection/Connection.psm1' + Import-Module (Join-Path -Path $PSScriptRoot -ChildPath $ConnectionPath) -Function Disconnect-SCuBATenant -Force + function SetupMocks{ $script:TestSplat = @{} Mock -ModuleName Orchestrator Remove-Resources {}