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