Ejemplo n.º 1
0
 def test_get_attached_filtered_bugs_problems(self):
     bv = BugValidator(self.runtime_fixture())
     bv.product = "OpenShift Container Platform"
     bv.target_releases = ['4.6.0', '4.6.z']
     bv._get_attached_filtered_bugs([60089])  # SHIPPED_LIVE RHSA
     self.assertTrue(bv.problems, "Should find version mismatch")
     self.assertTrue(any("1856529" in problem for problem in bv.problems),
                     "Should find version mismatch for 1856529")
Ejemplo n.º 2
0
 def test_get_attached_filtered_bugs(self):
     bv = BugValidator(self.runtime_fixture())
     bv.product = "OpenShift Container Platform"
     bv.target_releases = ['4.5.0', '4.5.z']
     bugs = {bug.id
             for bug in bv._get_attached_filtered_bugs([60089])
             }  # SHIPPED_LIVE RHSA
     self.assertIn(1856529, bugs)  # security tracker
     self.assertNotIn(1858981, bugs)  # flaw bug
     self.assertFalse(bv.problems, "There should be no problems")