From ebdd003bf410bd515e55c2dcabce255a154fdbe3 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 13 Mar 2019 07:11:47 -0500 Subject: [PATCH] qa/tasks/mgr/test_module_selftest: fix localized value test When mgr/selftest/testkey = foo and mgr/selftest/x/testkey is not set, then get_localized() should return foo. Signed-off-by: Sage Weil --- qa/tasks/mgr/test_module_selftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/mgr/test_module_selftest.py b/qa/tasks/mgr/test_module_selftest.py index a5190b13804..6a43ff5e316 100644 --- a/qa/tasks/mgr/test_module_selftest.py +++ b/qa/tasks/mgr/test_module_selftest.py @@ -97,7 +97,7 @@ class TestModuleSelftest(MgrTestCase): return self.mgr_cluster.mon_manager.raw_cluster_cmd( "mgr", "self-test", "config", "get_localized", "testkey").strip() - self.assertEqual(get_localized_value(), "None") + self.assertEqual(get_localized_value(), "foo") self.mgr_cluster.mon_manager.raw_cluster_cmd( "config", "set", "mgr", "mgr/selftest/{}/testkey".format( self.mgr_cluster.get_active_id()),