Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "standardize ssh auth"
[yardstick.git]
/
tests
/
unit
/
benchmark
/
core
/
test_plugin.py
diff --git
a/tests/unit/benchmark/core/test_plugin.py
b/tests/unit/benchmark/core/test_plugin.py
index
edc1034
..
f9c0761
100644
(file)
--- a/
tests/unit/benchmark/core/test_plugin.py
+++ b/
tests/unit/benchmark/core/test_plugin.py
@@
-41,7
+41,7
@@
class pluginTestCase(unittest.TestCase):
def test_install(self, mock_ssh):
p = plugin.Plugin()
def test_install(self, mock_ssh):
p = plugin.Plugin()
- mock_ssh.SSH().execute.return_value = (0, '', '')
+ mock_ssh.SSH
.from_node
().execute.return_value = (0, '', '')
input_file = Arg()
p.install(input_file)
expected_result = {}
input_file = Arg()
p.install(input_file)
expected_result = {}
@@
-49,7
+49,7
@@
class pluginTestCase(unittest.TestCase):
def test_remove(self, mock_ssh):
p = plugin.Plugin()
def test_remove(self, mock_ssh):
p = plugin.Plugin()
- mock_ssh.SSH().execute.return_value = (0, '', '')
+ mock_ssh.SSH
.from_node
().execute.return_value = (0, '', '')
input_file = Arg()
p.remove(input_file)
expected_result = {}
input_file = Arg()
p.remove(input_file)
expected_result = {}
@@
-57,7
+57,7
@@
class pluginTestCase(unittest.TestCase):
def test_install_setup_run(self, mock_ssh):
p = plugin.Plugin()
def test_install_setup_run(self, mock_ssh):
p = plugin.Plugin()
- mock_ssh.SSH().execute.return_value = (0, '', '')
+ mock_ssh.SSH
.from_node
().execute.return_value = (0, '', '')
plugins = {
"name": "sample"
}
plugins = {
"name": "sample"
}
@@
-76,7
+76,7
@@
class pluginTestCase(unittest.TestCase):
def test_remove_setup_run(self, mock_ssh):
p = plugin.Plugin()
def test_remove_setup_run(self, mock_ssh):
p = plugin.Plugin()
- mock_ssh.SSH().execute.return_value = (0, '', '')
+ mock_ssh.SSH
.from_node
().execute.return_value = (0, '', '')
plugins = {
"name": "sample"
}
plugins = {
"name": "sample"
}