Classes | Functions | Variables
run_grpclb_interop_tests Namespace Reference

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
 

Function Documentation

◆ _job_kill_handler()

def run_grpclb_interop_tests._job_kill_handler (   job)
private

Definition at line 179 of file run_grpclb_interop_tests.py.

◆ backend_server_jobspec()

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.

◆ build_interop_image_jobspec()

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.

◆ dns_server_in_docker_jobspec()

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.

◆ docker_run_cmdline()

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.

◆ fallback_server_jobspec()

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.

◆ grpc_server_in_docker_jobspec()

def run_grpclb_interop_tests.grpc_server_in_docker_jobspec (   server_cmdline,
  shortname 
)

Definition at line 277 of file run_grpclb_interop_tests.py.

◆ grpclb_jobspec()

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.

◆ lb_client_interop_jobspec()

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.

◆ run_one_scenario()

def run_grpclb_interop_tests.run_one_scenario (   scenario_config)

Definition at line 493 of file run_grpclb_interop_tests.py.

◆ shortname()

def run_grpclb_interop_tests.shortname (   shortname_prefix,
  shortname,
  index 
)

Definition at line 489 of file run_grpclb_interop_tests.py.

◆ transport_security_to_args()

def run_grpclb_interop_tests.transport_security_to_args (   transport_security)

Definition at line 184 of file run_grpclb_interop_tests.py.

◆ wait_until_dns_server_is_up()

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.

Variable Documentation

◆ _

run_grpclb_interop_tests._
private

Definition at line 440 of file run_grpclb_interop_tests.py.

◆ _BACKEND_SERVER_PORT

int run_grpclb_interop_tests._BACKEND_SERVER_PORT = 8080
private

Definition at line 47 of file run_grpclb_interop_tests.py.

◆ _BALANCER_SERVER_PORT

int run_grpclb_interop_tests._BALANCER_SERVER_PORT = 12000
private

Definition at line 46 of file run_grpclb_interop_tests.py.

◆ _FAKE_SERVERS_SAFENAME

string run_grpclb_interop_tests._FAKE_SERVERS_SAFENAME = 'fake_servers'
private

Definition at line 51 of file run_grpclb_interop_tests.py.

◆ _FALLBACK_SERVER_PORT

int run_grpclb_interop_tests._FALLBACK_SERVER_PORT = 443
private

Definition at line 45 of file run_grpclb_interop_tests.py.

◆ _LANGUAGES

dictionary run_grpclb_interop_tests._LANGUAGES
private
Initial value:
1 = {
2  'c++': CXXLanguage(),
3  'go': GoLanguage(),
4  'java': JavaLanguage(),
5 }

Definition at line 162 of file run_grpclb_interop_tests.py.

◆ _SERVICE_NAME

string run_grpclb_interop_tests._SERVICE_NAME = 'server.test.google.fr'
private

Definition at line 54 of file run_grpclb_interop_tests.py.

◆ _TEST_TIMEOUT

int run_grpclb_interop_tests._TEST_TIMEOUT = 30
private

Definition at line 49 of file run_grpclb_interop_tests.py.

◆ all_scenarios

run_grpclb_interop_tests.all_scenarios = json.loads(scenarios_input.read())

Definition at line 595 of file run_grpclb_interop_tests.py.

◆ argp

run_grpclb_interop_tests.argp = argparse.ArgumentParser(description='Run interop tests.')

Definition at line 342 of file run_grpclb_interop_tests.py.

◆ args

run_grpclb_interop_tests.args = argp.parse_args()

Definition at line 400 of file run_grpclb_interop_tests.py.

◆ build_jobs

list run_grpclb_interop_tests.build_jobs = []

Definition at line 404 of file run_grpclb_interop_tests.py.

◆ choices

run_grpclb_interop_tests.choices

Definition at line 345 of file run_grpclb_interop_tests.py.

◆ const

run_grpclb_interop_tests.const

Definition at line 391 of file run_grpclb_interop_tests.py.

◆ default

run_grpclb_interop_tests.default

Definition at line 347 of file run_grpclb_interop_tests.py.

◆ do_newline

run_grpclb_interop_tests.do_newline

Definition at line 438 of file run_grpclb_interop_tests.py.

◆ docker_images

dictionary run_grpclb_interop_tests.docker_images = {}

Definition at line 402 of file run_grpclb_interop_tests.py.

◆ help

run_grpclb_interop_tests.help

Definition at line 348 of file run_grpclb_interop_tests.py.

◆ job

def run_grpclb_interop_tests.job = build_interop_image_jobspec(l.safename)

Definition at line 422 of file run_grpclb_interop_tests.py.

◆ l

dictionary run_grpclb_interop_tests.l = _LANGUAGES[lang_name]

Definition at line 410 of file run_grpclb_interop_tests.py.

◆ languages

run_grpclb_interop_tests.languages = list(_LANGUAGES.keys())

Definition at line 406 of file run_grpclb_interop_tests.py.

◆ maxjobs

run_grpclb_interop_tests.maxjobs

Definition at line 442 of file run_grpclb_interop_tests.py.

◆ nargs

run_grpclb_interop_tests.nargs

Definition at line 346 of file run_grpclb_interop_tests.py.

◆ newline_on_success

run_grpclb_interop_tests.newline_on_success

Definition at line 441 of file run_grpclb_interop_tests.py.

◆ num_failures

int run_grpclb_interop_tests.num_failures = 0

Definition at line 440 of file run_grpclb_interop_tests.py.

◆ ROOT

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.

◆ type

run_grpclb_interop_tests.type

Definition at line 349 of file run_grpclb_interop_tests.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:43