summaryrefslogtreecommitdiffstats
path: root/storperf/tests/db_tests/graphite_db_test.py
diff options
context:
space:
mode:
authorMark Beierl <mark.beierl@emc.com>2016-05-12 10:05:25 -0600
committerMark Beierl <mark.beierl@emc.com>2016-05-12 10:35:49 -0600
commitd0f40c056a9283f30df45da5d35b72ce79b5d9a0 (patch)
treea0ece870394afa7eb1f936b2cf3a8c4583853d4f /storperf/tests/db_tests/graphite_db_test.py
parent4e7e1d2ffea89950ae516a19997765daccf92664 (diff)
Results DB Reporting
Add the ability to push results to the test result db. If the environment variable TEST_DB_URL is defined, results will be pushed there. If not, no push is attempted. Change-Id: Ib833530d7379c5f37f0d2904a83d31a4ee559ae6 JIRA: STORPERF-13 Signed-off-by: Mark Beierl <mark.beierl@emc.com>
Diffstat (limited to 'storperf/tests/db_tests/graphite_db_test.py')
-rw-r--r--storperf/tests/db_tests/graphite_db_test.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/storperf/tests/db_tests/graphite_db_test.py b/storperf/tests/db_tests/graphite_db_test.py
index ce970bb..e13545b 100644
--- a/storperf/tests/db_tests/graphite_db_test.py
+++ b/storperf/tests/db_tests/graphite_db_test.py
@@ -1,5 +1,13 @@
+##############################################################################
+# Copyright (c) 2016 EMC and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
from storperf.db.graphite_db import GraphiteDB
-import this
import unittest
@@ -9,13 +17,13 @@ class GraphiteDBTest(unittest.TestCase):
self.graphdb = GraphiteDB()
self.graphdb._job_db = self
- def test_wilcard_pattern(self):
+ def test_wildcard_pattern(self):
workload = "job_id"
expected = "job_id.*.*.*.*.*.*"
actual = self.graphdb.make_fullname_pattern(workload)
self.assertEqual(expected, actual, actual)
- def test_no_wilcard_pattern(self):
+ def test_no_wildcard_pattern(self):
workload = "job_id.workload.host.queue-depth.1.block-size.16"
actual = self.graphdb.make_fullname_pattern(workload)
self.assertEqual(workload, actual, actual)