Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

🐛 | Invalid / Incomplete SSH client output capture #640

Open
FirelightFlagboy opened this issue Dec 21, 2021 · 0 comments
Open

🐛 | Invalid / Incomplete SSH client output capture #640

FirelightFlagboy opened this issue Dec 21, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@FirelightFlagboy
Copy link

Describe the bug - What is the current behavior?

When using the task SshClientTask with a proper ssh server, the stdout is Invalid or Incomplete

Steps to reproduce

With the following snippet:

SshClientTask(
  target = "FTP_SERVER",
  commands = listOf(
    "pwd"
  ),
  channel = SSH_CLIENT_CHANNEL.SHELL
)

this result in the following results:

[
  CommandResult{command=Command{command=pwd, timeout=5000 ms}, exitCode=0, stdout=Last login: Tue Dec 21 12:30:19 2021 from x.x.x.x
, stderr=}
]

What is the expected correct behavior?

I'm expecting that stdout contain only the output of the command pwd (The best)

/path/to/something

or to contain in it, the output of pwd (at best)

Last login: Tue Dec 21 12:30:19 2021 from x.x.x.x
/path/to/something

Environment (please complete the following information):

  • Chutney version: 1.4.3
  • OS: Windows 10
  • Browser: N/A

Possible fixes

Maybe an error with the IOStream but I can't unsure that

@FirelightFlagboy FirelightFlagboy added the bug Something isn't working label Dec 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant