def setUp(self): super(AssociateAlertsTest, self).setUp() app = webapp2.WSGIApplication([( '/associate_alerts', associate_alerts.AssociateAlertsHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetSheriffDomains(['chromium.org']) self.SetCurrentUser('*****@*****.**', is_admin=True)
def setUp(self): super(StartBisectTest, self).setUp() stored_object.Set( start_try_job._TESTER_DIRECTOR_MAP_KEY, { 'linux_perf_tester': 'linux_perf_bisector', 'win64_nv_tester': 'linux_perf_bisector', }) app = webapp2.WSGIApplication( [('/start_try_job', start_try_job.StartBisectHandler)]) self.testapp = webtest.TestApp(app) namespaced_stored_object.Set( start_try_job._BISECT_BOT_MAP_KEY, { 'ChromiumPerf': [ ('nexus4', 'android_nexus4_perf_bisect'), ('nexus7', 'android_nexus7_perf_bisect'), ('win8', 'win_8_perf_bisect'), ('xp', 'win_xp_perf_bisect'), ('android', 'android_nexus7_perf_bisect'), ('mac', 'mac_perf_bisect'), ('win', 'win_perf_bisect'), ('linux', 'linux_perf_bisect'), ('', 'linux_perf_bisect'), ], }) namespaced_stored_object.Set( start_try_job._BUILDER_TYPES_KEY, {'ChromiumPerf': 'perf', 'OtherMaster': 'foo'}) testing_common.SetSheriffDomains(['chromium.org'])
def setUp(self): super(FileBugTest, self).setUp() app = webapp2.WSGIApplication([('/file_bug', file_bug.FileBugHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetSheriffDomains(['chromium.org', 'google.com']) testing_common.SetInternalDomain('google.com') self.SetCurrentUser('*****@*****.**')
def setUp(self): super(BadBisectHandlerTest, self).setUp() app = webapp2.WSGIApplication([('/bad_bisect', bad_bisect.BadBisectHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetSheriffDomains(['chromium.org']) testing_common.SetIsInternalUser('*****@*****.**', True) self.SetCurrentUser('*****@*****.**') try_job.TryJob(id=1234).put()
def setUp(self): super(FileBugTest, self).setUp() app = webapp2.WSGIApplication([('/file_bug', file_bug.FileBugHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetSheriffDomains(['chromium.org', 'google.com']) testing_common.SetInternalDomain('google.com') self.SetCurrentUser('*****@*****.**') # When requests are made to the issue tracker service (using the mock # HTTP object in mock_oauth2_decorator), some data is expected, # but not necessarily read. mock_oauth2_decorator.HTTP_MOCK.data = '{"id": 123}'
def setUp(self): super(StartBisectTest, self).setUp() app = webapp2.WSGIApplication( [('/start_try_job', start_try_job.StartBisectHandler)]) self.testapp = webtest.TestApp(app) namespaced_stored_object.Set( can_bisect.BISECT_BOT_MAP_KEY, { 'ChromiumPerf': [ ('nexus4', 'android_nexus4_perf_bisect'), ('nexus7', 'android_nexus7_perf_bisect'), ('win8', 'win_8_perf_bisect'), ('xp', 'win_xp_perf_bisect'), ('android', 'android_nexus7_perf_bisect'), ('mac', 'mac_perf_bisect'), ('win', 'win_perf_bisect'), ('linux', 'linux_perf_bisect'), ('', 'linux_perf_bisect'), ], }) namespaced_stored_object.Set( start_try_job._BUILDER_TYPES_KEY, {'ChromiumPerf': 'perf', 'OtherMaster': 'foo'}) namespaced_stored_object.Set( start_try_job._BOT_BROWSER_MAP_KEY, [ ['android', 'android-chromium'], ['winx64', 'release_x64'], ['win_x64', 'release_x64'], ['', 'release'], ]) namespaced_stored_object.Set( start_try_job._TESTER_DIRECTOR_MAP_KEY, { 'ChromiumPerf': { 'linux_perf_tester': 'linux_perf_bisector', 'win64_nv_tester': 'linux_perf_bisector', } }) namespaced_stored_object.Set( start_try_job._MASTER_BUILDBUCKET_MAP_KEY, { 'ChromiumPerf': 'master.tryserver.chromium.perf' }) testing_common.SetSheriffDomains(['chromium.org']) # Add fake Rietveld auth info. rietveld_config = rietveld_service.RietveldConfig( id='default_rietveld_config', client_email='*****@*****.**', service_account_key='Fake Account Key', server_url='https://test-rietveld.appspot.com') rietveld_config.put()
def setUp(self): super(FileBugTest, self).setUp() app = webapp2.WSGIApplication([('/file_bug', file_bug.FileBugHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetSheriffDomains(['chromium.org']) testing_common.SetIsInternalUser('*****@*****.**', True) testing_common.SetIsInternalUser('*****@*****.**', False) self.SetCurrentUser('*****@*****.**') # Add a fake issue tracker service that we can get call values from. file_bug.issue_tracker_service = mock.MagicMock() self.original_service = file_bug.issue_tracker_service.IssueTrackerService self.service = MockIssueTrackerService file_bug.issue_tracker_service.IssueTrackerService = self.service
def setUp(self): super(EditAnomaliesTest, self).setUp() app = webapp2.WSGIApplication([('/edit_anomalies', edit_anomalies.EditAnomaliesHandler)]) self.testapp = webtest.TestApp(app) testing_common.SetSheriffDomains(['chromium.org'])