@@ -62,7 +62,7 @@ Describe 'Default Shell Configuration Tests' -Skip:(!$IsWindows) {
62
62
$testShell = " C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
63
63
New-ItemProperty - Path $RegistryPath - Name " DefaultShell" - Value $testShell
64
64
65
- $output = sshdconfig get - r windows- global
65
+ $output = sshdconfig get - s windows- global
66
66
$LASTEXITCODE | Should - Be 0
67
67
68
68
$result = $output | ConvertFrom-Json
@@ -78,7 +78,7 @@ Describe 'Default Shell Configuration Tests' -Skip:(!$IsWindows) {
78
78
New-ItemProperty - Path $RegistryPath - Name " DefaultShellCommandOption" - Value " /c"
79
79
New-ItemProperty - Path $RegistryPath - Name " DefaultShellEscapeArguments" - Value 0 - Type DWord
80
80
81
- $output = sshdconfig get - r windows- global
81
+ $output = sshdconfig get - s windows- global
82
82
$LASTEXITCODE | Should - Be 0
83
83
84
84
$result = $output | ConvertFrom-Json
@@ -88,7 +88,7 @@ Describe 'Default Shell Configuration Tests' -Skip:(!$IsWindows) {
88
88
}
89
89
90
90
It ' Should handle empty default shell registry values' - Skip:(! $IsWindows ) {
91
- $output = sshdconfig get - r windows- global
91
+ $output = sshdconfig get - s windows- global
92
92
$LASTEXITCODE | Should - Be 0
93
93
94
94
$result = $output | ConvertFrom-Json
@@ -165,7 +165,7 @@ Describe 'Default Shell Configuration Tests' -Skip:(!$IsWindows) {
165
165
sshdconfig set -- input $inputJson
166
166
$LASTEXITCODE | Should - Be 0
167
167
168
- $getOutput = sshdconfig get - r windows- global
168
+ $getOutput = sshdconfig get - s windows- global
169
169
$LASTEXITCODE | Should - Be 0
170
170
171
171
$retrievedConfig = $getOutput | ConvertFrom-Json
@@ -202,7 +202,7 @@ Describe 'Default Shell Configuration Error Handling on Non-Windows Platforms' -
202
202
}
203
203
204
204
It ' Should return error for get command' {
205
- $out = sshdconfig get - r windows- global 2>&1
205
+ $out = sshdconfig get - s windows- global 2>&1
206
206
$LASTEXITCODE | Should -Not - Be 0
207
207
$out | Should - BeLike ' *not applicable to this platform*'
208
208
}
0 commit comments