]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add SSH tests
authorZack Cerza <zack@redhat.com>
Tue, 14 Jul 2015 20:19:10 +0000 (14:19 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 17 Jul 2015 22:00:20 +0000 (16:00 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/tests/test_ssh.py [new file with mode: 0644]

diff --git a/teuthology/task/tests/test_ssh.py b/teuthology/task/tests/test_ssh.py
new file mode 100644 (file)
index 0000000..72d5603
--- /dev/null
@@ -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