diff options
author | 2017-08-26 06:15:09 +0000 | |
---|---|---|
committer | 2017-08-26 06:15:09 +0000 | |
commit | 952ccb549c08b620a35f20ae809e0cea88ae4d99 (patch) | |
tree | 4c858f7009618d75bbf7f97ae1d304f682fa5d3f /tests/unit/benchmark/scenarios/storage/test_fio.py | |
parent | 4db701fdc4da663b0b61d9930777a2201b315f8f (diff) | |
parent | 32d76aa37d964580b3251eb2bbf8690a7a936167 (diff) |
Merge "Test case: Fio volume benchmark testcase using job file"
Diffstat (limited to 'tests/unit/benchmark/scenarios/storage/test_fio.py')
-rw-r--r-- | tests/unit/benchmark/scenarios/storage/test_fio.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/unit/benchmark/scenarios/storage/test_fio.py b/tests/unit/benchmark/scenarios/storage/test_fio.py index 55e443885..17594b9f4 100644 --- a/tests/unit/benchmark/scenarios/storage/test_fio.py +++ b/tests/unit/benchmark/scenarios/storage/test_fio.py @@ -55,6 +55,20 @@ class FioTestCase(unittest.TestCase): self.assertIsNotNone(p.client) self.assertEqual(p.setup_done, True) + def test_fio_job_file_successful_setup(self, mock_ssh): + + options = { + 'job_file': 'job_file.ini', + 'directory': '/FIO_Test' + } + args = {'options': options} + p = fio.Fio(args, self.ctx) + p.setup() + + mock_ssh.SSH.from_node().execute.return_value = (0, '', '') + self.assertIsNotNone(p.client) + self.assertEqual(p.setup_done, True) + def test_fio_successful_no_sla(self, mock_ssh): options = { |