Merge "Change PTL informatin in INFO"
[bottlenecks.git] / testsuites / vstf / vstf_scripts / vstf / controller / unittest / test_ssh.py
1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 import unittest
11
12 from vstf.common import ssh
13 from vstf.controller.unittest import model
14
15
16 class Test(model.Test):
17
18     def setUp(self):
19         super(Test, self).setUp()
20         self.host = self.source_repo["ip"]
21         self.user = self.source_repo["user"]
22         self.passwd = self.source_repo["passwd"]
23
24     def tearDown(self):
25         super(Test, self).tearDown()
26
27     def test_run_cmd(self):
28         ssh.run_cmd(self.host, self.user, self.passwd, 'ls')
29
30
31 if __name__ == "__main__":
32     import logging
33     logging.basicConfig(level=logging.INFO)
34     unittest.main()