コード例 #1
0
 def test_build_and_finish_qa(self):
     qaData = tagCollectorAPI.getQAPendingRequests()
     self.assertTrue(qaData)
     tagCollectorAPI.setRequestBuilding(
         qaData["id"], qaData["release_name"], machine=socket.gethostname(), pid=os.getpid()
     )
     qaBuildingRequests = tagCollectorAPI.getBuildingQARequests()
     self.assertTrue(qaBuildingRequests)
     self.assertEquals(self.release_name, qaBuildingRequests[0]["release_name"])
     self.assertEquals(self.architecture_name, qaBuildingRequests[0]["architecture_name"])
     self.assertEquals("QA", qaBuildingRequests[0]["type"])
     isFinished = tagCollectorAPI.finishRequest(qaBuildingRequests[0]["id"])
     self.assertTrue(isFinished)
コード例 #2
0
 def test_build_and_finish_qa(self):
     qaData = tagCollectorAPI.getQAPendingRequests()
     self.assertTrue(qaData)
     tagCollectorAPI.setRequestBuilding(qaData['id'],
                                        qaData['release_name'],
                                        machine=socket.gethostname(),
                                        pid=os.getpid())
     qaBuildingRequests = tagCollectorAPI.getBuildingQARequests()
     self.assertTrue(qaBuildingRequests)
     self.assertEquals(self.release_name,
                       qaBuildingRequests[0]['release_name'])
     self.assertEquals(self.architecture_name,
                       qaBuildingRequests[0]['architecture_name'])
     self.assertEquals('QA', qaBuildingRequests[0]['type'])
     isFinished = tagCollectorAPI.finishRequest(qaBuildingRequests[0]['id'])
     self.assertTrue(isFinished)
コード例 #3
0
 def test_qa_building_queue_empty(self):
     qaBuildingRequests = tagCollectorAPI.getBuildingQARequests()
     self.assertFalse(qaBuildingRequests)
コード例 #4
0
 def test_qa_building_queue_empty(self):
     qaBuildingRequests = tagCollectorAPI.getBuildingQARequests()
     self.assertFalse(qaBuildingRequests)