コード例 #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
ファイル: test_health.py プロジェクト: zenlambda/infinisql
    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
ファイル: test_health.py プロジェクト: zenlambda/infinisql
    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
ファイル: test_health.py プロジェクト: zenlambda/infinisql
 def test_capture_heartbeat(self):
     h = Health(node1_id, self.config)
     h.capture()
コード例 #7
0
ファイル: test_health.py プロジェクト: zenlambda/infinisql
 def test_create(self):
     h = Health(node1_id, self.config)