Skip to content

add check for pipes to do_upload #704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Dec 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add debug
  • Loading branch information
tgauth committed Nov 16, 2023
commit ea56c7d7f0c5925f68ed37794669e82d2f4f4560
2 changes: 1 addition & 1 deletion regress/pesterTests/SFTP.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ Describe "SFTP Test Cases" -Tags "CI" {
$fileDestination = Join-Path $serverDirectory "test-sftp-put.txt"
$Commands = "put \\.\pipe\npipe $fileDestination"
Set-Content $batchFilePath -Encoding UTF8 -value $Commands
$str = $ExecutionContext.InvokeCommand.ExpandString("sftp -P $port -b $batchFilePath test_target > $outputFilePath")
$str = $ExecutionContext.InvokeCommand.ExpandString("sftp -vvv -P $port -b $batchFilePath test_target > $outputFilePath")
Invoke-Expression $str
#validate file content - data sent from pipe is defined in .\utilities\pipe\create-pipe-put.ps1
(Get-Content $fileDestination) | Should -Be "temp pipe data"
Expand Down