From 2fedb9c454e16e0af390968bb1123dacfd8e316f Mon Sep 17 00:00:00 2001 From: Laura Flores Date: Thu, 27 Apr 2023 18:22:47 +0000 Subject: [PATCH] mgr/telemetry: compile all channels and collections in selftest 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 (cherry picked from commit 70c5a4d54833f20a07f48488f29d9410d19f6bd4) --- src/pybind/mgr/telemetry/module.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/telemetry/module.py b/src/pybind/mgr/telemetry/module.py index e37afce320246..dcc2fb0a79d90 100644 --- a/src/pybind/mgr/telemetry/module.py +++ b/src/pybind/mgr/telemetry/module.py @@ -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') -- 2.39.5