JIRA: BOTTLENECKS-29
[bottlenecks.git] / vstf / 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
25     def tearDown(self):
26         super(Test, self).tearDown()
27
28
29     def test_run_cmd(self):
30         ssh.run_cmd(self.host, self.user, self.passwd, 'ls')
31
32
33 if __name__ == "__main__":
34     import logging
35     logging.basicConfig(level = logging.INFO)
36     unittest.main()