From b6dc20875e623c1abb0f662f4e466f6f5cd557a9 Mon Sep 17 00:00:00 2001 From: Chaoguang Lin Date: Fri, 16 Jul 2021 20:24:09 +0000 Subject: [PATCH] Add test coverage for triggerddteaminfolog command --- bindings/python/tests/fdbcli_tests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bindings/python/tests/fdbcli_tests.py b/bindings/python/tests/fdbcli_tests.py index 3c710dcf4a..eb82cc0362 100755 --- a/bindings/python/tests/fdbcli_tests.py +++ b/bindings/python/tests/fdbcli_tests.py @@ -499,6 +499,11 @@ def profile(logger): run_fdbcli_command('profile', 'client', 'set', 'default', 'default') assert run_fdbcli_command('profile', 'client', 'get') == default_profile_client_get_output +@enable_logging() +def triggerddteaminfolog(logger): + # this command is straightforward and only has one code path + output = run_fdbcli_command('triggerddteaminfolog') + assert output == 'Triggered team info logging in data distribution.' if __name__ == '__main__': parser = ArgumentParser(formatter_class=RawDescriptionHelpFormatter, @@ -542,6 +547,7 @@ if __name__ == '__main__': suspend() transaction() throttle() + triggerddteaminfolog() else: assert args.process_number > 1, "Process number should be positive" coordinators()