Skip to content
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

Log printed by SshCopyFrom seems to be inaccurate #1409

Open
tylerj93 opened this issue May 31, 2024 · 0 comments
Open

Log printed by SshCopyFrom seems to be inaccurate #1409

tylerj93 opened this issue May 31, 2024 · 0 comments
Labels
bug Something isn't working terratest

Comments

@tylerj93
Copy link

tylerj93 commented May 31, 2024

Describe the bug
The log printed by ScpFileFrom seems to be inaccurate.

It says: Running command /usr/bin/scp -t <DIR> but from examining the source code in practice it runs sudo dd if=<FILE>.

My speculation is that maybe the code evolved at some point to support sudo and thus doesn't actually use scp any more?

To Reproduce
Call ssh.ScpFileFrom on an accessible remote host and observe the log output.

ssh.ScpFileFrom(t, sshHost, "path/to/remote/file", kubeConf, useSudo)

Expected behavior
The logs should accurately reflect what is happening.

Versions

  • Terratest version: v0.46.15
  • Environment details (Ubuntu 20.04, Windows 10, etc.): Arch Linux (Kernel 6.9.2) x86_64, Go version 1.22.3
@tylerj93 tylerj93 added the bug Something isn't working label May 31, 2024
@ZachGoldberg ZachGoldberg added the terratest label Jun 11, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working terratest
Projects
None yet
Development

No branches or pull requests

2 participants