def testUpdateAnalysisResultStatusAlsoRecordTriageHistory(self):
   success = triage_analysis._UpdateAnalysisResultStatus(
       self.master_name, self.builder_name, self.build_number_found, True)
   self.assertTrue(success)
   success = triage_analysis._UpdateAnalysisResultStatus(
       self.master_name, self.builder_name, self.build_number_found, False)
   self.assertTrue(success)
   analysis = WfAnalysis.Get(
       self.master_name, self.builder_name, self.build_number_found)
   self.assertEquals(2, len(analysis.triage_history))
   self.assertEquals(wf_analysis_result_status.FOUND_CORRECT,
                     analysis.triage_history[0]['result_status'])
   self.assertEquals(wf_analysis_result_status.FOUND_INCORRECT,
                     analysis.triage_history[1]['result_status'])
Example #2
0
 def testUpdateAnalysisResultStatusAlsoRecordTriageHistory(self):
     success = triage_analysis._UpdateAnalysisResultStatus(
         self.master_name, self.builder_name, self.build_number_found, True)
     self.assertTrue(success)
     success = triage_analysis._UpdateAnalysisResultStatus(
         self.master_name, self.builder_name, self.build_number_found,
         False)
     self.assertTrue(success)
     analysis = WfAnalysis.Get(self.master_name, self.builder_name,
                               self.build_number_found)
     self.assertEquals(2, len(analysis.triage_history))
     self.assertEquals(wf_analysis_result_status.FOUND_CORRECT,
                       analysis.triage_history[0]['result_status'])
     self.assertEquals(wf_analysis_result_status.FOUND_INCORRECT,
                       analysis.triage_history[1]['result_status'])
 def testUpdateAnalysisResultStatusWhenAnalysisIsIncomplete(self):
   success = triage_analysis._UpdateAnalysisResultStatus(
       self.master_name, self.builder_name, self.build_number_incomplete, True)
   self.assertFalse(success)
   analysis = WfAnalysis.Get(
       self.master_name, self.builder_name, self.build_number_found)
   self.assertIsNone(analysis.result_status)
Example #4
0
 def testUpdateAnalysisResultStatusWhenAnalysisIsIncomplete(self):
     success = triage_analysis._UpdateAnalysisResultStatus(
         self.master_name, self.builder_name, self.build_number_incomplete,
         True)
     self.assertFalse(success)
     analysis = WfAnalysis.Get(self.master_name, self.builder_name,
                               self.build_number_found)
     self.assertIsNone(analysis.result_status)
 def testUpdateAnalysisResultStatusWhenNotFoundButIncorrect(self):
   success = triage_analysis._UpdateAnalysisResultStatus(
       self.master_name, self.builder_name, self.build_number_not_found, False)
   self.assertTrue(success)
   analysis = WfAnalysis.Get(
       self.master_name, self.builder_name, self.build_number_not_found)
   self.assertEquals(wf_analysis_result_status.NOT_FOUND_INCORRECT,
                     analysis.result_status)
   self.assertIsNone(analysis.culprit_cls)
 def testUpdateAnalysisResultStatusWhenFoundAndCorrect(self):
   success = triage_analysis._UpdateAnalysisResultStatus(
       self.master_name, self.builder_name, self.build_number_found, True)
   self.assertTrue(success)
   analysis = WfAnalysis.Get(
       self.master_name, self.builder_name, self.build_number_found)
   self.assertEquals(wf_analysis_result_status.FOUND_CORRECT,
                     analysis.result_status)
   self.assertEquals(self.suspected_cls, analysis.culprit_cls)
Example #7
0
 def testUpdateAnalysisResultStatusWhenFoundAndCorrect(self):
     success = triage_analysis._UpdateAnalysisResultStatus(
         self.master_name, self.builder_name, self.build_number_found, True)
     self.assertTrue(success)
     analysis = WfAnalysis.Get(self.master_name, self.builder_name,
                               self.build_number_found)
     self.assertEquals(wf_analysis_result_status.FOUND_CORRECT,
                       analysis.result_status)
     self.assertEquals(self.suspected_cls, analysis.culprit_cls)
Example #8
0
 def testUpdateAnalysisResultStatusWhenNotFoundButIncorrect(self):
     success = triage_analysis._UpdateAnalysisResultStatus(
         self.master_name, self.builder_name, self.build_number_not_found,
         False)
     self.assertTrue(success)
     analysis = WfAnalysis.Get(self.master_name, self.builder_name,
                               self.build_number_not_found)
     self.assertEquals(wf_analysis_result_status.NOT_FOUND_INCORRECT,
                       analysis.result_status)
     self.assertIsNone(analysis.culprit_cls)