Classes | |
| class | CXXLanguage |
| class | GoLanguage |
| class | JavaLanguage |
Functions | |
| def | _job_kill_handler (job) |
| def | backend_server_jobspec (transport_security, shortname) |
| def | build_interop_image_jobspec (lang_safename, basename_prefix='grpc_interop') |
| def | dns_server_in_docker_jobspec (grpclb_ips, fallback_ips, shortname, cause_no_error_no_data_for_balancer_a_record) |
| def | docker_run_cmdline (cmdline, image, docker_args, cwd, environ=None) |
| def | fallback_server_jobspec (transport_security, shortname) |
| def | grpc_server_in_docker_jobspec (server_cmdline, shortname) |
| def | grpclb_jobspec (transport_security, short_stream, backend_addrs, shortname) |
| def | lb_client_interop_jobspec (language, dns_server_ip, docker_image, transport_security='tls') |
| def | run_one_scenario (scenario_config) |
| def | shortname (shortname_prefix, shortname, index) |
| def | transport_security_to_args (transport_security) |
| def | wait_until_dns_server_is_up (dns_server_ip) |
Variables | |
| _ | |
| int | _BACKEND_SERVER_PORT = 8080 |
| int | _BALANCER_SERVER_PORT = 12000 |
| string | _FAKE_SERVERS_SAFENAME = 'fake_servers' |
| int | _FALLBACK_SERVER_PORT = 443 |
| dictionary | _LANGUAGES |
| string | _SERVICE_NAME = 'server.test.google.fr' |
| int | _TEST_TIMEOUT = 30 |
| all_scenarios = json.loads(scenarios_input.read()) | |
| argp = argparse.ArgumentParser(description='Run interop tests.') | |
| args = argp.parse_args() | |
| list | build_jobs = [] |
| choices | |
| const | |
| default | |
| do_newline | |
| dictionary | docker_images = {} |
| help | |
| def | job = build_interop_image_jobspec(l.safename) |
| dictionary | l = _LANGUAGES[lang_name] |
| languages = list(_LANGUAGES.keys()) | |
| maxjobs | |
| nargs | |
| newline_on_success | |
| num_failures = 0 | |
| ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../..')) | |
| type | |
|
private |
Definition at line 179 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.backend_server_jobspec | ( | transport_security, | |
| shortname | |||
| ) |
Create jobspec for running a backend server
Definition at line 254 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.build_interop_image_jobspec | ( | lang_safename, | |
basename_prefix = 'grpc_interop' |
|||
| ) |
Creates jobspec for building interop docker image for a language
Definition at line 326 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.dns_server_in_docker_jobspec | ( | grpclb_ips, | |
| fallback_ips, | |||
| shortname, | |||
| cause_no_error_no_data_for_balancer_a_record | |||
| ) |
Definition at line 299 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.docker_run_cmdline | ( | cmdline, | |
| image, | |||
| docker_args, | |||
| cwd, | |||
environ = None |
|||
| ) |
Wraps given cmdline array to create 'docker run' cmdline from it.
Definition at line 169 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.fallback_server_jobspec | ( | transport_security, | |
| shortname | |||
| ) |
Create jobspec for running a fallback server
Definition at line 244 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.grpc_server_in_docker_jobspec | ( | server_cmdline, | |
| shortname | |||
| ) |
Definition at line 277 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.grpclb_jobspec | ( | transport_security, | |
| short_stream, | |||
| backend_addrs, | |||
| shortname | |||
| ) |
Create jobspec for running a balancer server
Definition at line 264 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.lb_client_interop_jobspec | ( | language, | |
| dns_server_ip, | |||
| docker_image, | |||
transport_security = 'tls' |
|||
| ) |
Runs a gRPC client under test in a docker container
Definition at line 200 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.run_one_scenario | ( | scenario_config | ) |
Definition at line 493 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.shortname | ( | shortname_prefix, | |
| shortname, | |||
| index | |||
| ) |
Definition at line 489 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.transport_security_to_args | ( | transport_security | ) |
Definition at line 184 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.wait_until_dns_server_is_up | ( | dns_server_ip | ) |
Probes the DNS server until it's running and safe for tests.
Definition at line 454 of file run_grpclb_interop_tests.py.
|
private |
Definition at line 440 of file run_grpclb_interop_tests.py.
|
private |
Definition at line 47 of file run_grpclb_interop_tests.py.
|
private |
Definition at line 46 of file run_grpclb_interop_tests.py.
|
private |
Definition at line 51 of file run_grpclb_interop_tests.py.
|
private |
Definition at line 45 of file run_grpclb_interop_tests.py.
|
private |
Definition at line 162 of file run_grpclb_interop_tests.py.
|
private |
Definition at line 54 of file run_grpclb_interop_tests.py.
|
private |
Definition at line 49 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.all_scenarios = json.loads(scenarios_input.read()) |
Definition at line 595 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.argp = argparse.ArgumentParser(description='Run interop tests.') |
Definition at line 342 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.args = argp.parse_args() |
Definition at line 400 of file run_grpclb_interop_tests.py.
| list run_grpclb_interop_tests.build_jobs = [] |
Definition at line 404 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.choices |
Definition at line 345 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.const |
Definition at line 391 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.default |
Definition at line 347 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.do_newline |
Definition at line 438 of file run_grpclb_interop_tests.py.
| dictionary run_grpclb_interop_tests.docker_images = {} |
Definition at line 402 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.help |
Definition at line 348 of file run_grpclb_interop_tests.py.
| def run_grpclb_interop_tests.job = build_interop_image_jobspec(l.safename) |
Definition at line 422 of file run_grpclb_interop_tests.py.
| dictionary run_grpclb_interop_tests.l = _LANGUAGES[lang_name] |
Definition at line 410 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.languages = list(_LANGUAGES.keys()) |
Definition at line 406 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.maxjobs |
Definition at line 442 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.nargs |
Definition at line 346 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.newline_on_success |
Definition at line 441 of file run_grpclb_interop_tests.py.
| int run_grpclb_interop_tests.num_failures = 0 |
Definition at line 440 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../..')) |
Definition at line 42 of file run_grpclb_interop_tests.py.
| run_grpclb_interop_tests.type |
Definition at line 349 of file run_grpclb_interop_tests.py.