Upload the contribution of vstf as bottleneck network framework.
[bottlenecks.git] / vstf / vstf / controller / unittest / test_ssh.py
1 """
2 Created on 2015-10-10
3
4 @author: y00228926
5 """
6 import unittest
7
8 from vstf.common import ssh
9 from vstf.controller.unittest import model
10
11
12 class Test(model.Test):
13
14     def setUp(self):
15         super(Test, self).setUp()
16         self.host = self.source_repo["ip"]
17         self.user = self.source_repo["user"]
18         self.passwd = self.source_repo["passwd"]
19
20
21     def tearDown(self):
22         super(Test, self).tearDown()
23
24
25     def test_run_cmd(self):
26         ssh.run_cmd(self.host, self.user, self.passwd, 'ls')
27
28
29 if __name__ == "__main__":
30     import logging
31     logging.basicConfig(level = logging.INFO)
32     unittest.main()