Skip to content

Commit ec7d58c

Browse files
committed
Refactor PowerShell adapter tests to use winrm quickconfig -quiet on Windows
1 parent 238b3be commit ec7d58c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

build.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ param(
1414
[switch]$SkipLinkCheck
1515
)
1616

17-
if ($isWindows) {
18-
winrm quickconfig -quiet
19-
}
20-
2117
if ($GetPackageVersion) {
2218
$match = Select-String -Path $PSScriptRoot/dsc/Cargo.toml -Pattern '^version\s*=\s*"(?<ver>.*?)"$'
2319
if ($null -eq $match) {

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

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

66
BeforeAll {
7+
if ($isWindows) {
8+
winrm quickconfig -quiet
9+
}
710
$OldPSModulePath = $env:PSModulePath
811
$env:PSModulePath += [System.IO.Path]::PathSeparator + $PSScriptRoot
912
$pwshConfigPath = Join-path $PSScriptRoot "class_ps_resources.dsc.yaml"

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

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

66
BeforeAll {
7+
if ($isWindows) {
8+
winrm quickconfig -quiet
9+
}
710
$OldPSModulePath = $env:PSModulePath
811
$env:PSModulePath += [System.IO.Path]::PathSeparator + $PSScriptRoot
912
}

0 commit comments

Comments
 (0)