diff --git a/unitest-restful.py b/unitest-restful.py index fe170719..bf7b583d 100755 --- a/unitest-restful.py +++ b/unitest-restful.py @@ -93,7 +93,7 @@ class TestGlances(unittest.TestCase): if p in ('uptime', 'now'): self.assertIsInstance(req.json(), text_type) elif p in ('fs', 'monitor', 'percpu', 'sensors', 'alert', 'processlist', - 'diskio', 'hddtemp', 'batpercent', 'network'): + 'diskio', 'hddtemp', 'batpercent', 'network', 'folders'): self.assertIsInstance(req.json(), list) elif p in ('psutilversion', 'help'): pass diff --git a/unitest-xmlrpc.py b/unitest-xmlrpc.py index 3f7b73f1..3f485672 100755 --- a/unitest-xmlrpc.py +++ b/unitest-xmlrpc.py @@ -126,12 +126,15 @@ class TestGlances(unittest.TestCase): def test_007_disk(self): """DISK.""" - method = "getFs() and getDiskIO()" + method = "getFs(), getFolders() and getDiskIO()" print('INFO: [TEST_007] Method: %s' % method) req = json.loads(client.getFs()) self.assertIsInstance(req, list) + req = json.loads(client.getFolders()) + self.assertIsInstance(req, list) + req = json.loads(client.getDiskIO()) self.assertIsInstance(req, list)