summaryrefslogtreecommitdiffstats
path: root/unitest-restful.py
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2019-01-24 21:43:50 +0100
committernicolargo <nicolas@nicolargo.com>2019-01-24 21:43:50 +0100
commit6ca31c947aaeb618c33115bfcd6b684b5f2a642b (patch)
treef42f1b40a272a95d30d433249dd95fef0d3188ed /unitest-restful.py
parentc904a8a3fea3af063fca34d270284a646ea2972d (diff)
Add an unitest for issue #1401
Diffstat (limited to 'unitest-restful.py')
-rwxr-xr-xunitest-restful.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/unitest-restful.py b/unitest-restful.py
index 03704fcf..7b77a2b9 100755
--- a/unitest-restful.py
+++ b/unitest-restful.py
@@ -217,6 +217,15 @@ class TestGlances(unittest.TestCase):
self.assertIsInstance(req.json()['system'], list)
self.assertTrue(len(req.json()['system']) > 1)
+ def test_011_issue1401(self):
+ """Check issue #1401."""
+ method = "network/interface_name"
+ print('INFO: [TEST_011] Issue #1401')
+ req = self.http_get("%s/%s" % (URL, method))
+ self.assertTrue(req.ok)
+ self.assertIsInstance(req.json(), dict)
+ self.assertIsInstance(req.json()['interface_name'], list)
+
def test_999_stop_server(self):
"""Stop the Glances Web Server."""
print('INFO: [TEST_999] Stop the Glances Web Server')