aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/tests/unit/benchmark/scenarios/storage
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2018-03-07 01:14:36 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-07 01:14:36 +0000
commit97c3405223fc1837047cf109d9105b87bf573e63 (patch)
tree66b192a01e97efeadf2c445075abd094434d86d6 /yardstick/tests/unit/benchmark/scenarios/storage
parent5306c1fa53c3c04016bf6af975e2387d20626b3d (diff)
parent6b271bdbd529ffb62eeb8cd14a3abe72aeeb3353 (diff)
Merge "[bugfix]tc006 failed due to volume attached to different location "/dev/vdc""
Diffstat (limited to 'yardstick/tests/unit/benchmark/scenarios/storage')
-rw-r--r--yardstick/tests/unit/benchmark/scenarios/storage/test_fio.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/yardstick/tests/unit/benchmark/scenarios/storage/test_fio.py b/yardstick/tests/unit/benchmark/scenarios/storage/test_fio.py
index f47d1ca29..f149cee69 100644
--- a/yardstick/tests/unit/benchmark/scenarios/storage/test_fio.py
+++ b/yardstick/tests/unit/benchmark/scenarios/storage/test_fio.py
@@ -61,6 +61,22 @@ class FioTestCase(unittest.TestCase):
}
args = {'options': options}
p = fio.Fio(args, self.ctx)
+ mock_ssh.SSH.from_node().execute.return_value = (0, '/dev/vdb', '')
+ p.setup()
+
+ mock_ssh.SSH.from_node().execute.return_value = (0, '', '')
+ self.assertIsNotNone(p.client)
+ self.assertTrue(p.setup_done)
+
+ def test_fio_job_file_no_disk__setup(self, mock_ssh):
+
+ options = {
+ 'job_file': 'job_file.ini',
+ 'directory': '/FIO_Test'
+ }
+ args = {'options': options}
+ p = fio.Fio(args, self.ctx)
+ mock_ssh.SSH.from_node().execute.return_value = (0, '', '')
p.setup()
mock_ssh.SSH.from_node().execute.return_value = (0, '', '')