Functions | |
None | insert_worker (Dict[str, Any] worker, List[Dict[str, Any]] workers) |
Dict[str, Any] | loadtest_template (Iterable[str] input_file_names, Mapping[str, Any] metadata, bool inject_client_pool, bool inject_driver_image, bool inject_driver_pool, bool inject_server_pool, bool inject_big_query_table, bool inject_timeout_seconds, bool inject_ttl_seconds) |
None | main () |
Type[yaml.SafeDumper] | template_dumper (str header_comment) |
None | uniquify_workers (Dict[str, List[Dict[str, Any]]] workermap) |
Variables | |
string | TEMPLATE_FILE_HEADER_COMMENT |
None performance.loadtest_template.insert_worker | ( | Dict[str, Any] | worker, |
List[Dict[str, Any]] | workers | ||
) |
Inserts client or server into a list, without inserting duplicates.
Definition at line 52 of file loadtest_template.py.
Dict[str, Any] performance.loadtest_template.loadtest_template | ( | Iterable[str] | input_file_names, |
Mapping[str, Any] | metadata, | ||
bool | inject_client_pool, | ||
bool | inject_driver_image, | ||
bool | inject_driver_pool, | ||
bool | inject_server_pool, | ||
bool | inject_big_query_table, | ||
bool | inject_timeout_seconds, | ||
bool | inject_ttl_seconds | ||
) |
Generates the load test template.
Definition at line 74 of file loadtest_template.py.
None performance.loadtest_template.main | ( | ) |
Definition at line 193 of file loadtest_template.py.
Type[yaml.SafeDumper] performance.loadtest_template.template_dumper | ( | str | header_comment | ) |
Returns a custom dumper to dump templates in the expected format.
Definition at line 170 of file loadtest_template.py.
None performance.loadtest_template.uniquify_workers | ( | Dict[str, List[Dict[str, Any]]] | workermap | ) |
Name workers if there is more than one for the same map key.
Definition at line 65 of file loadtest_template.py.
string performance.loadtest_template.TEMPLATE_FILE_HEADER_COMMENT |
Definition at line 38 of file loadtest_template.py.