Skip to content

Commit 06c8965

Browse files
(GH-1153) Fix discovery tests
Prior to this change, the discovery tests referenced the path to test files for the PowerShell adapter by folder. This change corrects those paths to their new location.
1 parent 94567c1 commit 06c8965

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dsc/tests/dsc_discovery.tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Describe 'tests for resource discovery' {
109109

110110
# perform List on an adapter - this should create adapter lookup table file
111111
$oldPSModulePath = $env:PSModulePath
112-
$TestClassResourcePath = Resolve-Path "$PSScriptRoot/../../powershell-adapter/Tests"
112+
$TestClassResourcePath = Resolve-Path "$PSScriptRoot/../../adapters/powershell/Tests"
113113
$env:DSC_RESOURCE_PATH = $null
114114
$env:PSModulePath += [System.IO.Path]::PathSeparator + $TestClassResourcePath
115115
dsc resource list -a Microsoft.DSC/PowerShell | Out-Null
@@ -126,7 +126,7 @@ Describe 'tests for resource discovery' {
126126

127127
# perform Get on an adapter - this should create adapter lookup table file
128128
$oldPSModulePath = $env:PSModulePath
129-
$TestClassResourcePath = Resolve-Path "$PSScriptRoot/../../powershell-adapter/Tests"
129+
$TestClassResourcePath = Resolve-Path "$PSScriptRoot/../../adapters/powershell/Tests"
130130
$env:DSC_RESOURCE_PATH = $null
131131
$env:PSModulePath += [System.IO.Path]::PathSeparator + $TestClassResourcePath
132132
"{'Name':'TestClassResource1'}" | dsc resource get -r 'TestClassResource/TestClassResource' -f - | Out-Null
@@ -139,7 +139,7 @@ Describe 'tests for resource discovery' {
139139
It 'Verify adapter lookup table is used on repeat invocations' {
140140

141141
$oldPSModulePath = $env:PSModulePath
142-
$TestClassResourcePath = Resolve-Path "$PSScriptRoot/../../powershell-adapter/Tests"
142+
$TestClassResourcePath = Resolve-Path "$PSScriptRoot/../../adapters/powershell/Tests"
143143
$env:DSC_RESOURCE_PATH = $null
144144
$env:PSModulePath += [System.IO.Path]::PathSeparator + $TestClassResourcePath
145145

0 commit comments

Comments
 (0)