Skip to content

Commit cb17f13

Browse files
author
Andrew
committed
Stage 5
1 parent 50d3e86 commit cb17f13

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

powershell-adapter/Tests/powershellgroup.config.tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,14 @@ Describe 'PowerShell adapter resource tests' {
7878
Rename-Item -Path "$PSScriptRoot/TestClassResource" -NewName "_TestClassResource"
7979

8080
try {
81+
$psmp = "`$env:PSModulePath"+[System.IO.Path]::PathSeparator+$TestDrive
8182
$yaml = @"
8283
`$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json
8384
resources:
8485
- name: Working with class-based resources
8586
type: Microsoft.DSC/PowerShell
8687
properties:
87-
psmodulepath: `$env:PSModulePath;$TestDrive
88+
psmodulepath: $psmp
8889
resources:
8990
- name: Class-resource Info
9091
type: TestClassResource/TestClassResource

powershell-adapter/Tests/powershellgroup.resource.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Describe 'PowerShell adapter resource tests' {
2525

2626
It 'Discovery includes class-based resources' {
2727

28-
$r = dsc resource list * -a Microsoft.DSC/PowerShell
28+
$r = dsc resource list '*' -a Microsoft.DSC/PowerShell
2929
$LASTEXITCODE | Should -Be 0
3030
$resources = $r | ConvertFrom-Json
3131
($resources | ? {$_.Type -eq 'TestClassResource/TestClassResource'}).Count | Should -Be 1

0 commit comments

Comments
 (0)