Skip to content

Commit 6c71710

Browse files
author
Andrew
committed
Moved files to psDscAdapter subfolder
1 parent 7397a7f commit 6c71710

File tree

6 files changed

+17
-18
lines changed

6 files changed

+17
-18
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Describe 'PowerShell adapter resource tests' {
55

66
BeforeAll {
77
if ($isWindows) {
8-
#winrm quickconfig -quiet -force
8+
winrm quickconfig -quiet -force
99
}
1010
$OldPSModulePath = $env:PSModulePath
1111
$env:PSModulePath += [System.IO.Path]::PathSeparator + $PSScriptRoot
@@ -26,16 +26,15 @@ Describe 'PowerShell adapter resource tests' {
2626
$res.results[0].result.actualState.result[1].properties.EnumProp | Should -BeExactly 'Expected'
2727
}
2828

29-
<#It 'Get works on config with File resource for WinPS' -Skip:(!$IsWindows){
29+
It 'Get works on config with File resource for WinPS' -Skip:(!$IsWindows){
3030

3131
$testFile = "$testdrive\test.txt"
3232
'test' | Set-Content -Path $testFile -Force
3333
$r = (Get-Content -Raw $winpsConfigPath).Replace('c:\test.txt',"$testFile") | dsc config get
3434
$LASTEXITCODE | Should -Be 0
3535
$res = $r | ConvertFrom-Json
3636
$res.results[0].result.actualState.result[0].properties.DestinationPath | Should -Be "$testFile"
37-
}#>
38-
37+
}
3938

4039
It 'Test works on config with class-based and script-based resources' -Skip:(!$IsWindows){
4140

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

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

66
BeforeAll {
77
if ($isWindows) {
8-
#winrm quickconfig -quiet -force
8+
winrm quickconfig -quiet -force
99
}
1010
$OldPSModulePath = $env:PSModulePath
1111
$env:PSModulePath += [System.IO.Path]::PathSeparator + $PSScriptRoot

powershell-adapter/copy_files.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
powershell.resource.ps1
1+
./psDscAdapter/powershell.resource.ps1
22
./psDscAdapter/psDscAdapter.psd1
33
./psDscAdapter/psDscAdapter.psm1

powershell-adapter/powershell.dsc.resource.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"-NonInteractive",
1616
"-NoProfile",
1717
"-Command",
18-
"./powershell.resource.ps1 List"
18+
"./psDscAdapter/powershell.resource.ps1 List"
1919
]
2020
},
2121
"config": "full"
@@ -27,7 +27,7 @@
2727
"-NonInteractive",
2828
"-NoProfile",
2929
"-Command",
30-
"$Input | ./powershell.resource.ps1 Get"
30+
"$Input | ./psDscAdapter/powershell.resource.ps1 Get"
3131
],
3232
"input": "stdin"
3333
},
@@ -38,7 +38,7 @@
3838
"-NonInteractive",
3939
"-NoProfile",
4040
"-Command",
41-
"$Input | ./powershell.resource.ps1 Set"
41+
"$Input | ./psDscAdapter/powershell.resource.ps1 Set"
4242
],
4343
"input": "stdin",
4444
"implementsPretest": true,
@@ -51,7 +51,7 @@
5151
"-NonInteractive",
5252
"-NoProfile",
5353
"-Command",
54-
"$Input | ./powershell.resource.ps1 Test"
54+
"$Input | ./psDscAdapter/powershell.resource.ps1 Test"
5555
],
5656
"input": "stdin",
5757
"return": "state"
@@ -63,7 +63,7 @@
6363
"-NonInteractive",
6464
"-NoProfile",
6565
"-Command",
66-
"$Input | ./powershell.resource.ps1 Export"
66+
"$Input | ./psDscAdapter/powershell.resource.ps1 Export"
6767
],
6868
"input": "stdin",
6969
"return": "state"
@@ -75,7 +75,7 @@
7575
"-NonInteractive",
7676
"-NoProfile",
7777
"-Command",
78-
"$Input | ./powershell.resource.ps1 Validate"
78+
"$Input | ./psDscAdapter/powershell.resource.ps1 Validate"
7979
],
8080
"input": "stdin"
8181
},

powershell-adapter/powershell.resource.ps1 renamed to powershell-adapter/psDscAdapter/powershell.resource.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if ('Validate' -ne $Operation) {
1515
$host.ui.WriteErrorLine($trace)
1616

1717
# load private functions of psDscAdapter stub module
18-
$psDscAdapter = Import-Module "$PSScriptRoot/psDscAdapter/psDscAdapter.psd1" -Force -PassThru
18+
$psDscAdapter = Import-Module "$PSScriptRoot/psDscAdapter.psd1" -Force -PassThru
1919

2020
# initialize OUTPUT as array
2121
$result = [System.Collections.Generic.List[Object]]::new()

powershell-adapter/windowspowershell.dsc.resource.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"-NonInteractive",
1616
"-NoProfile",
1717
"-Command",
18-
"./powershell.resource.ps1 List"
18+
"./psDscAdapter/powershell.resource.ps1 List"
1919
]
2020
},
2121
"config": "full"
@@ -27,7 +27,7 @@
2727
"-NonInteractive",
2828
"-NoProfile",
2929
"-Command",
30-
"$Input | ./powershell.resource.ps1 Get"
30+
"$Input | ./psDscAdapter/powershell.resource.ps1 Get"
3131
],
3232
"input": "stdin"
3333
},
@@ -38,7 +38,7 @@
3838
"-NonInteractive",
3939
"-NoProfile",
4040
"-Command",
41-
"$Input | ./powershell.resource.ps1 Set"
41+
"$Input | ./psDscAdapter/powershell.resource.ps1 Set"
4242
],
4343
"input": "stdin",
4444
"preTest": true,
@@ -51,7 +51,7 @@
5151
"-NonInteractive",
5252
"-NoProfile",
5353
"-Command",
54-
"$Input | ./powershell.resource.ps1 Test"
54+
"$Input | ./psDscAdapter/powershell.resource.ps1 Test"
5555
],
5656
"input": "stdin",
5757
"return": "state"
@@ -63,7 +63,7 @@
6363
"-NonInteractive",
6464
"-NoProfile",
6565
"-Command",
66-
"$Input | ./powershell.resource.ps1 Validate"
66+
"$Input | ./psDscAdapter/powershell.resource.ps1 Validate"
6767
]
6868
},
6969
"exitCodes": {

0 commit comments

Comments
 (0)