From: Zack Cerza Date: Tue, 14 Jul 2015 20:19:10 +0000 (-0600) Subject: Add SSH tests X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=24a9ca66c0300e10ff07a36aac517828586aa9da;p=teuthology.git Add SSH tests Signed-off-by: Zack Cerza --- diff --git a/teuthology/task/tests/test_ssh.py b/teuthology/task/tests/test_ssh.py new file mode 100644 index 000000000..72d5603ca --- /dev/null +++ b/teuthology/task/tests/test_ssh.py @@ -0,0 +1,16 @@ +import logging + +log = logging.getLogger(__name__) + + +class TestSSH(object): + """ + Does paramiko work? + """ + def test_exec_many_procs(self, ctx, config): + config = config or dict() + attempts_per_host = config.get('attempts_per_host', 1000) + for i in range(1, attempts_per_host + 1): + log.debug("Attempt %s of %s", i, attempts_per_host) + ctx.cluster.run(args="echo attempt %s" % i) + assert i == attempts_per_host