Skip to content

Commit 138ff9e

Browse files
committed
update test to include expression
1 parent c31eef3 commit 138ff9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dsc/tests/dsc_include.tests.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,17 @@ Describe 'Include tests' {
144144

145145
$echoConfigPath = Join-Path $TestDrive 'echo.dsc.yaml'
146146
$echoConfig | Set-Content -Path $echoConfigPath
147+
$echoConfigPathParent = Split-Path $echoConfigPath -Parent
148+
$echoConfigPathLeaf = Split-Path $echoConfigPath -Leaf
149+
$directorySeparator = [System.IO.Path]::DirectorySeparatorChar
147150

148151
$nestedIncludeConfig = @"
149152
`$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json
150153
resources:
151154
- name: nested
152155
type: Microsoft.DSC/Include
153156
properties:
154-
configurationFile: $echoConfigPath
157+
configurationFile: "[concat('$echoConfigPathParent', '$directorySeparator', '$echoConfigPathLeaf')]"
155158
"@
156159

157160
$nestedIncludeConfigPath = Join-Path $TestDrive 'nested_include.dsc.yaml'

0 commit comments

Comments
 (0)