diff options
author | 2017-09-28 15:37:01 +0000 | |
---|---|---|
committer | 2017-09-28 15:37:01 +0000 | |
commit | 41ba13aad1a57fe9b9bcc674cbfe3215e295f177 (patch) | |
tree | 82f20071021ef876d9ff7735f6cb028980484844 /docker/storperf-master/tests/utilities_tests | |
parent | f38586641a6528fd0165c1146a164622853b6ac9 (diff) | |
parent | 01bad48306bfa00f234dd09ab30a05e9b35b01b2 (diff) |
Merge "Fix Test Results"
Diffstat (limited to 'docker/storperf-master/tests/utilities_tests')
-rw-r--r-- | docker/storperf-master/tests/utilities_tests/data_handler_test.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docker/storperf-master/tests/utilities_tests/data_handler_test.py b/docker/storperf-master/tests/utilities_tests/data_handler_test.py index d83bf1b..8c7deb5 100644 --- a/docker/storperf-master/tests/utilities_tests/data_handler_test.py +++ b/docker/storperf-master/tests/utilities_tests/data_handler_test.py @@ -306,3 +306,32 @@ class DataHandlerTest(unittest.TestCase): self.assertEqual('2017-09-04 21:20:00', self.db_results[1]['stop_date'], 'End time') + + def test_pass_criteria(self): + metadata = { + "details": { + "steady_state": { + "_warm_up.queue-depth.8.block-size.16384": False, + "rw.queue-depth.4.block-size.16384": True + } + }, + } + criteria = self.data_handler._determine_criteria(metadata) + self.assertEqual('PASS', + criteria, + 'PASS') + + def test_fail_criteria(self): + metadata = { + "details": { + "steady_state": { + "_warm_up.queue-depth.8.block-size.16384": False, + "rw.queue-depth.4.block-size.16384": True, + "rw.queue-depth.8.block-size.16384": False + } + }, + } + criteria = self.data_handler._determine_criteria(metadata) + self.assertEqual('FAIL', + criteria, + 'FAIL') |