提交 5ab1059c 编写于 作者: N nicolargo

Add Folders plugin to the unitaries tests

上级 1daabae3
......@@ -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
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册