Skip to content

Commit

Permalink
qa/tasks/mgr/test_module_selftest: fix localized value test
Browse files Browse the repository at this point in the history
When mgr/selftest/testkey = foo and mgr/selftest/x/testkey is not set,
then get_localized() should return foo.

Signed-off-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Mar 13, 2019
1 parent e66ed58 commit ebdd003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qa/tasks/mgr/test_module_selftest.py
Expand Up @@ -97,7 +97,7 @@ def get_localized_value():
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()),
Expand Down

0 comments on commit ebdd003

Please sign in to comment.