Add test coverage for triggerddteaminfolog command

This commit is contained in:
Chaoguang Lin 2021-07-16 20:24:09 +00:00
parent b00cefc243
commit b6dc20875e
1 changed files with 6 additions and 0 deletions

View File

@ -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()