diff options
author | mbeierl <mark.beierl@dell.com> | 2017-09-25 09:56:53 -0400 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2017-09-25 10:00:12 -0400 |
commit | c0571183df86501bb626079b40a36a0d06e6e4f1 (patch) | |
tree | e146f69eace67c8a282941a4faa463107339ab90 /docker/storperf-master | |
parent | 84474c7fec2f926d811d1bc69792cb7f075e79c7 (diff) |
Fixing Results DB Keys
Update keys pushed to testresults DB so they match
the expected values.
JIRA: STORPERF-216
Change-Id: I837254fbfb2837d6abfc22d6d33878f60227480c
Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'docker/storperf-master')
-rw-r--r-- | docker/storperf-master/storperf/utilities/data_handler.py | 4 | ||||
-rw-r--r-- | docker/storperf-master/tests/utilities_tests/data_handler_test.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docker/storperf-master/storperf/utilities/data_handler.py b/docker/storperf-master/storperf/utilities/data_handler.py index 471c295..f5bf387 100644 --- a/docker/storperf-master/storperf/utilities/data_handler.py +++ b/docker/storperf-master/storperf/utilities/data_handler.py @@ -141,11 +141,11 @@ class DataHandler(object): criteria = 'FAIL' executor.metadata['criteria'] = criteria - executor.metadata['start_time'] = \ + executor.metadata['start_date'] = \ time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(executor.start_time)) - executor.metadata['end_time'] = \ + executor.metadata['stop_date'] = \ time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(executor.end_time)) 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 f028bd0..d83bf1b 100644 --- a/docker/storperf-master/tests/utilities_tests/data_handler_test.py +++ b/docker/storperf-master/tests/utilities_tests/data_handler_test.py @@ -301,8 +301,8 @@ class DataHandlerTest(unittest.TestCase): self.assertEqual('FAIL', self.db_results[1]['criteria'], 'Expected FAIL in criteria') self.assertEqual('2017-09-04 21:05:00', - self.db_results[1]['start_time'], + self.db_results[1]['start_date'], 'Start time') self.assertEqual('2017-09-04 21:20:00', - self.db_results[1]['end_time'], + self.db_results[1]['stop_date'], 'End time') |