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

Unified Diff: appengine/findit/crash/test/crash_testcase.py

Issue 1852383002: [Findit] Integrate with Fracas through Pub/Sub. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Just rebase. Created 4 years, 8 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
Index: appengine/findit/crash/test/crash_testcase.py
diff --git a/appengine/findit/crash/test/crash_testcase.py b/appengine/findit/crash/test/crash_testcase.py
new file mode 100644
index 0000000000000000000000000000000000000000..97895bf9a5498195f48e08ba23221d2505b8fec3
--- /dev/null
+++ b/appengine/findit/crash/test/crash_testcase.py
@@ -0,0 +1,31 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import copy
+
+from google.appengine.api import users
+
+from common.findit_testcase import FinditTestCase
+from model.crash.crash_config import CrashConfig
+
+
+DEFAULT_CONFIG_DATA = {
+ 'fracas': {
+ 'crash_data_push_token': 'secret_token',
+ 'analysis_result_pubsub_topic': 'projects/project-name/topics/name',
+ 'supported_platform_list_by_channel': {
+ 'canary': ['win', 'mac'],
+ 'supported_channel': ['supported_platform'],
+ },
+ }
+}
+
+class CrashTestCase(FinditTestCase): # pragma: no cover.
+
+ def setUp(self):
+ super(CrashTestCase, self).setUp()
+ CrashConfig.Get().Update(
+ users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA)
+
+
« no previous file with comments | « appengine/findit/crash/fracas_crash_pipeline.py ('k') | appengine/findit/crash/test/fracas_crash_pipeline_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698