changeset 350:8c072000d7ef

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 15:47:50 +0100
parents 698898a93a10
children 429cc9d03610
files Tests/Tests.py
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Tue Nov 03 14:32:38 2020 +0100
+++ b/Tests/Tests.py	Thu Nov 05 15:47:50 2020 +0100
@@ -6061,26 +6061,26 @@
             
 
     def test_log_categories(self):
-        original = DoGet(_REMOTE, '/tools/log-level-rest')
+        original = DoGet(_REMOTE, '/tools/log-level-http')
         
-        DoPut(_REMOTE, '/tools/log-level-rest', 'default')
-        self.assertEqual('default', DoGet(_REMOTE, '/tools/log-level-rest'))
+        DoPut(_REMOTE, '/tools/log-level-http', 'default')
+        self.assertEqual('default', DoGet(_REMOTE, '/tools/log-level-http'))
         DoGet(_REMOTE, '/system')
 
-        DoPut(_REMOTE, '/tools/log-level-rest', 'verbose')
-        self.assertEqual('verbose', DoGet(_REMOTE, '/tools/log-level-rest'))
+        DoPut(_REMOTE, '/tools/log-level-http', 'verbose')
+        self.assertEqual('verbose', DoGet(_REMOTE, '/tools/log-level-http'))
         DoGet(_REMOTE, '/system')
 
-        DoPut(_REMOTE, '/tools/log-level-rest', 'trace')
-        self.assertEqual('trace', DoGet(_REMOTE, '/tools/log-level-rest'))
+        DoPut(_REMOTE, '/tools/log-level-http', 'trace')
+        self.assertEqual('trace', DoGet(_REMOTE, '/tools/log-level-http'))
         DoGet(_REMOTE, '/system')
 
-        self.assertRaises(Exception, lambda: DoPut(_REMOTE, '/tools/log-level-rest', 'nope'))
+        self.assertRaises(Exception, lambda: DoPut(_REMOTE, '/tools/log-level-http', 'nope'))
         
         # Switch back to the original log level
-        DoPut(_REMOTE, '/tools/log-level-rest', original)
-
-        for c in [ 'generic', 'rest', 'dicom', 'plugins', 'sqlite' ]:
+        DoPut(_REMOTE, '/tools/log-level-http', original)
+
+        for c in [ 'generic', 'http', 'dicom', 'plugins', 'sqlite', 'lua', 'jobs' ]:
             DoPut(_REMOTE, '/tools/log-level-%s' % c, DoGet(_REMOTE, '/tools/log-level-%s' % c))
 
         self.assertRaises(Exception, lambda: DoPut(_REMOTE, '/tools/log-level-nope', 'default'))