summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authormbeierl <mark.beierl@dell.com>2017-02-01 14:27:19 -0500
committermbeierl <mark.beierl@dell.com>2017-02-01 14:41:49 -0500
commitb64833b08e839691cc0c95aa27b49e7eee83dbe6 (patch)
tree63e1d8f8a1f51a8cb0f89d725f08bf1df8072db5 /tests
parentae4a3d47a67dfddd3a222a1f06c3212956567d24 (diff)
Add URL for results report
Records the URL returned from testresults db. Changes the URL ref from localhost to external and reports in daily job. Change-Id: I0068ea963671fb183779ac20592ba6933647eea0 JIRA: STORPERF-104 Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/utilities_tests/data_handler_test.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/utilities_tests/data_handler_test.py b/tests/utilities_tests/data_handler_test.py
index 7963c9f..90df0f6 100644
--- a/tests/utilities_tests/data_handler_test.py
+++ b/tests/utilities_tests/data_handler_test.py
@@ -8,11 +8,12 @@
##############################################################################
import os
-from storperf.utilities.data_handler import DataHandler
import unittest
import mock
+from storperf.utilities.data_handler import DataHandler
+
class MockGraphiteDB(object):
@@ -54,7 +55,8 @@ class DataHandlerTest(unittest.TestCase):
def push_results_to_db(self, *args):
self.pushed = True
self.db_results = args
- pass
+ results = {"href": "http://localhost/api/result/uuid-that-is-long"}
+ return results
def terminate(self):
self._terminated = True
@@ -283,4 +285,3 @@ class DataHandlerTest(unittest.TestCase):
'Start time')
self.assertEqual('2017-09-04 21:20:00', self.db_results[4],
'End time')
-