File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -104,16 +104,20 @@ Describe 'tests for resource discovery' {
104
104
}
105
105
106
106
It ' Ensure List operation populates adapter lookup table' {
107
- $env: DSC_RESOURCE_PATH = $null
108
107
# remove adapter lookup table file
109
108
Remove-Item - Force - Path $script :lookupTableFilePath - ErrorAction SilentlyContinue
110
109
Test-Path $script :lookupTableFilePath - PathType Leaf | Should - BeFalse
111
110
112
111
# perform List on an adapter - this should create adapter lookup table file
112
+ $oldPSModulePath = $env: PSModulePath
113
+ $TestClassResourcePath = Resolve-Path " $PSScriptRoot /../../powershell-adapter/Tests"
114
+ $env: DSC_RESOURCE_PATH = $null
115
+ $env: PSModulePath += [System.IO.Path ]::PathSeparator + $TestClassResourcePath
113
116
dsc resource list - a Microsoft.DSC/ PowerShell | Out-Null
114
117
gc - raw $script :lookupTableFilePath
115
118
$script :lookupTableFilePath | Should - FileContentMatchExactly ' Microsoft.DSC/PowerShell'
116
119
Test-Path $script :lookupTableFilePath - PathType Leaf | Should - BeTrue
120
+ $env: PSModulePath = $oldPSModulePath
117
121
}
118
122
119
123
It ' Ensure non-List operation populates adapter lookup table' {
You can’t perform that action at this time.
0 commit comments