5 Commits

Author SHA1 Message Date
Gunjan Vyas
c60cf839d6 Fix all linting errors found by cross-lint
Signed-off-by: Gunjan Vyas <vyasgun20@gmail.com>
2025-09-03 13:05:13 +05:30
lstocchi
08769de7e0 win-sshproxy.tid created before thread id is available
this commit fixes a potential race condition that prevented the tests to succeed
when running in a github workflow.
Basically the thread id was not actually available before
writing it on the file, resulting in a thread id equals to 0 written in it.
So, when the tests were trying to retrieve the thread id to use it to send
the WM_QUIT signal, they failed.

This patch adds a check on the thread id before writing
it on the file. Now, if the thread id is 0, it keeps calling winquit to
retrieve it. If, after 10 secs, there is no success it returns an error.

Signed-off-by: lstocchi <lstocchi@redhat.com>
2024-11-29 11:18:44 +01:00
Christophe Fergeau
8c72b59df3 ioutil: Switch away from deprecated package
ioutil has been deprecated since golang 1.16.
This commit uses the replacement methods from the os or io packages.
This should fix some golangci-lint CI failures.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
2022-09-06 18:33:45 +05:30
Jason T. Greene
4e5064a21a Update dyanamic ssh-tunnel port to reuse existing ssh-forwarding code and capabilities
Also:
- Introduce cleanup mechanism for unexpose
- Minor enhancement to bastion/forwarder to support tunnel only operation

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2022-02-12 02:11:00 -06:00
Jason T. Greene
23695cfcfb Add tests for win-sshproxy
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2022-01-14 02:14:11 -06:00