Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: dashboard/dashboard/pinpoint/handlers/jobs_test.py

Issue 2996473002: [pinpoint] Add QuestGenerator object. (Closed)
Patch Set: rebase Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dashboard/dashboard/pinpoint/handlers/new.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/pinpoint/handlers/jobs_test.py
diff --git a/dashboard/dashboard/pinpoint/handlers/jobs_test.py b/dashboard/dashboard/pinpoint/handlers/jobs_test.py
index 00335c4778081d2f74d79e566e0858133e4eef48..1819a23321d77c1f96412793230dbbfdefc042cf 100644
--- a/dashboard/dashboard/pinpoint/handlers/jobs_test.py
+++ b/dashboard/dashboard/pinpoint/handlers/jobs_test.py
@@ -13,6 +13,7 @@ from google.appengine.ext import testbed
from dashboard.pinpoint.handlers import jobs
from dashboard.pinpoint.models import job as job_module
+from dashboard.pinpoint.models import quest_generator
class JobsTest(unittest.TestCase):
@@ -35,11 +36,15 @@ class JobsTest(unittest.TestCase):
def testPost_ValidRequest(self):
# Create job.
+ generator = quest_generator.QuestGenerator({
+ 'configuration': 'chromium-rel-mac11-pro',
+ 'target': 'telemetry_perf_tests',
+ 'dimensions': '{}',
+ 'benchmark': 'speedometer',
+ })
job = job_module.Job.New(
- configuration='Mac',
- test_suite='suite',
- test='filter',
- metric='metric',
+ arguments=generator.AsDict(),
+ quests=generator.Quests(),
auto_explore=True,
bug_id=None)
job.put()
« no previous file with comments | « no previous file | dashboard/dashboard/pinpoint/handlers/new.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698