Ejemplo n.º 1
0
    def test_min(self):
        h = Health(node1_id, self.config)

        for i in range(0, 1000):
            h.capture()

        self.assertLessEqual(0.0, h.min("cpu.load", time.time()-100))
Ejemplo n.º 2
0
    def test_avg(self):
        h = Health(node1_id, self.config)

        for i in range(0, 1000):
            h.capture()

        self.assertLess(0, h.avg("cpu.load", time.time()-100))
Ejemplo n.º 3
0
    def test_avg(self):
        h = Health(node1_id, self.config)

        for i in range(0, 1000):
            h.capture()

        self.assertLess(0, h.avg("cpu.load", time.time() - 100))
Ejemplo n.º 4
0
    def test_min(self):
        h = Health(node1_id, self.config)

        for i in range(0, 1000):
            h.capture()

        self.assertLessEqual(0.0, h.min("cpu.load", time.time() - 100))
Ejemplo n.º 5
0
 def test_capture_heartbeat(self):
     h = Health(node1_id, self.config)
     h.capture()
Ejemplo n.º 6
0
 def test_capture_heartbeat(self):
     h = Health(node1_id, self.config)
     h.capture()
Ejemplo n.º 7
0
 def test_create(self):
     h = Health(node1_id, self.config)