]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/telemetry: compile all channels and collections in selftest 51761/head
authorLaura Flores <lflores@redhat.com>
Thu, 27 Apr 2023 18:22:47 +0000 (18:22 +0000)
committerLaura Flores <lflores@redhat.com>
Thu, 25 May 2023 15:14:34 +0000 (10:14 -0500)
The selftest currently compiles only channels and collections that
are on by default. This change tests the compilation of all channels
and collections.

Signed-off-by: Laura Flores <lflores@redhat.com>
(cherry picked from commit 70c5a4d54833f20a07f48488f29d9410d19f6bd4)

src/pybind/mgr/telemetry/module.py

index e37afce320246b3d8bc30efbc6111048750e6875..dcc2fb0a79d9062044a894e13c42442b484586b9 100644 (file)
@@ -1999,7 +1999,8 @@ Please consider enabling the telemetry module with 'ceph telemetry on'.'''
         return {}
 
     def self_test(self) -> None:
-        report = self.compile_report()
+        self.opt_in_all_collections()
+        report = self.compile_report(channels=ALL_CHANNELS)
         if len(report) == 0:
             raise RuntimeError('Report is empty')