14 """The Python implementation of the GRPC interoperability test client."""
30 raise argparse.ArgumentTypeError(
'Only true/false allowed')
32 parser = argparse.ArgumentParser()
33 parser.add_argument(
'--server_host',
36 help=
'the host to which to connect')
37 parser.add_argument(
'--server_port',
40 help=
'the port to which to connect')
41 parser.add_argument(
'--test_case',
42 default=
'large_unary',
44 help=
'the test case to execute')
45 parser.add_argument(
'--use_tls',
48 help=
'require a secure connection')
49 return parser.parse_args()
54 if test_case_arg == test_case.value:
57 raise ValueError(
'No test case "%s"!' % test_case_arg)
61 logging.basicConfig(level=logging.INFO)
63 if args[
'test_case'] ==
"all":
65 test_case.run_test(args)
68 test_case.run_test(args)
71 if __name__ ==
'__main__':