Esempio 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))
Esempio 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))
Esempio 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))
Esempio 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))
Esempio n. 5
0
 def test_capture_heartbeat(self):
     h = Health(node1_id, self.config)
     h.capture()
Esempio n. 6
0
 def test_capture_heartbeat(self):
     h = Health(node1_id, self.config)
     h.capture()
Esempio n. 7
0
 def test_create(self):
     h = Health(node1_id, self.config)