Add SSH port to run_over_ssh

This commit is contained in:
Leon
2023-10-01 14:13:26 +02:00
parent 792aa1dbdf
commit 2d86d4f7cc
8 changed files with 21 additions and 16 deletions

View File

@@ -64,7 +64,7 @@ class CliTraefikTest < CliTestCase
test "logs with follow" do
SSHKit::Backend::Abstract.any_instance.stubs(:exec)
.with("ssh -t root@1.1.1.1 'docker logs traefik --timestamps --tail 10 --follow 2>&1'")
.with("ssh -t root@1.1.1.1 -p 22 'docker logs traefik --timestamps --tail 10 --follow 2>&1'")
assert_match "docker logs traefik --timestamps --tail 10 --follow", run_command("logs", "--follow")
end