From 5ab1059c3504366cd018995205d98ffa5b0341b7 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 22 Nov 2015 11:02:27 +0100 Subject: [PATCH] Add Folders plugin to the unitaries tests --- unitest-restful.py | 2 +- unitest-xmlrpc.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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)