]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/telemetry: compile all channels and collections in selftest 51760/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:10:51 +0000 (10:10 -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 74e289461d2ea16ba6e5deab2ebbc1e7032e3e03..cd431a2e1cc697e5ce4c0d5fbadd654dc2ce11f6 100644 (file)
@@ -2004,7 +2004,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')