Esempio n. 1
0
 def _check_results(crr):
     self.failUnless(ICheckAndRepairResults.providedBy(crr))
     # we should detect the unhealthy, but skip over mutable-readcap
     # repairs until #625 is fixed
     self.failIf(crr.get_pre_repair_results().is_healthy())
     self.failIf(crr.get_repair_attempted())
     self.failIf(crr.get_post_repair_results().is_healthy())
Esempio n. 2
0
 def _check_results(crr):
     self.failUnless(ICheckAndRepairResults.providedBy(crr))
     # we should detect the unhealthy, but skip over mutable-readcap
     # repairs until #625 is fixed
     self.failIf(crr.get_pre_repair_results().is_healthy())
     self.failIf(crr.get_repair_attempted())
     self.failIf(crr.get_post_repair_results().is_healthy())
Esempio n. 3
0
 def data_post_repair_problems(self, ctx, data):
     all_objects = self.monitor.get_status().get_all_results()
     for path in sorted(all_objects.keys()):
         r = all_objects[path]
         assert ICheckAndRepairResults.providedBy(r)
         cr = r.get_post_repair_results()
         if not cr.is_healthy():
             yield path, cr
Esempio n. 4
0
 def data_post_repair_problems(self, ctx, data):
     all_objects = self.monitor.get_status().get_all_results()
     for path in sorted(all_objects.keys()):
         r = all_objects[path]
         assert ICheckAndRepairResults.providedBy(r)
         cr = r.get_post_repair_results()
         if not cr.is_healthy():
             yield path, cr
Esempio n. 5
0
 def _check_results(crr):
     self.assertThat(ICheckAndRepairResults.providedBy(crr),
                     Equals(True))
     # we should detect the unhealthy, but skip over mutable-readcap
     # repairs until #625 is fixed
     self.assertThat(crr.get_pre_repair_results().is_healthy(),
                     Equals(False))
     self.assertThat(crr.get_repair_attempted(), Equals(False))
     self.assertThat(crr.get_post_repair_results().is_healthy(),
                     Equals(False))
Esempio n. 6
0
    def post_repair_problems(self, req, tag):
        all_objects = self.monitor.get_status().get_all_results()
        problems = []

        for path in sorted(all_objects.keys()):
            r = all_objects[path]
            assert ICheckAndRepairResults.providedBy(r)
            cr = r.get_post_repair_results()
            if not cr.is_healthy():
                problem = self._join_pathstring(path), ": ", self._html(
                    cr.get_summary())
                problems.append({"problem": problem})

        return SlotsSequenceElement(tag, problems)