File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,13 @@ Describe "Tests for scp command" -Tags "CI" {
52
52
Source = $SourceFilePath
53
53
Destination = " test_target:$DestinationFilePath "
54
54
Options = " -S `" $sshcmd `" "
55
- },
55
+ },
56
+ @ {
57
+ Title = ' Simple copy remote file to local file'
58
+ Source = " test_target:$SourceFilePath "
59
+ Destination = $DestinationFilePath
60
+ Options = " -p -c aes128-ctr -C"
61
+ },
56
62
@ {
57
63
Title = ' Simple copy local file to local dir'
58
64
Source = $SourceFilePath
@@ -174,11 +180,8 @@ Describe "Tests for scp command" -Tags "CI" {
174
180
$equal = @ (Compare-Object (Get-ChildItem - path $SourceFilePath ) (Get-ChildItem - path $DestinationFilePath ) - Property Name, Length ).Length -eq 0
175
181
$equal | Should Be $true
176
182
177
- if ($Options.contains (" -p " ))
183
+ if ($Options.contains (" -p " ) -and [ System.Convert ]::ToInt32(( Get-WMIObject win32_operatingsystem).Version.Split( " . " )[ 0 ]) -ge 10 )
178
184
{
179
- # TODO: Test only
180
- Write-Verbose - Verbose " Source File LastWriteTime: $ ( (Get-ChildItem - Path $SourceFilePath ).LastWriteTime.DateTime) "
181
- Write-Verbose - Verbose " Dest File LastWriteTime: $ ( (Get-ChildItem - Path $DestinationFilePath ).LastWriteTime.DateTime) "
182
185
$equal = @ (Compare-Object (Get-ChildItem - path $SourceFilePath ).LastWriteTime.DateTime (Get-ChildItem - path $DestinationFilePath ).LastWriteTime.DateTime ).Length -eq 0
183
186
$equal | Should Be $true
184
187
}
You can’t perform that action at this time.
0 commit comments