SYMBOL INDEX (1285 symbols across 113 files) FILE: packaging/bdist_prestoadmin.py class bdist_prestoadmin (line 33) | class bdist_prestoadmin(Command): method build_wheel (line 56) | def build_wheel(self, build_dir): method generate_install_script (line 68) | def generate_install_script(self, wheel_name, build_dir): method _fill_in_template (line 75) | def _fill_in_template(self, template_lines, wheel_name): method _replace_template_values (line 84) | def _replace_template_values(self, line, wheel_name, extra_install_args): method package_dependencies (line 90) | def package_dependencies(self, build_dir): method archive_dist (line 107) | def archive_dist(self, build_dir, dist_dir): method run (line 120) | def run(self): method initialize_options (line 134) | def initialize_options(self): method finalize_options (line 142) | def finalize_options(self): FILE: prestoadmin/catalog.py function deploy_files (line 46) | def deploy_files(filenames, local_dir, remote_dir, user_group, mode=0600): function gather_catalogs (line 54) | def gather_catalogs(local_config_dir, allow_overwrite=False): function validate (line 66) | def validate(filenames): function add (line 88) | def add(name=None): function remove (line 142) | def remove(name): function remove_file (line 172) | def remove_file(path): FILE: prestoadmin/collect.py function logs (line 61) | def logs(): function copy_admin_log (line 77) | def copy_admin_log(log_folder): function make_tarfile (line 81) | def make_tarfile(output_filename, source_dir): function get_remote_log_files (line 90) | def get_remote_log_files(dest_path): function get_files (line 100) | def get_files(remote_path, local_path): function request_url (line 117) | def request_url(url_extension): function query_info (line 127) | def query_info(query_id): function get_request (line 157) | def get_request(url, err_msg): function system_info (line 171) | def system_info(): function get_system_info (line 211) | def get_system_info(download_location): function get_catalog_configs (line 231) | def get_catalog_configs(dest_path): function get_platform_information (line 237) | def get_platform_information(): function get_java_version (line 244) | def get_java_version(): FILE: prestoadmin/config.py function get_conf_from_json_file (line 30) | def get_conf_from_json_file(path): function get_conf_from_properties_file (line 44) | def get_conf_from_properties_file(path): function get_conf_from_properties_data (line 49) | def get_conf_from_properties_data(data): function split_to_pair (line 59) | def split_to_pair(line): function get_conf_from_config_file (line 69) | def get_conf_from_config_file(path): function json_to_string (line 75) | def json_to_string(conf): function write_conf_to_file (line 79) | def write_conf_to_file(conf, path): function write_properties_file (line 89) | def write_properties_file(conf, path): function write_config_file (line 96) | def write_config_file(conf, path): function write (line 101) | def write(output, path): function fill_defaults (line 115) | def fill_defaults(conf, defaults): FILE: prestoadmin/configure_cmds.py function deploy (line 47) | def deploy(rolename=None): function gather_config_directory (line 88) | def gather_config_directory(): function deploy_config_directory (line 110) | def deploy_config_directory(tarfile): function configuration_fetch (line 115) | def configuration_fetch(file_name, config_destination, should_warn=True): function configuration_show (line 127) | def configuration_show(file_name, should_warn=True): function show (line 142) | def show(config_type=None): FILE: prestoadmin/coordinator.py class Coordinator (line 33) | class Coordinator(Node): method _get_conf_dir (line 63) | def _get_conf_dir(self): method default_config (line 66) | def default_config(self, filename): method validate (line 81) | def validate(conf): FILE: prestoadmin/deploy.py function coordinator (line 38) | def coordinator(): function workers (line 48) | def workers(): function configure_presto (line 59) | def configure_presto(conf, remote_dir): function output_format (line 66) | def output_format(conf): function dict_to_equal_format (line 80) | def dict_to_equal_format(conf): function key_val_to_equal (line 85) | def key_val_to_equal(items): function list_to_line_separated (line 89) | def list_to_line_separated(conf): function deploy (line 94) | def deploy(confs, remote_dir): function secure_create_file (line 102) | def secure_create_file(filepath, user_group, mode=600): function secure_create_directory (line 122) | def secure_create_directory(filepath, user_group, mode=755): function deploy_node_properties (line 142) | def deploy_node_properties(content, remote_dir): function write_to_remote_file (line 162) | def write_to_remote_file(text, filepath, owner, mode=600): function escape_single_quotes (line 169) | def escape_single_quotes(text): FILE: prestoadmin/fabric_patches.py function warn (line 46) | def warn(msg): function abort (line 56) | def abort(msg): function run (line 68) | def run(command, shell=True, pty=True, combine_stderr=None, quiet=False, function sudo (line 84) | def sudo(command, shell=True, pty=True, combine_stderr=None, user=None, function log_output (line 99) | def log_output(out): function _execute (line 106) | def _execute(task, host, my_env, args, kwargs, jobs, queue, multiprocess... function execute (line 163) | def execute(task, *args, **kwargs): FILE: prestoadmin/file.py function run (line 35) | def run(script, remote_dir='/tmp'): function copy (line 53) | def copy(local_file, remote_dir=REMOTE_COPY_DIR): FILE: prestoadmin/main.py function _get_presto_env_options (line 79) | def _get_presto_env_options(): class _ModuleCache (line 98) | class _ModuleCache(object): method __init__ (line 103) | def __init__(self): method __contains__ (line 106) | def __contains__(self, value): method add (line 109) | def add(self, value): method clear (line 112) | def clear(self): function is_classic_task (line 119) | def is_classic_task(tup): function load_fabfile (line 135) | def load_fabfile(path, importer=None): function load_tasks_from_module (line 182) | def load_tasks_from_module(imported): function extract_tasks (line 200) | def extract_tasks(imported_vars): function is_task_module (line 239) | def is_task_module(a): function is_task_object (line 252) | def is_task_object(a): function parser_for_options (line 262) | def parser_for_options(): function _is_task (line 366) | def _is_task(name, value): function _sift_tasks (line 373) | def _sift_tasks(mapping): function _task_names (line 385) | def _task_names(mapping): function _print_docstring (line 402) | def _print_docstring(docstrings, name): function _normal_list (line 410) | def _normal_list(docstrings=True): function list_commands (line 438) | def list_commands(docstring, format_): function get_task_docstring (line 464) | def get_task_docstring(task): function display_command (line 473) | def display_command(name, code=0): function parse_arguments (line 497) | def parse_arguments(arguments, commands): function invalid_command_error (line 532) | def invalid_command_error(arguments): function update_output_levels (line 536) | def update_output_levels(show, hide): function show_commands (line 553) | def show_commands(docstring, format, code=0): function run_tasks (line 558) | def run_tasks(task_list): function _escape_split (line 587) | def _escape_split(sep, argstr): function _to_boolean (line 614) | def _to_boolean(string): function _handle_generic_set_env_vars (line 634) | def _handle_generic_set_env_vars(non_default_options): function validate_hosts (line 662) | def validate_hosts(cli_hosts, config_path): function _update_env (line 684) | def _update_env(default_options, non_default_options, load_config_callba... function get_default_options (line 735) | def get_default_options(options, non_default_options): function _get_config_callback (line 756) | def _get_config_callback(commands_to_run): function parse_and_validate_commands (line 775) | def parse_and_validate_commands(args=sys.argv[1:]): function load_config (line 846) | def load_config(load_config_callback): function _exit_code (line 855) | def _exit_code(results): function main (line 892) | def main(args=sys.argv[1:]): FILE: prestoadmin/mode.py function _load_mode_config (line 38) | def _load_mode_config(): function _store_mode_config (line 42) | def _store_mode_config(mode_config): function get_mode (line 46) | def get_mode(validate=True): function validate_mode (line 63) | def validate_mode(mode): function for_mode (line 67) | def for_mode(mode, mode_map): function select (line 77) | def select(new_mode): function get (line 97) | def get(): function list (line 111) | def list(): FILE: prestoadmin/node.py class Node (line 31) | class Node(): method __init__ (line 34) | def __init__(self): method get_conf (line 37) | def get_conf(self): method _get_conf_dir (line 53) | def _get_conf_dir(self): method default_config (line 57) | def default_config(self, filename): method validate (line 62) | def validate(conf): method build_all_defaults (line 65) | def build_all_defaults(self): FILE: prestoadmin/package.py function install (line 39) | def install(local_path): function check_if_valid_rpm (line 53) | def check_if_valid_rpm(local_path): function deploy_install (line 63) | def deploy_install(local_path): function deploy_upgrade (line 67) | def deploy_upgrade(local_path): function deploy_action (line 71) | def deploy_action(local_path, rpm_action): function deploy (line 76) | def deploy(local_path=None): function _rpm_install (line 92) | def _rpm_install(package_path): function _nodeps_rpm_option (line 102) | def _nodeps_rpm_option(): function rpm_install (line 109) | def rpm_install(rpm_name): function _rpm_path (line 115) | def _rpm_path(rpm_filename): function rpm_upgrade (line 119) | def rpm_upgrade(rpm_name): function _rpm_upgrade (line 132) | def _rpm_upgrade(package_name): function uninstall (line 139) | def uninstall(rpm_name): function rpm_uninstall (line 152) | def rpm_uninstall(package_name): function is_rpm_installed (line 162) | def is_rpm_installed(package_name): function _rpm_uninstall (line 166) | def _rpm_uninstall(package_name): FILE: prestoadmin/plugin.py function write (line 31) | def write(local_path, remote_dir): function add_jar (line 38) | def add_jar(local_path, plugin_name, plugin_dir=REMOTE_PLUGIN_DIR): FILE: prestoadmin/presto_conf.py function get_presto_conf (line 31) | def get_presto_conf(conf_dir): function validate_presto_conf (line 50) | def validate_presto_conf(conf): FILE: prestoadmin/prestoclient.py class PrestoClient (line 46) | class PrestoClient: method __init__ (line 47) | def __init__(self, server, user, coordinator_config=None): method _remove_silently (line 64) | def _remove_silently(path): method close (line 70) | def close(self): method _clear_old_results (line 73) | def _clear_old_results(self): method run_sql (line 83) | def run_sql(self, sql, schema="default", catalog="hive"): method _execute_query (line 102) | def _execute_query(self, sql, schema, catalog): method _get_response_from (line 149) | def _get_response_from(self, uri): method _build_results_from_response (line 180) | def _build_results_from_response(self): method _get_rows (line 200) | def _get_rows(self, num_of_rows=NUM_ROWS): method _get_next_uri (line 230) | def _get_next_uri(self): method _get_connection (line 233) | def _get_connection(self): method _get_configured_port (line 240) | def _get_configured_port(coordinator_config): method _get_https_connection (line 246) | def _get_https_connection(self): method _fetch_keystore_data (line 252) | def _fetch_keystore_data(self): method _pem_string (line 261) | def _pem_string(self, der_bytes, type): method _write_pem_file (line 268) | def _write_pem_file(self, directory, der_bytes_list, type): method _get_pem (line 279) | def _get_pem(self): method _get_private_key (line 304) | def _get_private_key(self, keystore): method _add_auth_headers (line 320) | def _add_auth_headers(self, headers): method _create_auth_headers (line 330) | def _create_auth_headers(user, password): FILE: prestoadmin/server.py function old_sysnode_processor (line 59) | def old_sysnode_processor(node_info_rows): function new_sysnode_processor (line 66) | def new_sysnode_processor(node_info_rows): class LocalPrestoRpmFinder (line 95) | class LocalPrestoRpmFinder: method __init__ (line 96) | def __init__(self, local_path): method _check_rpm_uncorrupted (line 100) | def _check_rpm_uncorrupted(rpm_path): method _check_if_absolute_path (line 121) | def _check_if_absolute_path(self): method _check_if_relative_path (line 128) | def _check_if_relative_path(self, directory_path): method find_local_presto_rpm (line 136) | def find_local_presto_rpm(self): class UrlHandler (line 148) | class UrlHandler: method __init__ (line 149) | def __init__(self, url): method __enter__ (line 158) | def __enter__(self): method __exit__ (line 161) | def __exit__(self, exc_type, exc_value, traceback): method get_url (line 164) | def get_url(self): method get_content_length (line 167) | def get_content_length(self): method get_download_file_name (line 176) | def get_download_file_name(self, version=None): method read_block (line 190) | def read_block(self, block_size): method close_url (line 193) | def close_url(self): class PrestoRpmDownloader (line 198) | class PrestoRpmDownloader: method __init__ (line 199) | def __init__(self, url_handler): method download_rpm (line 202) | def download_rpm(self, version=None): method get_download_file_path (line 221) | def get_download_file_path(self, version=None): method print_download_status (line 225) | def print_download_status(bytes_read, content_length): class PrestoRpmFetcher (line 233) | class PrestoRpmFetcher: method __init__ (line 234) | def __init__(self, rpm_specifier): method check_valid_version (line 237) | def check_valid_version(self): method _find_or_download_latest_presto_rpm (line 241) | def _find_or_download_latest_presto_rpm(): method use_rpm_specifier_as_latest (line 244) | def use_rpm_specifier_as_latest(self): method _find_or_download_rpm_by_version (line 249) | def _find_or_download_rpm_by_version(self, rpm_version): method use_rpm_specifier_as_version (line 256) | def use_rpm_specifier_as_version(self): method use_rpm_specifier_as_url (line 261) | def use_rpm_specifier_as_url(self): method use_rpm_specifier_as_local_path (line 266) | def use_rpm_specifier_as_local_path(self): method find_or_download_rpm_by_url (line 273) | def find_or_download_rpm_by_url(url, version=None): method get_path_to_presto_rpm (line 310) | def get_path_to_presto_rpm(self): function install (line 336) | def install(rpm_specifier): function deploy_install_configure (line 385) | def deploy_install_configure(local_path): function add_tpch_catalog (line 391) | def add_tpch_catalog(): function update_configs (line 396) | def update_configs(): function wait_for_presto_user (line 407) | def wait_for_presto_user(): function uninstall (line 416) | def uninstall(): function upgrade (line 440) | def upgrade(new_rpm_path, local_config_dir=None, overwrite=False): function service (line 479) | def service(control=None): function check_status_for_control_commands (line 489) | def check_status_for_control_commands(): function is_port_in_use (line 503) | def is_port_in_use(host): function start (line 523) | def start(): function stop (line 536) | def stop(): function stop_and_start (line 543) | def stop_and_start(): function restart (line 556) | def restart(): function check_presto_version (line 567) | def check_presto_version(): function presto_installed (line 582) | def presto_installed(): function get_presto_version (line 590) | def get_presto_version(): function check_server_status (line 601) | def check_server_status(): function query_server_for_status (line 624) | def query_server_for_status(client, node_id): function _is_in_rows (line 634) | def _is_in_rows(value, rows): function execute_catalog_info_sql (line 641) | def execute_catalog_info_sql(client): function execute_external_ip_sql (line 651) | def execute_external_ip_sql(client, uuid): function get_sysnode_info_from (line 663) | def get_sysnode_info_from(node_info_row, state_transform): function get_catalog_info_from (line 683) | def get_catalog_info_from(client): function is_server_up (line 701) | def is_server_up(status): function get_roles_for (line 708) | def get_roles_for(host): function print_node_info (line 716) | def print_node_info(node_status, catalog_status): function get_ext_ip_of_node (line 725) | def get_ext_ip_of_node(client): function print_status_header (line 747) | def print_status_header(external_ip, server_status, host): function collect_node_information (line 755) | def collect_node_information(): function get_status_from_coordinator (line 775) | def get_status_from_coordinator(): function status (line 825) | def status(): FILE: prestoadmin/standalone/config.py function validate_coordinator (line 55) | def validate_coordinator(coordinator): function validate_workers_for_prompt (line 60) | def validate_workers_for_prompt(workers): function validate_java8_home (line 86) | def validate_java8_home(java8_home): function validate (line 90) | def validate(conf): function validate_workers (line 133) | def validate_workers(workers): function _expand_host (line 146) | def _expand_host(host): function _format_hostname (line 162) | def _format_hostname(prefix, number, suffix): class StandaloneConfig (line 166) | class StandaloneConfig(BaseConfig): method __init__ (line 167) | def __init__(self): method read_conf (line 171) | def read_conf(self): method _get_conf_from_file (line 177) | def _get_conf_from_file(self): method is_config_loaded (line 181) | def is_config_loaded(self): method set_config_loaded (line 185) | def set_config_loaded(self): method set_env_from_conf (line 189) | def set_env_from_conf(self, conf): method _dedup_list (line 206) | def _dedup_list(host_list): FILE: prestoadmin/topology.py function show (line 31) | def show(): function get_conf_from_fabric (line 39) | def get_conf_from_fabric(): FILE: prestoadmin/util/all_write_handler.py class AllWriteTimedRotatingFileHandler (line 19) | class AllWriteTimedRotatingFileHandler(handlers.TimedRotatingFileHandler): method _open (line 20) | def _open(self): FILE: prestoadmin/util/application.py class Application (line 40) | class Application(object): method __init__ (line 55) | def __init__(self, name, version=None, log_file_path=None): method __enter__ (line 66) | def __enter__(self): method __configure_logging (line 70) | def __configure_logging(self): method __logging_configuration_file_paths (line 100) | def __logging_configuration_file_paths(self): method __main_module_path (line 110) | def __main_module_path(self): method __log_application_start (line 113) | def __log_application_start(self): method __exit__ (line 126) | def __exit__(self, exc_type, exception, trace): method _exit_cleanup_hook (line 142) | def _exit_cleanup_hook(self): method __handle_no_exception (line 145) | def __handle_no_exception(self): method __handle_system_exit (line 148) | def __handle_system_exit(self): method _handle_error (line 180) | def _handle_error(self): method __display_error_message (line 184) | def __display_error_message(self, message): method __get_root_log_file_path (line 192) | def __get_root_log_file_path(self): method _log_exception (line 198) | def _log_exception(self): function entry_point (line 216) | def entry_point(name, version=None, log_file_path=None, FILE: prestoadmin/util/base_config.py class SingleConfigItem (line 32) | class SingleConfigItem(object): method __init__ (line 33) | def __init__(self, key, prompt, default=None, validate=None): method prompt_user (line 39) | def prompt_user(self, conf): method collect_prompts (line 44) | def collect_prompts(self, l): class MultiConfigItem (line 48) | class MultiConfigItem(object): method __init__ (line 49) | def __init__(self, items, validate, validate_keys, method prompt_user (line 56) | def prompt_user(self, conf): method collect_prompts (line 66) | def collect_prompts(self, l): function requires_config (line 71) | def requires_config(config_class): class BaseConfig (line 86) | class BaseConfig(object): method __init__ (line 103) | def __init__(self, config_path, config_items): method __getitem__ (line 108) | def __getitem__(self, key): method __setitem__ (line 111) | def __setitem__(self, key, value): method __delitem__ (line 114) | def __delitem__(self, key): method read_conf (line 117) | def read_conf(self): method write_conf (line 120) | def write_conf(self, conf): method get_conf_interactive (line 124) | def get_conf_interactive(self): method get_config (line 130) | def get_config(self): method is_config_loaded (line 145) | def is_config_loaded(self): method set_config_loaded (line 149) | def set_config_loaded(self): method set_env_from_conf (line 153) | def set_env_from_conf(self, conf): FILE: prestoadmin/util/exception.py class ExceptionWithCause (line 27) | class ExceptionWithCause(Exception): method __init__ (line 29) | def __init__(self, message=''): method get_cause_if_supported (line 40) | def get_cause_if_supported(exception): class InvalidArgumentError (line 54) | class InvalidArgumentError(ExceptionWithCause): class ConfigurationError (line 58) | class ConfigurationError(ExceptionWithCause): class ConfigFileNotFoundError (line 62) | class ConfigFileNotFoundError(ConfigurationError): method __init__ (line 63) | def __init__(self, message='', config_path=''): function is_arguments_error (line 68) | def is_arguments_error(exception): FILE: prestoadmin/util/fabric_application.py class FabricApplication (line 34) | class FabricApplication(Application): method _exit_cleanup_hook (line 41) | def _exit_cleanup_hook(self): method _handle_error (line 49) | def _handle_error(self): FILE: prestoadmin/util/fabricapi.py function get_host_list (line 25) | def get_host_list(): function get_coordinator_role (line 29) | def get_coordinator_role(): function get_worker_role (line 33) | def get_worker_role(): function task_by_rolename (line 37) | def task_by_rolename(rolename): function by_rolename (line 46) | def by_rolename(host, rolename, f, *args, **kwargs): function by_role_coordinator (line 57) | def by_role_coordinator(host, f, *args, **kwargs): function by_role_worker (line 62) | def by_role_worker(host, f, *args, **kwargs): function put_secure (line 67) | def put_secure(user_group, mode, *args, **kwargs): FILE: prestoadmin/util/filesystem.py function ensure_parent_directories_exist (line 25) | def ensure_parent_directories_exist(path): function ensure_directory_exists (line 33) | def ensure_directory_exists(path): function write_to_file_if_not_exists (line 41) | def write_to_file_if_not_exists(content, path): FILE: prestoadmin/util/hiddenoptgroup.py class HiddenOptionGroup (line 26) | class HiddenOptionGroup(OptionGroup): method __init__ (line 32) | def __init__(self, parser, title, description=None, suppress_help=False): method format_help (line 36) | def format_help(self, formatter): FILE: prestoadmin/util/httpscacertconnection.py class HTTPSCaCertConnection (line 9) | class HTTPSCaCertConnection(httplib.HTTPSConnection): method __init__ (line 12) | def __init__(self, host, port, key_file, cert_file, ca_file, strict, t... method connect (line 19) | def connect(self): FILE: prestoadmin/util/local_config_util.py function get_config_directory (line 20) | def get_config_directory(): function get_log_directory (line 27) | def get_log_directory(): function get_topology_path (line 34) | def get_topology_path(): function get_coordinator_directory (line 38) | def get_coordinator_directory(): function get_workers_directory (line 42) | def get_workers_directory(): function get_catalog_directory (line 46) | def get_catalog_directory(): FILE: prestoadmin/util/parser.py class LoggingOptionParser (line 27) | class LoggingOptionParser(OptionParser): method exit (line 37) | def exit(self, status=0, msg=None): method print_extended_help (line 44) | def print_extended_help(self, filename=None): method format_epilog (line 61) | def format_epilog(self, formatter): FILE: prestoadmin/util/presto_config.py class PrestoConfig (line 42) | class PrestoConfig: method __init__ (line 55) | def __init__(self, config_properties, config_path, config_host): method from_file (line 64) | def from_file(config, config_path=None, config_host=None): method coordinator_config (line 69) | def coordinator_config(): method _lookup (line 88) | def _lookup(self, key): method use_https (line 97) | def use_https(self): method get_client_keystore_path (line 103) | def get_client_keystore_path(self): method get_client_keystore_password (line 106) | def get_client_keystore_password(self): method get_https_port (line 109) | def get_https_port(self): method get_http_port (line 112) | def get_http_port(self): method use_ldap (line 115) | def use_ldap(self): method get_ldap_user (line 123) | def get_ldap_user(self): method get_ldap_password (line 126) | def get_ldap_password(self): FILE: prestoadmin/util/remote_config_util.py function lookup_port (line 30) | def lookup_port(host): function lookup_server_log_file (line 58) | def lookup_server_log_file(host): function lookup_launcher_log_file (line 66) | def lookup_launcher_log_file(host): function lookup_catalog_directory (line 74) | def lookup_catalog_directory(host): function lookup_string_config (line 82) | def lookup_string_config(config_value, config_file, host, default=''): function lookup_in_config (line 90) | def lookup_in_config(config_key, config_file, host): FILE: prestoadmin/util/validators.py function validate_username (line 27) | def validate_username(username): function validate_port (line 33) | def validate_port(port): function validate_host (line 48) | def validate_host(host): function is_valid_hostname (line 70) | def is_valid_hostname(hostname): function validate_can_connect (line 76) | def validate_can_connect(user, host, port): function validate_can_sudo (line 81) | def validate_can_sudo(sudo_user, conn_user, host, port): FILE: prestoadmin/util/version_util.py function split_version (line 24) | def split_version(version_string): function get_int_or_t (line 30) | def get_int_or_t(x): function is_int_or_t (line 42) | def is_int_or_t(x): function strip_tag (line 50) | def strip_tag(version): class VersionRange (line 74) | class VersionRange(object): method __init__ (line 99) | def __init__(self, min_version, max_version, versioned_thing=None): method __str__ (line 111) | def __str__(self): method strip_td_suffix (line 118) | def strip_td_suffix(version): method pad_tuple (line 130) | def pad_tuple(tup, length, pad): method zero_pad (line 137) | def zero_pad(self, other): method __contains__ (line 149) | def __contains__(self, other): method is_continuous (line 156) | def is_continuous(self, next): class VersionRangeList (line 161) | class VersionRangeList(object): method __init__ (line 170) | def __init__(self, *range_list): method __str__ (line 177) | def __str__(self): method for_version (line 180) | def for_version(self, version): FILE: prestoadmin/workers.py class Worker (line 36) | class Worker(Node): method _get_conf_dir (line 65) | def _get_conf_dir(self): method default_config (line 68) | def default_config(self, filename): method is_localhost (line 80) | def is_localhost(hostname): method validate (line 84) | def validate(conf): FILE: prestoadmin/yarn_slider/config.py class SliderConfig (line 90) | class SliderConfig(BaseConfig): method __init__ (line 101) | def __init__(self): method is_config_loaded (line 105) | def is_config_loaded(self): method set_config_loaded (line 109) | def set_config_loaded(self): method set_env_from_conf (line 113) | def set_env_from_conf(self, conf): method store_conf (line 124) | def store_conf(self): FILE: prestoadmin/yarn_slider/server.py function get_slider_bin (line 38) | def get_slider_bin(conf): function run_slider (line 42) | def run_slider(slider_command, conf): function install (line 51) | def install(presto_yarn_package): function uninstall (line 98) | def uninstall(): FILE: prestoadmin/yarn_slider/slider.py function install (line 36) | def install(slider_tarball): function deploy_install (line 47) | def deploy_install(slider_tarball): function uninstall (line 66) | def uninstall(): FILE: release.py class ReleaseFetcher (line 34) | class ReleaseFetcher: method __init__ (line 35) | def __init__(self, directory, github_api_path): method get_latest_release (line 40) | def get_latest_release(self): method _get_remote_branches (line 44) | def _get_remote_branches(self): method _get_current_branch (line 48) | def _get_current_branch(self): method _get_last_remote_commit (line 51) | def _get_last_remote_commit(self, branch): method _get_last_local_commit (line 55) | def _get_last_local_commit(self): method _get_latest_tag (line 58) | def _get_latest_tag(self): method get_requested_release_tag (line 62) | def get_requested_release_tag(self): method _is_valid_release_doc_name (line 70) | def _is_valid_release_doc_name(release_doc_name): method _get_all_release_note_docs (line 73) | def _get_all_release_note_docs(self): method _find_nth (line 80) | def _find_nth(haystack, needle, n): method get_body_from_release_notes (line 87) | def get_body_from_release_notes(self, tag_name): method _get_and_check_branch (line 94) | def _get_and_check_branch(self): method get_and_check_target_commitish (line 99) | def get_and_check_target_commitish(self): method get_and_check_tag (line 107) | def get_and_check_tag(self): class ReleaseValidator (line 119) | class ReleaseValidator: method __init__ (line 120) | def __init__(self, directory): method check_repo (line 123) | def check_repo(self): method check_branch_remote_exists (line 130) | def check_branch_remote_exists(local_branch_name, remote_branches): method check_tag (line 138) | def check_tag(latest_tag, requested_release_tag): method check_commit (line 150) | def check_commit(last_local_commit, last_remote_commit): method _get_and_check_release_file (line 157) | def _get_and_check_release_file(file_path, string_contained=None, stri... method _confirm_version_changed (line 171) | def _confirm_version_changed(tag_name): method _confirm_release_docs_format (line 175) | def _confirm_release_docs_format(self, tag_name): method confirm_all_release_file_changes (line 196) | def confirm_all_release_file_changes(self, tag_name): class GithubReleaser (line 201) | class GithubReleaser: method __init__ (line 202) | def __init__(self, directory, github_api_path): method _prompt_username (line 217) | def _prompt_username(self): method _prompt_password (line 220) | def _prompt_password(self): method _get_authorization_string (line 223) | def _get_authorization_string(self): method _check_and_set_release_fields (line 228) | def _check_and_set_release_fields(self): method _escape_newlines (line 241) | def _escape_newlines(multiline_string): method _build_json_post_contents (line 244) | def _build_json_post_contents(self): method _send_github_create_release_post_request (line 251) | def _send_github_create_release_post_request(url, json_data, authoriza... method _send_bztar_post_request (line 256) | def _send_bztar_post_request(url, bztar_data, authorization_string, co... method _send_installer_post_request (line 259) | def _send_installer_post_request(self, release_url, installer_name, au... method _send_online_installer_post_request (line 270) | def _send_online_installer_post_request(self, release_url, online_inst... method _send_offline_installer_post_request (line 274) | def _send_offline_installer_post_request(self, release_url, offline_in... method _send_github_release_posts (line 278) | def _send_github_release_posts(self, json_data): method check_and_create_new_github_release (line 301) | def check_and_create_new_github_release(self): class PypiReleaser (line 309) | class PypiReleaser: method __init__ (line 310) | def __init__(self, directory, github_api_directory): method _confirm_pypi_release_state (line 316) | def _confirm_pypi_release_state(self): method _check_pypi_success (line 322) | def _check_pypi_success(output): method _run_pypi_command (line 328) | def _run_pypi_command(self, command): method _check_pypi_setup (line 340) | def _check_pypi_setup(self): method _submit_pypi_release (line 348) | def _submit_pypi_release(self): method create_new_pypi_release (line 356) | def create_new_pypi_release(self): class release (line 363) | class release(Command): method initialize_options (line 373) | def initialize_options(self): method finalize_options (line 378) | def finalize_options(self): method run (line 382) | def run(self): FILE: setup.py function get_custom_rc_file (line 81) | def get_custom_rc_file(self): FILE: tests/bare_image_provider.py class BareImageProvider (line 27) | class BareImageProvider(object): method __init__ (line 30) | def __init__(self, tag_decoration): method create_bare_images (line 35) | def create_bare_images(self, cluster, master_name, slave_name): method get_tag_decoration (line 40) | def get_tag_decoration(self): class TagBareImageProvider (line 61) | class TagBareImageProvider(BareImageProvider): method __init__ (line 62) | def __init__( method create_bare_images (line 70) | def create_bare_images(self, cluster, master_name, slave_name): FILE: tests/base_cluster.py class BaseCluster (line 28) | class BaseCluster(object): method tear_down (line 39) | def tear_down(self): method all_hosts (line 54) | def all_hosts(self): method all_internal_hosts (line 69) | def all_internal_hosts(self): method get_ip_address_dict (line 78) | def get_ip_address_dict(self): method stop_host (line 88) | def stop_host(self, host_name): method get_down_hostname (line 94) | def get_down_hostname(self, host_name): method postinstall (line 103) | def postinstall(self, installer): method exec_cmd_on_host (line 113) | def exec_cmd_on_host(self, host, cmd, user=None, raise_error=True, method run_script_on_host (line 118) | def run_script_on_host(self, script_contents, host, tty=True): method write_content_to_host (line 132) | def write_content_to_host(self, content, remote_path, host): method copy_to_host (line 136) | def copy_to_host(self, source_path, host, **kwargs): method master (line 140) | def master(self): method user (line 153) | def user(self): method rpm_cache_dir (line 166) | def rpm_cache_dir(self): method mount_dir (line 181) | def mount_dir(self): method ensure_correct_execution_environment (line 195) | def ensure_correct_execution_environment(self): FILE: tests/base_installer.py class BaseInstaller (line 22) | class BaseInstaller(object): method get_dependencies (line 27) | def get_dependencies(): method install (line 35) | def install(self): method get_keywords (line 45) | def get_keywords(self, *args, **kwargs): method assert_installed (line 56) | def assert_installed(testcase): FILE: tests/base_test_case.py class BaseTestCase (line 35) | class BaseTestCase(unittest.TestCase): method setUp (line 42) | def setUp(self, capture_output=False): method capture_stdout_stderr (line 49) | def capture_stdout_stderr(self): method redirect_log_to_tmp (line 53) | def redirect_log_to_tmp(self): method restore_log_and_delete_temp_dir (line 59) | def restore_log_and_delete_temp_dir(self): method restore_stdout_stderr (line 69) | def restore_stdout_stderr(self): method restore_stdout_stderr_keep_open (line 78) | def restore_stdout_stderr_keep_open(self): method assertIsNone (line 83) | def assertIsNone(self, foo, msg=None): method assertIn (line 87) | def assertIn(self, member, container, msg=None): method assertNotIn (line 91) | def assertNotIn(self, member, container, msg=None): method assertRaisesRegexp (line 95) | def assertRaisesRegexp(self, expected_exception, expected_regexp, method assertRaisesMessageIgnoringOrder (line 116) | def assertRaisesMessageIgnoringOrder(self, expected_exception, method assertLazyMessage (line 127) | def assertLazyMessage(self, msg_func, assert_function, *args, **kwargs): method _format_regexp_not_found (line 133) | def _format_regexp_not_found(self, msg, regexp, text): method assertRegexpMatches (line 140) | def assertRegexpMatches( method assertRegexpMatchesLineByLine (line 145) | def assertRegexpMatchesLineByLine(self, actual_lines, method remove_runs_once_flag (line 155) | def remove_runs_once_flag(self, callable_obj): method assertEqualIgnoringOrder (line 162) | def assertEqualIgnoringOrder(self, one, two): method tearDown (line 166) | def tearDown(self): FILE: tests/configurable_cluster.py class ConfigurableCluster (line 37) | class ConfigurableCluster(BaseCluster): method __init__ (line 57) | def __init__(self, config_filename): method check_for_cluster_config (line 83) | def check_for_cluster_config(): method all_hosts (line 90) | def all_hosts(self): method all_internal_hosts (line 93) | def all_internal_hosts(self, stopped_host=None): method get_dist_dir (line 97) | def get_dist_dir(self, unique): method tear_down (line 103) | def tear_down(self): method stop_host (line 124) | def stop_host(self, host_name): method get_down_hostname (line 150) | def get_down_hostname(self, host_name): method exec_cmd_on_host (line 153) | def exec_cmd_on_host(self, host, cmd, user=None, raise_error=True, method start_bare_cluster (line 182) | def start_bare_cluster(config_filename, testcase, assert_installed): method run_script_on_host (line 194) | def run_script_on_host(self, script_contents, host, tty=True): method write_content_to_host (line 201) | def write_content_to_host(self, content, remote_path, host): method copy_to_host (line 210) | def copy_to_host(self, source_path, host, dest_path=None): method get_ip_address_dict (line 242) | def get_ip_address_dict(self): method _get_ip_from_hosts_file (line 254) | def _get_ip_from_hosts_file(hosts_file, host): method _presto_is_installed (line 260) | def _presto_is_installed(self, testcase, assert_installed): method postinstall (line 268) | def postinstall(self, installer): method rpm_cache_dir (line 272) | def rpm_cache_dir(self): method mount_dir (line 276) | def mount_dir(self): method user (line 280) | def user(self): method master (line 284) | def master(self): FILE: tests/docker_cluster.py class NotStartedException (line 44) | class NotStartedException(Exception): method __init__ (line 45) | def __init__(self, hosts): class DockerCluster (line 50) | class DockerCluster(BaseCluster): method __init__ (line 60) | def __init__(self, master_host, slave_hosts, method all_hosts (line 84) | def all_hosts(self): method all_internal_hosts (line 87) | def all_internal_hosts(self): method get_local_mount_dir (line 90) | def get_local_mount_dir(self, host): method get_dist_dir (line 94) | def get_dist_dir(self, unique): method __get_unique_host (line 100) | def __get_unique_host(self, host): method __check_if_docker_exists (line 112) | def __check_if_docker_exists(): method start_containers (line 119) | def start_containers(self, master_image, slave_image=None, cmd=None, *... method tear_down (line 126) | def tear_down(self): method _tear_down_container (line 132) | def _tear_down_container(self, container_name): method stop_host (line 149) | def stop_host(self, container_name): method start_host (line 154) | def start_host(self, container_name): method get_down_hostname (line 158) | def get_down_hostname(self, host_name): method _remove_host_mount_dirs (line 161) | def _remove_host_mount_dirs(self): method _create_host_mount_dirs (line 171) | def _create_host_mount_dirs(self): method _create_network (line 181) | def _create_network(self): method _get_network (line 184) | def _get_network(self): method _remove_network (line 187) | def _remove_network(self): method _create_and_start_containers (line 190) | def _create_and_start_containers(self, master_image, slave_image=None,... method _create_container (line 206) | def _create_container(self, image, container_name, hostname, cmd, **kw... method _ensure_docker_containers_started (line 224) | def _ensure_docker_containers_started(self): method _are_all_hosts_started (line 240) | def _are_all_hosts_started(host_started_map): method _are_centos_container_services_up (line 246) | def _are_centos_container_services_up(self, host): method exec_cmd_on_host (line 282) | def exec_cmd_on_host(self, host, cmd, user=None, raise_error=True, method _get_tag_basename (line 296) | def _get_tag_basename(bare_image_provider, cluster_type, ms): method _get_master_image_name (line 301) | def _get_master_image_name(bare_image_provider, cluster_type): method _get_slave_image_name (line 307) | def _get_slave_image_name(bare_image_provider, cluster_type): method _get_image_names (line 313) | def _get_image_names(bare_image_provider, cluster_type): method start_cluster (line 319) | def start_cluster(bare_image_provider, cluster_type, master_host='mast... method _check_for_images (line 346) | def _check_for_images(master_image_name, slave_image_name, tag='latest'): method commit_images (line 360) | def commit_images(self, bare_image_provider, cluster_type): method run_script_on_host (line 367) | def run_script_on_host(self, script_contents, host, tty=True): method write_content_to_host (line 374) | def write_content_to_host(self, content, path, host): method copy_to_host (line 388) | def copy_to_host(self, source_path, dest_host, **kwargs): method get_ip_address_dict (line 391) | def get_ip_address_dict(self): method _post_presto_install (line 401) | def _post_presto_install(self): method postinstall (line 410) | def postinstall(self, installer): method rpm_cache_dir (line 423) | def rpm_cache_dir(self): method mount_dir (line 427) | def mount_dir(self): method user (line 431) | def user(self): method master (line 435) | def master(self): class DockerClusterException (line 439) | class DockerClusterException(Exception): method __init__ (line 440) | def __init__(self, msg): FILE: tests/integration/util/test_application.py class ApplicationTest (line 29) | class ApplicationTest(TestCase): method setUp (line 30) | def setUp(self): method tearDown (line 49) | def tearDown(self): method test_log_file_is_created (line 67) | def test_log_file_is_created(self): FILE: tests/no_hadoop_bare_image_provider.py class NoHadoopBareImageProvider (line 27) | class NoHadoopBareImageProvider(TagBareImageProvider): method __init__ (line 28) | def __init__(self, build_or_runtime="runtime"): FILE: tests/product/__init__.py function determine_jdk_directory (line 21) | def determine_jdk_directory(cluster): function relocate_jdk_directory (line 40) | def relocate_jdk_directory(cluster, destination): FILE: tests/product/base_product_case.py class BaseProductTestCase (line 45) | class BaseProductTestCase(BaseTestCase): method setUp (line 96) | def setUp(self): method tearDown (line 102) | def tearDown(self): method _apply_post_install_hooks (line 108) | def _apply_post_install_hooks(self, installers): method _update_replacement_keywords (line 112) | def _update_replacement_keywords(self, installers): method setup_cluster (line 117) | def setup_cluster(self, bare_image_provider, cluster_type): method run_installers (line 150) | def run_installers(cluster, installers, testcase): method dump_and_cp_topology (line 163) | def dump_and_cp_topology(self, topology, cluster=None): method upload_topology (line 172) | def upload_topology(self, topology=None, cluster=None): method write_test_configs (line 181) | def write_test_configs(self, cluster, extra_configs=None, method fetch_log_tail (line 207) | def fetch_log_tail(self, lines=50): method run_prestoadmin (line 213) | def run_prestoadmin(self, command, raise_error=True, cluster=None, method run_script_from_prestoadmin_dir (line 225) | def run_script_from_prestoadmin_dir(self, script_contents, host='', method run_prestoadmin_expect (line 241) | def run_prestoadmin_expect(self, command, expect_statements): method assert_path_exists (line 254) | def assert_path_exists(self, host, file_path): method get_file_content (line 258) | def get_file_content(self, host, filepath): method assert_config_perms (line 261) | def assert_config_perms(self, host, filepath): method assert_directory_perm_owner (line 265) | def assert_directory_perm_owner(self, host, filepath, permissions, own... method assert_file_perm_owner (line 270) | def assert_file_perm_owner(self, host, filepath, permissions, owner, g... method assert_perm_owner (line 274) | def assert_perm_owner(self, permissions, owner, group, actual): method assert_file_content (line 280) | def assert_file_content(self, host, filepath, expected): method file_content_message (line 299) | def file_content_message(self, actual, expected, pa_file): method assert_file_content_regex (line 320) | def assert_file_content_regex(self, host, filepath, expected): method assert_has_default_catalog (line 324) | def assert_has_default_catalog(self, host): method assert_has_jmx_catalog (line 332) | def assert_has_jmx_catalog(self, container): method assert_path_removed (line 337) | def assert_path_removed(self, container, directory): method assert_has_default_config (line 341) | def assert_has_default_config(self, host): method assert_node_config (line 361) | def assert_node_config(self, host, expected, expected_node_id=None): method expected_stop (line 382) | def expected_stop(self, running=None, not_running=None): method assert_stopped (line 402) | def assert_stopped(self, process_per_host): method get_process_per_host (line 414) | def get_process_per_host(output_lines): method assert_started (line 431) | def assert_started(self, process_per_host): method replace_keywords (line 436) | def replace_keywords(self, text, cluster=None, **kwargs): method escape_for_regex (line 454) | def escape_for_regex(expected): method retry (line 463) | def retry(method_to_check, retry_timeout=RETRY_TIMEOUT, method down_node_connection_error (line 468) | def down_node_connection_error(self, host): method status_node_connection_error (line 472) | def status_node_connection_error(self, host): method create_presto_client (line 476) | def create_presto_client(self, host=None): function docker_only (line 486) | def docker_only(original_function): class PrestoError (line 495) | class PrestoError(Exception): FILE: tests/product/base_test_installer.py class BaseTestInstaller (line 31) | class BaseTestInstaller(BaseProductTestCase): method setUp (line 32) | def setUp(self, build_or_runtime): method tearDown (line 39) | def tearDown(self): method __create_and_start_single_centos_container (line 43) | def __create_and_start_single_centos_container(self, build_or_runtime): method _verify_third_party_dir (line 55) | def _verify_third_party_dir(self, is_third_party_present): FILE: tests/product/config_dir_utils.py function get_config_directory (line 7) | def get_config_directory(): function get_config_file_path (line 11) | def get_config_file_path(): function get_coordinator_directory (line 15) | def get_coordinator_directory(): function get_workers_directory (line 19) | def get_workers_directory(): function get_catalog_directory (line 23) | def get_catalog_directory(): function get_log_directory (line 27) | def get_log_directory(): function get_mode_config_path (line 31) | def get_mode_config_path(): function get_install_directory (line 35) | def get_install_directory(): function get_presto_admin_path (line 39) | def get_presto_admin_path(): FILE: tests/product/image_builder.py class ImageBuilder (line 10) | class ImageBuilder: method __init__ (line 11) | def __init__(self, testcase): method _setup_image (line 16) | def _setup_image(self, bare_image_provider, cluster_type): method _setup_image_with_no_hadoop_provider (line 36) | def _setup_image_with_no_hadoop_provider(self, cluster_type): method setup_standalone_presto_images (line 40) | def setup_standalone_presto_images(self): method setup_standalone_presto_admin_images (line 44) | def setup_standalone_presto_admin_images(self): method setup_standalone_bare_images (line 48) | def setup_standalone_bare_images(self): FILE: tests/product/mode_installers.py class BaseModeInstaller (line 29) | class BaseModeInstaller(BaseInstaller): method __init__ (line 30) | def __init__(self, testcase, mode): method _get_mode_cfg (line 37) | def _get_mode_cfg(mode): method get_dependencies (line 42) | def get_dependencies(): method install (line 46) | def install(self): method get_keywords (line 51) | def get_keywords(self, *args, **kwargs): method _assert_installed (line 55) | def _assert_installed(testcase, expected_mode): class StandaloneModeInstaller (line 65) | class StandaloneModeInstaller(BaseModeInstaller): method __init__ (line 66) | def __init__(self, testcase): method assert_installed (line 71) | def assert_installed(testcase): FILE: tests/product/prestoadmin_installer.py class PrestoadminInstaller (line 33) | class PrestoadminInstaller(BaseInstaller): method __init__ (line 34) | def __init__(self, testcase): method get_dependencies (line 38) | def get_dependencies(): method install (line 41) | def install(self, cluster=None, dist_dir=None): method assert_installed (line 61) | def assert_installed(testcase, msg=None): method get_keywords (line 65) | def get_keywords(self): method _build_dist_if_necessary (line 68) | def _build_dist_if_necessary(self, cluster, unique=False): method _build_installer_in_docker (line 76) | def _build_installer_in_docker(self, cluster, online_installer=None, method _copy_dist_to_host (line 150) | def _copy_dist_to_host(cluster, local_dist_dir, dest_host): FILE: tests/product/standalone/presto_installer.py class StandalonePrestoInstaller (line 35) | class StandalonePrestoInstaller(BaseInstaller): method __init__ (line 36) | def __init__(self, testcase, rpm_location=None): method get_dependencies (line 45) | def get_dependencies(): method install (line 49) | def install(self, extra_configs=None, coordinator=None, method get_keywords (line 62) | def get_keywords(self): method assert_installed (line 69) | def assert_installed(testcase, container=None, msg=None, cluster=None): method copy_presto_rpm_to_master (line 93) | def copy_presto_rpm_to_master(self, cluster=None): method _detect_presto_rpm (line 105) | def _detect_presto_rpm(): method _check_if_corrupted_rpm (line 122) | def _check_if_corrupted_rpm(rpm_name, cluster): method assert_uninstalled (line 128) | def assert_uninstalled(self, container, msg=None): method _check_rpm_already_uploaded (line 139) | def _check_rpm_already_uploaded(rpm_name, cluster): FILE: tests/product/standalone/test_installation.py class TestInstallation (line 30) | class TestInstallation(BaseProductTestCase): method setUp (line 32) | def setUp(self): method test_install_non_root (line 41) | def test_install_non_root(self): method test_cert_arg_to_installation_nonexistent_file (line 66) | def test_cert_arg_to_installation_nonexistent_file(self): method test_cert_arg_to_installation_real_cert (line 83) | def test_cert_arg_to_installation_real_cert(self): method test_additional_dirs_created (line 102) | def test_additional_dirs_created(self): FILE: tests/product/test_authentication.py class TestAuthentication (line 32) | class TestAuthentication(BaseProductTestCase): method setUp (line 33) | def setUp(self): method parallel_password_failure_message (line 63) | def parallel_password_failure_message(self, with_sudo_prompt=True): method non_root_sudo_warning_message (line 84) | def non_root_sudo_warning_message(self): method test_passwordless_ssh_authentication (line 92) | def test_passwordless_ssh_authentication(self): method test_no_passwordless_ssh_authentication (line 152) | def test_no_passwordless_ssh_authentication(self): method test_prestoadmin_no_sudo_popen (line 214) | def test_prestoadmin_no_sudo_popen(self): method setup_for_catalog_add (line 230) | def setup_for_catalog_add(self): method _remove_python_string (line 236) | def _remove_python_string(self, text): FILE: tests/product/test_catalog.py class TestCatalog (line 31) | class TestCatalog(BaseProductTestCase): method setUp (line 32) | def setUp(self): method setup_cluster_assert_catalogs (line 35) | def setup_cluster_assert_catalogs(self): method test_catalog_add_remove (line 44) | def test_catalog_add_remove(self): method test_catalog_add_remove_coord_worker_using_dash_h (line 71) | def test_catalog_add_remove_coord_worker_using_dash_h(self): method test_catalog_add_remove_coord_worker_using_dash_x (line 97) | def test_catalog_add_remove_coord_worker_using_dash_x(self): method test_catalog_add_by_name (line 121) | def test_catalog_add_by_name(self): method test_catalog_add_empty_dir (line 137) | def test_catalog_add_empty_dir(self): method fatal_error (line 159) | def fatal_error(self, error): method test_catalog_add_lost_host (line 170) | def test_catalog_add_lost_host(self): method test_catalog_remove (line 205) | def test_catalog_remove(self): method test_catalog_add_no_presto_user (line 269) | def test_catalog_add_no_presto_user(self): method get_catalog_info (line 280) | def get_catalog_info(self): method _assert_catalogs_loaded (line 289) | def _assert_catalogs_loaded(self, expected_catalogs): method test_catalog_add_remove_non_sudo_user (line 292) | def test_catalog_add_remove_non_sudo_user(self): FILE: tests/product/test_collect.py class TestCollect (line 34) | class TestCollect(BaseProductTestCase): method setUp (line 35) | def setUp(self): method test_collect_logs_basic (line 39) | def test_collect_logs_basic(self): method log_msg (line 61) | def log_msg(self, actual, expected): method _test_basic_system_info (line 66) | def _test_basic_system_info(self, actual, coordinator=None, hosts=None): method test_collect_system_info_dash_h_coord_worker (line 105) | def test_collect_system_info_dash_h_coord_worker(self): method test_collect_system_info_dash_x_two_workers (line 113) | def test_collect_system_info_dash_x_two_workers(self): method test_system_info_pa_separate_node (line 122) | def test_system_info_pa_separate_node(self): method test_query_info_pa_separate_node (line 137) | def test_query_info_pa_separate_node(self): method get_query_id (line 157) | def get_query_id(self, sql, host=None): method test_query_info_invalid_id (line 166) | def test_query_info_invalid_id(self): method test_collect_logs_server_stopped (line 177) | def test_collect_logs_server_stopped(self): method test_collect_system_info_server_stopped (line 181) | def test_collect_system_info_server_stopped(self): method _add_custom_log_location (line 190) | def _add_custom_log_location(self, new_log_location): method _collect_logs_and_unzip (line 203) | def _collect_logs_and_unzip(self): method test_collect_logs_nonstandard_location (line 209) | def test_collect_logs_nonstandard_location(self): method _assert_no_logs_downloaded (line 230) | def _assert_no_logs_downloaded(self): method test_collect_logs_server_not_installed (line 239) | def test_collect_logs_server_not_installed(self): method test_collect_logs_multiple_server_logs (line 244) | def test_collect_logs_multiple_server_logs(self): method test_collect_non_root_user (line 264) | def test_collect_non_root_user(self): FILE: tests/product/test_configuration.py class TestConfiguration (line 32) | class TestConfiguration(BaseProductTestCase): method setUp (line 33) | def setUp(self): method deploy_and_assert_default_config (line 38) | def deploy_and_assert_default_config(self): method __write_dummy_config_file (line 59) | def __write_dummy_config_file(self): method _get_node_id (line 67) | def _get_node_id(self, host): method test_configuration_deploy_show (line 72) | def test_configuration_deploy_show(self): method test_configuration_deploy_using_dash_h_coord_worker (line 128) | def test_configuration_deploy_using_dash_h_coord_worker(self): method test_configuration_deploy_using_dash_x_coord_worker (line 167) | def test_configuration_deploy_using_dash_x_coord_worker(self): method test_lost_coordinator_connection (line 197) | def test_lost_coordinator_connection(self): method test_configuration_show (line 230) | def test_configuration_show(self): method test_configuration_show_coord_worker_using_dash_h (line 301) | def test_configuration_show_coord_worker_using_dash_h(self): method test_configuration_show_coord_worker_using_dash_x (line 315) | def test_configuration_show_coord_worker_using_dash_x(self): method test_configuration_no_presto_user (line 329) | def test_configuration_no_presto_user(self): method test_configuration_show_non_root_user (line 338) | def test_configuration_show_non_root_user(self): FILE: tests/product/test_control.py class TestControl (line 28) | class TestControl(BaseProductTestCase): method setUp (line 29) | def setUp(self): method test_server_start_stop_simple (line 33) | def test_server_start_stop_simple(self): method test_server_restart_simple (line 39) | def test_server_restart_simple(self): method test_server_start_without_presto (line 44) | def test_server_start_without_presto(self): method test_server_stop_without_presto (line 47) | def test_server_stop_without_presto(self): method test_server_restart_without_presto (line 50) | def test_server_restart_without_presto(self): method assert_service_fails_without_presto (line 53) | def assert_service_fails_without_presto(self, service): method test_server_start_one_host_started (line 63) | def test_server_start_one_host_started(self): method test_server_stop_one_host_started (line 68) | def test_server_stop_one_host_started(self): method test_server_restart_nothing_started (line 72) | def test_server_restart_nothing_started(self): method test_start_coordinator_down (line 81) | def test_start_coordinator_down(self): method test_start_worker_down (line 92) | def test_start_worker_down(self): method assert_start_coordinator_down (line 98) | def assert_start_coordinator_down(self, coordinator, coordinator_inter... method assert_start_worker_down (line 119) | def assert_start_worker_down(self, down_node, down_internal_node): method expected_down_node_output_size (line 140) | def expected_down_node_output_size(self, expected_output): method assert_simple_start_stop (line 144) | def assert_simple_start_stop(self, expected_start, expected_stop, method assert_simple_server_restart (line 156) | def assert_simple_server_restart(self, expected_output, running_host='... method assert_start_with_one_host_started (line 180) | def assert_start_with_one_host_started(self, host): method assert_one_host_stopped (line 198) | def assert_one_host_stopped(self, host): method expected_port_error (line 213) | def expected_port_error(self, hosts=None): method expected_no_status_message (line 221) | def expected_no_status_message(self, host=None): method expected_start (line 227) | def expected_start(self, start_success=None, already_started=None, method presto_not_installed_message (line 263) | def presto_not_installed_message(self): FILE: tests/product/test_error_handling.py class TestErrorHandling (line 23) | class TestErrorHandling(BaseProductTestCase): method setUp (line 25) | def setUp(self): method test_wrong_arguments_parallel (line 30) | def test_wrong_arguments_parallel(self): method test_wrong_arguments_serial (line 41) | def test_wrong_arguments_serial(self): FILE: tests/product/test_file.py class TestFile (line 28) | class TestFile(BaseProductTestCase): method setUp (line 29) | def setUp(self): method test_run_script (line 35) | def test_run_script(self): FILE: tests/product/test_offline_installer.py class TestOfflineInstaller (line 25) | class TestOfflineInstaller(BaseTestInstaller): method setUp (line 26) | def setUp(self): method test_offline_installer (line 31) | def test_offline_installer(self): FILE: tests/product/test_online_installer.py class TestOnlineInstaller (line 24) | class TestOnlineInstaller(BaseTestInstaller): method setUp (line 25) | def setUp(self): method test_online_installer (line 31) | def test_online_installer(self): FILE: tests/product/test_package_install.py class TestPackageInstall (line 26) | class TestPackageInstall(BaseProductTestCase): method setUp (line 27) | def setUp(self): method tearDown (line 33) | def tearDown(self): method _assert_uninstall (line 37) | def _assert_uninstall(self): method test_package_installer (line 43) | def test_package_installer(self): method test_install_using_dash_h (line 57) | def test_install_using_dash_h(self): method test_install_exclude_nodes (line 80) | def test_install_exclude_nodes(self): method test_install_rpm_missing_dependency (line 99) | def test_install_rpm_missing_dependency(self): method test_install_rpm_with_nodeps (line 135) | def test_install_rpm_with_nodeps(self): FILE: tests/product/test_plugin.py class TestPlugin (line 29) | class TestPlugin(BaseProductTestCase): method setUp (line 30) | def setUp(self): method deploy_jar_to_master (line 34) | def deploy_jar_to_master(self): method test_basic_add_jars (line 38) | def test_basic_add_jars(self): method test_lost_coordinator (line 59) | def test_lost_coordinator(self): method test_lost_worker (line 80) | def test_lost_worker(self): FILE: tests/product/test_server_install.py class TestServerInstall (line 121) | class TestServerInstall(BaseProductTestCase): method setUp (line 150) | def setUp(self): method assert_common_configs (line 154) | def assert_common_configs(self, host): method assert_installed_with_configs (line 162) | def assert_installed_with_configs(self, master, slaves): method assert_installed_with_regex_configs (line 173) | def assert_installed_with_regex_configs(self, master, slaves): method test_install_with_java8_home (line 185) | def test_install_with_java8_home(self): method test_install_ext_host_is_pa_master (line 205) | def test_install_ext_host_is_pa_master(self): method test_install_when_catalog_json_exists (line 222) | def test_install_when_catalog_json_exists(self): method test_install_when_topology_has_ips (line 260) | def test_install_when_topology_has_ips(self): method test_install_interactive (line 308) | def test_install_interactive(self): method test_connection_to_coord_lost (line 372) | def test_connection_to_coord_lost(self): method test_install_twice (line 401) | def test_install_twice(self): method test_install_non_root_user (line 432) | def test_install_non_root_user(self): method format_err_msgs_with_internal_hosts (line 452) | def format_err_msgs_with_internal_hosts(self, msgs): FILE: tests/product/test_server_uninstall.py class TestServerUninstall (line 31) | class TestServerUninstall(BaseProductTestCase): method setUp (line 32) | def setUp(self): method test_uninstall (line 37) | def test_uninstall(self): method assert_uninstalled_dirs_removed (line 52) | def assert_uninstalled_dirs_removed(self, container): method test_uninstall_twice (line 60) | def test_uninstall_twice(self): method test_uninstall_lost_host (line 70) | def test_uninstall_lost_host(self): FILE: tests/product/test_server_upgrade.py class TestServerUpgrade (line 28) | class TestServerUpgrade(BaseProductTestCase): method setUp (line 30) | def setUp(self): method start_and_assert_started (line 38) | def start_and_assert_started(self): method assert_upgraded_to_dummy_rpm (line 52) | def assert_upgraded_to_dummy_rpm(self, hosts): method test_upgrade (line 76) | def test_upgrade(self): method upgrade_and_assert_success (line 88) | def upgrade_and_assert_success(self, path_on_cluster, extra_arguments=... method copy_upgrade_rpm_to_cluster (line 92) | def copy_upgrade_rpm_to_cluster(self): method test_upgrade_fails_given_directory (line 96) | def test_upgrade_fails_given_directory(self): method test_upgrade_works_with_symlink (line 105) | def test_upgrade_works_with_symlink(self): method test_configuration_preserved_on_upgrade (line 118) | def test_configuration_preserved_on_upgrade(self): method test_upgrade_non_root_user (line 161) | def test_upgrade_non_root_user(self): method add_dummy_properties_to_host (line 176) | def add_dummy_properties_to_host(self, host): method assert_dummy_properties (line 188) | def assert_dummy_properties(self, host): FILE: tests/product/test_status.py class TestStatus (line 28) | class TestStatus(BaseProductTestCase): method setUp (line 30) | def setUp(self): method test_status_uninstalled (line 34) | def test_status_uninstalled(self): method test_status_not_started (line 40) | def test_status_not_started(self): method test_status_happy_path (line 46) | def test_status_happy_path(self): method test_status_only_coordinator (line 52) | def test_status_only_coordinator(self): method test_status_only_worker (line 64) | def test_status_only_worker(self): method test_connection_to_coordinator_lost (line 80) | def test_connection_to_coordinator_lost(self): method test_connection_to_worker_lost (line 97) | def test_connection_to_worker_lost(self): method test_status_non_root_user (line 114) | def test_status_non_root_user(self): method base_status (line 125) | def base_status(self, topology=None): method not_started_status (line 144) | def not_started_status(self): method not_installed_status (line 153) | def not_installed_status(self): method single_node_up_status (line 161) | def single_node_up_status(self, node): method node_not_available_status (line 168) | def node_not_available_status(self, topology, node, method status_fail_msg (line 185) | def status_fail_msg(self, actual_output, expected_regexp): method check_status (line 193) | def check_status(self, cmd_output, statuses, port=7070): method _server_status_with_retries (line 221) | def _server_status_with_retries(self, check_catalogs=False, extra_argu... method _get_status_until_coordinator_updated (line 231) | def _get_status_until_coordinator_updated(self, check_catalogs=False, ... FILE: tests/product/test_topology.py class TestTopologyShow (line 49) | class TestTopologyShow(BaseProductTestCase): method setUp (line 51) | def setUp(self): method test_topology_show (line 56) | def test_topology_show(self): method test_topology_show_empty_config (line 62) | def test_topology_show_empty_config(self): method test_topology_show_bad_json (line 67) | def test_topology_show_bad_json(self): FILE: tests/product/timing_test_decorator.py function log_function_time (line 17) | def log_function_time(): FILE: tests/product/topology_installer.py class TopologyInstaller (line 24) | class TopologyInstaller(BaseInstaller): method __init__ (line 25) | def __init__(self, testcase): method get_dependencies (line 29) | def get_dependencies(): method install (line 32) | def install(self): method assert_installed (line 36) | def assert_installed(testcase, msg=None): method get_keywords (line 41) | def get_keywords(self): FILE: tests/rpm/test_rpm.py class TestRpm (line 27) | class TestRpm(BaseProductTestCase): method setUp (line 28) | def setUp(self): method test_install_fails_java8_not_found (line 33) | def test_install_fails_java8_not_found(self): method test_server_starts_java8_in_bin_java (line 51) | def test_server_starts_java8_in_bin_java(self): method test_server_starts_no_java8_variable (line 72) | def test_server_starts_no_java8_variable(self): method test_started_with_presto_user (line 79) | def test_started_with_presto_user(self): FILE: tests/unit/__init__.py class SudoResult (line 1) | class SudoResult(object): method __init__ (line 2) | def __init__(self): FILE: tests/unit/base_unit_case.py class BaseUnitCase (line 33) | class BaseUnitCase(BaseTestCase): method setUp (line 41) | def setUp(self, capture_output=False, load_config=True): FILE: tests/unit/standalone/test_help.py class TestStandaloneHelp (line 26) | class TestStandaloneHelp(BaseMainCase): method setUp (line 28) | def setUp(self, mode_mock): method get_short_help_path (line 33) | def get_short_help_path(self): method get_extended_help_path (line 36) | def get_extended_help_path(self): method test_standalone_help_text_short (line 39) | def test_standalone_help_text_short(self): method test_standalone_help_text_long (line 43) | def test_standalone_help_text_long(self): method test_standalone_help_displayed_with_no_args (line 47) | def test_standalone_help_displayed_with_no_args(self): method test_standalone_extended_help (line 51) | def test_standalone_extended_help(self): FILE: tests/unit/test_base_test_case.py class TestBaseTestCase (line 22) | class TestBaseTestCase(BaseUnitCase): method testLazyPass (line 23) | def testLazyPass(self): method testLazyFail (line 27) | def testLazyFail(self): FILE: tests/unit/test_bdist_prestoadmin.py class TestBDistPrestoAdmin (line 34) | class TestBDistPrestoAdmin(BaseTestCase): method setUp (line 35) | def setUp(self): method test_initialize (line 52) | def test_initialize(self): method test_finalize (line 64) | def test_finalize(self): method test_finalize_argvs (line 72) | def test_finalize_argvs(self): method test_build_wheel (line 93) | def test_build_wheel(self, run_command_mock): method test_package_dependencies_for_offline_installer (line 98) | def test_package_dependencies_for_offline_installer(self, pip_mock): method test_package_dependencies_for_online_installer (line 119) | def test_package_dependencies_for_online_installer( method test_generate_online_install_script (line 128) | def test_generate_online_install_script(self): method test_generate_offline_install_script (line 135) | def test_generate_offline_install_script(self): method test_archive_dist_offline (line 143) | def test_archive_dist_offline(self): method test_archive_dist_online (line 155) | def test_archive_dist_online(self): method test_run (line 177) | def test_run(self, method test_description (line 201) | def test_description(self): method test_user_options (line 205) | def test_user_options(self): FILE: tests/unit/test_catalog.py class TestCatalog (line 33) | class TestCatalog(BaseUnitCase): method setUp (line 34) | def setUp(self): method test_add_not_exist (line 38) | def test_add_not_exist(self, isfile_mock): method test_add_exists (line 47) | def test_add_exists(self, isfile_mock, deploy_mock, validate_mock): method test_add_all (line 61) | def test_add_all(self, mock_validate, listdir_mock, isdir_mock, method test_add_all_fails_if_dir_not_there (line 73) | def test_add_all_fails_if_dir_not_there(self, isdir_mock, deploy_mock): method test_remove (line 84) | def test_remove(self, local_rm_mock, exists_mock, sudo_mock): method test_remove_failure (line 98) | def test_remove_failure(self, exists_mock, sudo_mock): method test_remove_no_such_file (line 111) | def test_remove_no_such_file(self, exists_mock, sudo_mock): method test_warning_if_connector_dir_empty (line 126) | def test_warning_if_connector_dir_empty(self, isdir_mock, listdir_mock): method test_add_permission_denied (line 136) | def test_add_permission_denied(self, isdir_mock, listdir_mock): method test_remove_os_error (line 146) | def test_remove_os_error(self, remove_file_mock, remove_mock): method test_deploy_files (line 155) | def test_deploy_files(self, put_mock, create_dir_mock): method test_validate (line 168) | def test_validate(self, open_mock, is_file_mock): method test_validate_fail (line 179) | def test_validate_fail(self, is_file_mock): method test_gather_connectors (line 192) | def test_gather_connectors(self, path_exists, ensure_dir_exists, FILE: tests/unit/test_collect.py class TestCollect (line 37) | class TestCollect(BaseUnitCase): method test_collect_logs (line 44) | def test_collect_logs(self, mkdirs_mock, copy_mock, method test_get_files (line 63) | def test_get_files(self, get_mock, makedirs_mock): method test_get_files_warning (line 77) | def test_get_files_warning(self, get_mock, warn_mock, makedirs_mock): method test_query_info_not_run_on_workers (line 89) | def test_query_info_not_run_on_workers(self, req_get_mock): method test_query_info_fail_invalid_id (line 97) | def test_query_info_fail_invalid_id(self, req_get_mock, requests_url): method test_collect_query_info (line 115) | def test_collect_query_info(self, requests_url_mock, requests_get_mock, method test_collect_system_info (line 148) | def test_collect_system_info(self, requests_url_mock, requests_get_mock, method test_get_system_info (line 195) | def test_get_system_info(self, run_collect_mock, FILE: tests/unit/test_config.py class TestConfiguration (line 28) | class TestConfiguration(BaseTestCase): method test_file_does_not_exist_json (line 29) | def test_file_does_not_exist_json(self): method test_file_is_empty_json (line 35) | def test_file_is_empty_json(self): method test_file_is_empty_properties (line 40) | def test_file_is_empty_properties(self): method test_file_is_empty_config (line 46) | def test_file_is_empty_config(self): method test_invalid_json (line 51) | def test_invalid_json(self): method test_get_config (line 58) | def test_get_config(self): method test_get_properties (line 63) | def test_get_properties(self): method test_get_properties_ignores_whitespace (line 71) | def test_get_properties_ignores_whitespace(self, open_mock): method test_get_properties_invalid (line 77) | def test_get_properties_invalid(self): method test_fill_defaults_no_missing (line 86) | def test_fill_defaults_no_missing(self): method test_fill_defaults (line 93) | def test_fill_defaults(self): FILE: tests/unit/test_configure_cmds.py class TestConfigureCmds (line 23) | class TestConfigureCmds(BaseUnitCase): method test_config_show (line 26) | def test_config_show(self, mock_file_exists, mock_get): method test_config_show_all (line 47) | def test_config_show_all(self, mock_show): method test_config_show_fail (line 57) | def test_config_show_fail(self, mock_file_exists, mock_warn, mock_abort): method test_config_show_fail_no_warn (line 71) | def test_config_show_fail_no_warn(self, mock_file_exists, mock_warn): method test_config_deploy (line 80) | def test_config_deploy(self, mock_coordinator, mock_workers, mock_abort): method test_config_deploy_coord (line 92) | def test_config_deploy_coord(self, mock_coordinator, mock_workers): method test_config_deploy_workers (line 100) | def test_config_deploy_workers(self, mock_coordinator, mock_workers): FILE: tests/unit/test_coordinator.py class TestCoordinator (line 26) | class TestCoordinator(BaseTestCase): method test_build_all_defaults (line 28) | def test_build_all_defaults(self): method test_defaults_coord_is_worker (line 62) | def test_defaults_coord_is_worker(self): method test_validate_valid (line 96) | def test_validate_valid(self): method test_validate_default (line 103) | def test_validate_default(self): method test_invalid_conf (line 109) | def test_invalid_conf(self): method test_invalid_conf_missing_coordinator (line 115) | def test_invalid_conf_missing_coordinator(self): method test_invalid_conf_coordinator (line 126) | def test_invalid_conf_coordinator(self): method test_get_conf_empty_is_default (line 140) | def test_get_conf_empty_is_default(self, get_conf_from_file_mock, method test_get_conf (line 150) | def test_get_conf(self, get_conf_from_file_mock, write_mock): FILE: tests/unit/test_deploy.py class TestDeploy (line 26) | class TestDeploy(BaseTestCase): method test_output_format_dict (line 27) | def test_output_format_dict(self): method test_output_format_list (line 32) | def test_output_format_list(self): method test_output_format_string (line 36) | def test_output_format_string(self): method test_output_format_int (line 40) | def test_output_format_int(self): method test_worker_is_coordinator (line 47) | def test_worker_is_coordinator(self, env_mock, coord_mock, configure_m... method test_worker_not_coordinator (line 55) | def test_worker_not_coordinator(self, configure_mock, get_conf_mock): method test_coordinator (line 64) | def test_coordinator(self, coord_mock, configure_mock): method test_deploy (line 71) | def test_deploy(self, sudo_mock): method test_deploy_node_properties (line 82) | def test_deploy_node_properties(self, sudo_mock, append_mock, exists_m... method test_deploys_as_presto_user (line 101) | def test_deploys_as_presto_user(self, secure_create_file_mock, sudo_mo... method test_configure_presto (line 108) | def test_configure_presto(self, deploy_node_mock, deploy_mock): method test_escape_quotes_do_nothing (line 115) | def test_escape_quotes_do_nothing(self): method test_escape_quotes_has_quote (line 119) | def test_escape_quotes_has_quote(self): FILE: tests/unit/test_expand.py class TestExpandHost (line 19) | class TestExpandHost(BaseUnitCase): method test_basic_expand_host_01 (line 21) | def test_basic_expand_host_01(self): method test_basic_expand_host_02 (line 26) | def test_basic_expand_host_02(self): method test_expand_host_include_hyphen (line 31) | def test_expand_host_include_hyphen(self): method test_not_expand_host (line 36) | def test_not_expand_host(self): method test_except_expand_host (line 41) | def test_except_expand_host(self): FILE: tests/unit/test_fabric_patches.py class FabricPatchesTest (line 40) | class FabricPatchesTest(BaseTestCase): method setUp (line 42) | def setUp(self): method tearDown (line 52) | def tearDown(self): method test_warn_api_prints_out_message (line 61) | def test_warn_api_prints_out_message(self, logger_mock, log_conf_mock, method test_warn_utils_prints_out_message (line 77) | def test_warn_utils_prints_out_message(self, logger_mock, log_conf_mock, method test_warn_utils_prints_out_message_with_host (line 93) | def test_warn_utils_prints_out_message_with_host(self, logger_mock, method test_run_api_logs_stdout (line 111) | def test_run_api_logs_stdout(self, logger_mock, run_command_mock, method test_run_op_logs_stdout (line 118) | def test_run_op_logs_stdout(self, logger_mock, run_command_mock, method test_sudo_api_logs_stdout (line 125) | def test_sudo_api_logs_stdout(self, logger_mock, run_command_mock, method test_sudo_op_logs_stdout (line 132) | def test_sudo_op_logs_stdout(self, logger_mock, run_command_mock, method _execute_operation_test (line 137) | def _execute_operation_test(self, run_command_mock, logger_mock, func): class TestExecute (line 184) | class TestExecute(BaseTestCase): method setUp (line 185) | def setUp(self): method test_calls_task_function_objects (line 190) | def test_calls_task_function_objects(self): method test_should_look_up_task_name (line 197) | def test_should_look_up_task_name(self): method test_should_handle_name_of_Task_object (line 207) | def test_should_handle_name_of_Task_object(self): method test_should_abort_if_task_name_not_found (line 221) | def test_should_abort_if_task_name_not_found(self): method test_should_not_abort_if_task_name_not_found_with_skip (line 230) | def test_should_not_abort_if_task_name_not_found_with_skip(self): method test_should_pass_through_args_kwargs (line 240) | def test_should_pass_through_args_kwargs(self): method test_should_honor_hosts_kwarg (line 251) | def test_should_honor_hosts_kwarg(self): method test_should_honor_hosts_decorator (line 266) | def test_should_honor_hosts_decorator(self): method test_should_honor_roles_decorator (line 279) | def test_should_honor_roles_decorator(self): method test_should_set_env_command_to_string_arg (line 294) | def test_should_set_env_command_to_string_arg(self): method test_should_set_env_command_to_name_attr (line 307) | def test_should_set_env_command_to_name_attr(self): method test_should_set_all_hosts (line 323) | def test_should_set_all_hosts(self): method test_should_print_executing_line_per_host (line 340) | def test_should_print_executing_line_per_host(self): method test_should_not_print_executing_line_for_singletons (line 354) | def test_should_not_print_executing_line_for_singletons(self): method test_should_return_dict_for_base_case (line 365) | def test_should_return_dict_for_base_case(self): method test_should_return_dict_for_serial_use_case (line 373) | def test_should_return_dict_for_serial_use_case(self): method test_should_preserve_None_for_non_returning_tasks (line 391) | def test_should_preserve_None_for_non_returning_tasks(self, log_mock, method test_should_use_sentinel_for_tasks_that_errored (line 410) | def test_should_use_sentinel_for_tasks_that_errored(self): method test_parallel_return_values (line 421) | def test_parallel_return_values(self): method test_should_work_with_Task_subclasses (line 435) | def test_should_work_with_Task_subclasses(self): method test_parallel_network_error (line 446) | def test_parallel_network_error(self, error_mock): method test_base_exception_error (line 465) | def test_base_exception_error(self, error_mock): method test_abort_should_not_raise_error (line 485) | def test_abort_should_not_raise_error(self): method test_abort_in_serial_should_not_raise_error (line 499) | def test_abort_in_serial_should_not_raise_error(self): method test_arg_exception_should_raise_error (line 513) | def test_arg_exception_should_raise_error(self): FILE: tests/unit/test_file.py class TestFile (line 25) | class TestFile(BaseUnitCase): method test_script_basic (line 29) | def test_script_basic(self, put_mock, sudo_mock): method test_script_specify_dir (line 39) | def test_script_specify_dir(self, put_mock, sudo_mock): FILE: tests/unit/test_main.py function mock_load_topology (line 60) | def mock_load_topology(): function mock_empty_topology (line 71) | def mock_empty_topology(): function mock_error_topology (line 79) | def mock_error_topology(): class BaseMainCase (line 88) | class BaseMainCase(BaseUnitCase): method setUp (line 89) | def setUp(self): method _run_command_compare_to_file (line 94) | def _run_command_compare_to_file(self, command, exit_status, filename): method _format_expected_actual (line 106) | def _format_expected_actual(self, expected, actual): method _run_command_compare_to_string (line 111) | def _run_command_compare_to_string(self, command, exit_status, class TestMain (line 132) | class TestMain(BaseMainCase): method setUp (line 137) | def setUp(self, mode_mock): method test_version (line 141) | def test_version(self): method test_argument_parsing_with_invalid_command (line 148) | def test_argument_parsing_with_invalid_command(self, logger_mock): method test_argument_parsing_with_short_command (line 157) | def test_argument_parsing_with_short_command(self, logger_mock): method test_argument_parsing_with_valid_command (line 166) | def test_argument_parsing_with_valid_command(self, unused_load_mock): method test_argument_parsing_with_arguments (line 171) | def test_argument_parsing_with_arguments(self, unused_load_mock): method test_arbitrary_remote_shell_disabled (line 176) | def test_arbitrary_remote_shell_disabled(self): method assertDefaultRoledefs (line 185) | def assertDefaultRoledefs(self): method assertDefaultHosts (line 191) | def assertDefaultHosts(self): method test_hosts_on_cli_overrides_topology (line 195) | def test_hosts_on_cli_overrides_topology(self, unused_mock_load): method test_describe (line 205) | def test_describe(self): method test_describe_with_args (line 215) | def test_describe_with_args(self): method test_initial_password (line 227) | def test_initial_password(self, pass_mock, unused_mock_load): method test_env_vars_persisted (line 235) | def test_env_vars_persisted(self, unused_mock_load): method test_topology_defaults_override_fabric_defaults (line 243) | def test_topology_defaults_override_fabric_defaults( method test_fabfile_option_not_present (line 257) | def test_fabfile_option_not_present(self): method test_rcfile_option_not_present (line 262) | def test_rcfile_option_not_present(self): method test_has_args_expecting_none (line 269) | def test_has_args_expecting_none(self, crawl_mock, crawl_mock_main): method test_too_few_args (line 288) | def test_too_few_args(self, crawl_mock, crawl_mock_main): method test_too_many_args (line 307) | def test_too_many_args(self, crawl_mock, crawl_mock_main): method test_too_many_args_has_optionals (line 326) | def test_too_many_args_has_optionals(self, crawl_mock, crawl_mock_main): method test_too_few_args_has_optionals (line 345) | def test_too_few_args_has_optionals(self, crawl_mock, crawl_mock_main): method test_env_parallel (line 363) | def test_env_parallel(self, unused_mock_load): method test_set_vars (line 373) | def test_set_vars(self, unused_mock_load_topology): method test_nodeps_check (line 385) | def test_nodeps_check(self, unused_mock_load): method test_skip_bad_hosts (line 400) | def test_skip_bad_hosts(self, unused_mock_load): method test_get_default_options (line 405) | def test_get_default_options(self): method test_unchanged_hosts (line 432) | def test_unchanged_hosts(self, unused_mock_load): method test_specific_hosts_long_option (line 445) | def test_specific_hosts_long_option(self, unused_mock_load): method test_specific_hosts_short_option (line 452) | def test_specific_hosts_short_option(self, unused_mock_load): method test_generic_set_hosts (line 458) | def test_generic_set_hosts(self, unused_mock_load): method test_generic_invalid_host (line 465) | def test_generic_invalid_host(self, unused_mock_load): method test_specific_overrides_generic (line 471) | def test_specific_overrides_generic(self, unused_mock_load): method test_host_not_in_conf (line 478) | def test_host_not_in_conf(self, unused_mock_load): method test_host_not_in_conf_short_option (line 484) | def test_host_not_in_conf_short_option(self, unused_mock_load): method test_cli_overrides_config (line 491) | def test_cli_overrides_config(self, unused_mock_load): method test_default_topology (line 501) | def test_default_topology(self, unused_mock_load): method test_error_topology (line 508) | def test_error_topology(self, unused_mock_load): FILE: tests/unit/test_package.py class TestPackage (line 23) | class TestPackage(BaseUnitCase): method test_deploy_is_called (line 28) | def test_deploy_is_called(self, mock_put, mock_sudo, mock_isfile): method test_rpm_install (line 39) | def test_rpm_install(self, mock_sudo): method test_rpm_install_nodeps (line 47) | def test_rpm_install_nodeps(self, mock_sudo): method test_rpm_upgrade (line 56) | def test_rpm_upgrade(self, mock_sudo, mock_rpm_upgrade): method test_install (line 72) | def test_install(self, mock_chksum, mock_deploy, mock_install): method test_check_rpm_checksum (line 82) | def test_check_rpm_checksum(self, mock_abort, mock_local): method test_check_rpm_checksum_err (line 95) | def test_check_rpm_checksum_err(self, mock_abort, mock_local): method test_deploy_with_fallback_location (line 108) | def test_deploy_with_fallback_location(self, mock_put, mock_sudo, mock... method test_deploy_invalid_local_path (line 121) | def test_deploy_invalid_local_path(self, mock_isfile): method test_uninstall (line 127) | def test_uninstall(self, mock_uninstall): method test_rpm_uninstall (line 137) | def test_rpm_uninstall(self, mock_sudo): method test_rpm_uninstall_nodeps (line 146) | def test_rpm_uninstall_nodeps(self, mock_sudo): method test_rpm_uninstall_non_existing (line 155) | def test_rpm_uninstall_non_existing(self, mock_is_rpm_installed): method test_rpm_uninstall_non_existing_with_force (line 168) | def test_rpm_uninstall_non_existing_with_force(self, mock_sudo, mock_i... FILE: tests/unit/test_plugin.py class TestPlugin (line 23) | class TestPlugin(BaseUnitCase): method test_add_jar (line 25) | def test_add_jar(self, write_mock): method test_add_jar_provide_dir (line 31) | def test_add_jar_provide_dir(self, write_mock): FILE: tests/unit/test_presto_conf.py class TestPrestoConf (line 25) | class TestPrestoConf(BaseTestCase): method test_get_presto_conf (line 31) | def test_get_presto_conf(self, config_mock, props_mock, listdir_mock, method test_get_non_presto_file (line 46) | def test_get_non_presto_file(self, get_mock, isdir_mock, listdir_mock): method test_conf_not_exists_is_empty (line 51) | def test_conf_not_exists_is_empty(self): method test_valid_conf (line 54) | def test_valid_conf(self): method test_invalid_conf (line 59) | def test_invalid_conf(self): method test_invalid_node_type (line 67) | def test_invalid_node_type(self): method test_invalid_jvm_type (line 76) | def test_invalid_jvm_type(self): method test_invalid_config_type (line 86) | def test_invalid_config_type(self): FILE: tests/unit/test_presto_config.py class TestPrestoConfig (line 20) | class TestPrestoConfig(BaseUnitCase): method _get_presto_config (line 38) | def _get_presto_config(self, config): method _assert_use_https (line 42) | def _assert_use_https(self, expected, config): method test_use_https (line 46) | def test_use_https(self): method _assert_use_ldap (line 63) | def _assert_use_ldap(self, expected, config): method test_use_ldap (line 67) | def test_use_ldap(self): FILE: tests/unit/test_prestoclient.py class TestPrestoClient (line 29) | class TestPrestoClient(BaseTestCase): method test_no_sql (line 30) | def test_no_sql(self, mock_presto_config): method test_no_server (line 36) | def test_no_server(self, mock_presto_config): method test_no_user (line 42) | def test_no_user(self, mock_presto_config): method test_default_request_called (line 49) | def test_default_request_called(self, mock_conn, mock_presto_config): method test_connection_failed (line 61) | def test_connection_failed(self, mock_conn, mock_presto_config): method test_http_call_failed (line 69) | def test_http_call_failed(self, mock_conn, mock_presto_config): method test_http_answer_valid (line 79) | def test_http_answer_valid(self, mock_response, mock_request, mock_pre... method test_http_answer_not_json (line 88) | def test_http_answer_not_json(self, mock_response, method testrun_sql_get_port (line 99) | def testrun_sql_get_port(self, sudo_mock, conn_mock, mock_presto_config): method test_create_authorization_headers (line 113) | def test_create_authorization_headers(self, mock_presto_config): method test_create_authorization_headers_fails_with_empty_user (line 119) | def test_create_authorization_headers_fails_with_empty_user(self, mock... method test_create_authorization_headers_fails_with_null_user (line 126) | def test_create_authorization_headers_fails_with_null_user(self, mock_... method test_create_authorization_headers_fails_with_empty_password (line 133) | def test_create_authorization_headers_fails_with_empty_password(self, ... method test_create_authorization_headers_fails_with_colon_in_user (line 140) | def test_create_authorization_headers_fails_with_colon_in_user(self, m... FILE: tests/unit/test_server.py class TestInstall (line 36) | class TestInstall(BaseUnitCase): method setUp (line 43) | def setUp(self): method check_corrupt_rpm_removed_and_returns_none (line 50) | def check_corrupt_rpm_removed_and_returns_none(self, mock_valid_rpm, i... method test_check_corrupt_rpm_at_absolute_path_is_removed_and_returns_none (line 67) | def test_check_corrupt_rpm_at_absolute_path_is_removed_and_returns_non... method test_check_corrupt_rpm_at_relative_path_is_removed_and_returns_none (line 70) | def test_check_corrupt_rpm_at_relative_path_is_removed_and_returns_non... method check_nonexistent_rpm_returns_none (line 74) | def check_nonexistent_rpm_returns_none(self, mock_valid_rpm, is_absolu... method test_check_nonexistent_rpm_at_absolute_path_returns_none (line 90) | def test_check_nonexistent_rpm_at_absolute_path_returns_none(self): method test_check_nonexistent_rpm_at_relative_path_returns_none (line 93) | def test_check_nonexistent_rpm_at_relative_path_returns_none(self): method check_find_valid_rpm_returns_absolute_path (line 97) | def check_find_valid_rpm_returns_absolute_path(self, mock_valid_rpm, i... method test_check_find_valid_rpm_at_absolute_path_returns_absolute_path (line 113) | def test_check_find_valid_rpm_at_absolute_path_returns_absolute_path(s... method test_check_find_valid_rpm_at_relative_path_returns_absolute_path (line 116) | def test_check_find_valid_rpm_at_relative_path_returns_absolute_path(s... method check_content_length (line 120) | def check_content_length(self, mock_urlopen, is_header_present): method test_get_content_length_returns_content_length (line 134) | def test_get_content_length_returns_content_length(self): method test_get_content_length_missing_header_returns_none (line 137) | def test_get_content_length_missing_header_returns_none(self): method check_download_file_name (line 141) | def check_download_file_name(self, mock_urlopen, is_header_present, is... method test_get_download_file_name_without_version_returns_header_file_name (line 157) | def test_get_download_file_name_without_version_returns_header_file_na... method test_get_download_file_name_with_version_returns_header_file_name (line 160) | def test_get_download_file_name_with_version_returns_header_file_name(... method test_get_download_file_name_not_in_header_without_version_returns_default_name (line 163) | def test_get_download_file_name_not_in_header_without_version_returns_... method test_get_download_file_name_not_in_header_with_version_returns_default_name (line 166) | def test_get_download_file_name_not_in_header_with_version_returns_def... method test_download_rpm (line 170) | def test_download_rpm(self, mock_url_handler): method check_version (line 188) | def check_version(self, version, expect_valid): method test_check_version_empty_string_fails (line 196) | def test_check_version_empty_string_fails(self): method test_check_version_major_succeeds (line 199) | def test_check_version_major_succeeds(self): method test_check_version_major_extra_period_fails (line 202) | def test_check_version_major_extra_period_fails(self): method test_check_version_minor_succeeds (line 205) | def test_check_version_minor_succeeds(self): method test_check_version_minor_extra_period_fails (line 208) | def test_check_version_minor_extra_period_fails(self): method test_check_version_patch_succeeds (line 211) | def test_check_version_patch_succeeds(self): method test_check_version_patch_extra_period_fails (line 214) | def test_check_version_patch_extra_period_fails(self): method test_check_version_multiple_numbers_succeeds (line 217) | def test_check_version_multiple_numbers_succeeds(self): method test_check_version_with_dashes_fails (line 220) | def test_check_version_with_dashes_fails(self): method test_check_version_extra_fields_fails (line 223) | def test_check_version_extra_fields_fails(self): method set_up_specifier_find_and_download_mocks (line 227) | def set_up_specifier_find_and_download_mocks(mock_download_rpm, mock_f... method call_and_assert_install_with_rpm_specifier (line 239) | def call_and_assert_install_with_rpm_specifier(self, mock_download_rpm... method check_rpm_specifier_with_location (line 261) | def check_rpm_specifier_with_location(self, mock_download_rpm, mock_fi... method test_specifier_as_latest_download (line 270) | def test_specifier_as_latest_download(self): method test_specifier_as_latest_found_locally (line 273) | def test_specifier_as_latest_found_locally(self): method test_specifier_as_latest_not_located (line 276) | def test_specifier_as_latest_not_located(self): method test_specifier_as_url_download (line 279) | def test_specifier_as_url_download(self): method test_specifier_as_url_found_locally (line 285) | def test_specifier_as_url_found_locally(self): method test_specifier_as_url_not_located (line 291) | def test_specifier_as_url_not_located(self): method test_specifier_as_version_download (line 297) | def test_specifier_as_version_download(self): method test_specifier_as_version_found_locally (line 300) | def test_specifier_as_version_found_locally(self): method test_specifier_as_version_not_located (line 303) | def test_specifier_as_version_not_located(self): method test_specifier_as_local_path_without_file_scheme_found_locally (line 306) | def test_specifier_as_local_path_without_file_scheme_found_locally(self): method test_specifier_as_local_path_without_file_scheme_not_located (line 309) | def test_specifier_as_local_path_without_file_scheme_not_located(self): method test_specifier_as_local_path_with_file_scheme_found_locally (line 312) | def test_specifier_as_local_path_with_file_scheme_found_locally(self): method test_specifier_as_local_path_with_file_scheme_not_located (line 315) | def test_specifier_as_local_path_with_file_scheme_not_located(self): method test_deploy_install_configure (line 321) | def test_deploy_install_configure(self, mock_update, mock_install, method test_uninstall_is_called (line 334) | def test_uninstall_is_called(self, mock_package_rpm_uninstall, mock_pa... method test_server_start_fail (line 355) | def test_server_start_fail(self, mock_port_in_use, method test_server_start (line 373) | def test_server_start(self, mock_port_in_use, mock_version_check, method test_server_start_bad_presto_version (line 391) | def test_server_start_bad_presto_version(self, mock_port_in_use, method test_server_start_port_in_use (line 402) | def test_server_start_port_in_use(self, mock_port_in_use, method test_server_restart_port_in_use (line 416) | def test_server_restart_port_in_use(self, mock_port_in_use, method test_server_stop (line 430) | def test_server_stop(self, mock_sudo, mock_port_in_use, method test_server_restart_fail (line 444) | def test_server_restart_fail(self, mock_port_in_use, mock_version_check, method test_server_restart (line 464) | def test_server_restart(self, mock_port_in_use, mock_version_check, method test_update_config (line 486) | def test_update_config(self, mock_open, mock_fdopen, mock_makedir, method test_check_success_status (line 508) | def test_check_success_status(self, mock_run_sql, string_config_mock, ... method test_check_success_fail (line 525) | def test_check_success_fail(self, mock_query_for_status, string_config... method test_status_from_each_node (line 544) | def test_status_from_each_node( method test_collect_node_information (line 582) | def test_collect_node_information(self, mock_ext_ip, mock_service, method test_get_external_ip (line 600) | def test_get_external_ip(self, mock_nodeuuid): method test_warn_external_ip (line 607) | def test_warn_external_ip(self, mock_warn, mock_nodeuuid): method read_file_output (line 616) | def read_file_output(self, filename): method test_warning_presto_version_not_installed (line 628) | def test_warning_presto_version_not_installed(self, mock_warn, mock_run, method test_fail_if_port_is_in_use (line 646) | def test_fail_if_port_is_in_use(self, mock_error, mock_port, mock_run): method test_no_warn_if_port_free (line 657) | def test_no_warn_if_port_free(self, mock_warn, mock_port, mock_run): method test_no_warn_if_port_lookup_fail (line 666) | def test_no_warn_if_port_lookup_fail(self, mock_warn, mock_port): method test_multiple_version_rpms (line 674) | def test_multiple_version_rpms(self, mock_run): method mock_fail_then_succeed (line 693) | def mock_fail_then_succeed(self): FILE: tests/unit/test_topology.py class TestTopologyConfig (line 30) | class TestTopologyConfig(BaseUnitCase): method setUp (line 31) | def setUp(self): method test_fill_conf (line 35) | def test_fill_conf(self, get_conf_from_file_mock): method test_invalid_property (line 46) | def test_invalid_property(self): method test_basic_valid_conf (line 56) | def test_basic_valid_conf(self): method test_valid_string_port_to_int (line 63) | def test_valid_string_port_to_int(self): method test_empty_host (line 71) | def test_empty_host(self): method test_valid_workers (line 76) | def test_valid_workers(self): method test_no_workers (line 80) | def test_no_workers(self): method test_invalid_workers_type (line 85) | def test_invalid_workers_type(self): method test_invalid_coordinator_type (line 91) | def test_invalid_coordinator_type(self): method test_validate_workers_for_prompt (line 98) | def test_validate_workers_for_prompt(self): method test_show (line 104) | def test_show(self): FILE: tests/unit/test_workers.py class TestWorkers (line 27) | class TestWorkers(BaseTestCase): method test_build_defaults (line 28) | def test_build_defaults(self): method test_validate_valid (line 59) | def test_validate_valid(self): method test_validate_default (line 67) | def test_validate_default(self): method test_invalid_conf (line 72) | def test_invalid_conf(self): method test_invalid_conf_missing_coordinator (line 78) | def test_invalid_conf_missing_coordinator(self): method test_invalid_conf_coordinator (line 89) | def test_invalid_conf_coordinator(self): method test_get_conf_empty_is_default (line 103) | def test_get_conf_empty_is_default(self, get_conf_mock, write_mock): method test_get_conf (line 111) | def test_get_conf(self, get_presto_conf_mock, write_mock): method test_worker_not_localhost (line 141) | def test_worker_not_localhost(self, coord_mock, get_conf_mock, write_m... FILE: tests/unit/util/test_application.py class ApplicationTest (line 33) | class ApplicationTest(BaseTestCase): method setUp (line 35) | def setUp(self): method tearDown (line 43) | def tearDown(self): method test_configures_default_log_file (line 51) | def test_configures_default_log_file( method __assert_logging_setup_with_file (line 76) | def __assert_logging_setup_with_file( method test_configures_custom_log_file (line 93) | def test_configures_custom_log_file( method test_configures_invalid_log_file (line 120) | def test_configures_invalid_log_file( method test_configures_absolute_path_to_log_file (line 145) | def test_configures_absolute_path_to_log_file( method test_uses_logging_configs_in_order (line 167) | def test_uses_logging_configs_in_order( method test_handles_errors (line 193) | def test_handles_errors( method test_handles_system_abnormal_exits (line 213) | def test_handles_system_abnormal_exits( method test_handles_system_normal_exits (line 231) | def test_handles_system_normal_exits( method test_handles_system_exit_none (line 249) | def test_handles_system_exit_none( method test_handles_system_exit_string (line 267) | def test_handles_system_exit_string( class FakeError (line 285) | class FakeError(Exception): FILE: tests/unit/util/test_base_config.py class TestBaseConfig (line 30) | class TestBaseConfig(BaseTestCase): method test_get_config_already_loaded (line 35) | def test_get_config_already_loaded( method test_get_config_load_file (line 49) | def test_get_config_load_file( method test_get_config_load_interactive (line 64) | def test_get_config_load_interactive( method test_decorator_has_topology (line 78) | def test_decorator_has_topology(self, mock_is_config_loaded): method test_decorator_no_topology (line 89) | def test_decorator_no_topology(self, mock_is_config_loaded): FILE: tests/unit/util/test_exception.py class ExceptionTest (line 23) | class ExceptionTest(TestCase): method test_exception_with_cause (line 25) | def test_exception_with_cause(self): method test_can_pickle_ConfigFileNotFound (line 44) | def test_can_pickle_ConfigFileNotFound(self): FILE: tests/unit/util/test_fabric_application.py class FabricApplicationTest (line 29) | class FabricApplicationTest(BaseTestCase): method setUp (line 31) | def setUp(self): method tearDown (line 40) | def tearDown(self): method test_disconnect_all (line 49) | def test_disconnect_all(self, disconnect_mock, logging_conf_mock): method test_keyboard_interrupt (line 59) | def test_keyboard_interrupt(self, make_dirs_mock, logger_mock, method test_handles_errors (line 73) | def test_handles_errors(self, logging_mock): FILE: tests/unit/util/test_fabricapi.py class TestFabricapi (line 27) | class TestFabricapi(BaseTestCase): method test_get_host_with_exclude (line 28) | def test_get_host_with_exclude(self): method test_by_role_coordinator (line 38) | def test_by_role_coordinator(self): method test_by_role_worker (line 49) | def test_by_role_worker(self): method assert_is_worker (line 60) | def assert_is_worker(self, roledefs): method assert_is_coordinator (line 65) | def assert_is_coordinator(self, roledefs): method test_by_rolename_worker (line 70) | def test_by_rolename_worker(self): method test_by_rolename_coordinator (line 83) | def test_by_rolename_coordinator(self): method test_by_rolename_all (line 96) | def test_by_rolename_all(self): FILE: tests/unit/util/test_filesystem.py class TestFilesystem (line 21) | class TestFilesystem(BaseTestCase): method test_write_file_exits (line 25) | def test_write_file_exits(self, makedirs_mock, open_mock, fdopen_mock): method test_write_file_error_in_dirs (line 32) | def test_write_file_error_in_dirs(self, makedirs_mock): method test_write_file_error_in_files (line 40) | def test_write_file_error_in_files(self, open_mock, makedirs_mock): FILE: tests/unit/util/test_local_config_util.py class TestLocalConfigUtil (line 23) | class TestLocalConfigUtil(BaseTestCase): method test_get_default_config_dir (line 25) | def test_get_default_config_dir(self, get_mock): method test_get_configured_config_dir (line 30) | def test_get_configured_config_dir(self, get_mock): method test_get_default_log_dir (line 36) | def test_get_default_log_dir(self, get_mock): method test_get_configured_log_dir (line 41) | def test_get_configured_log_dir(self, get_mock): FILE: tests/unit/util/test_parser.py class TestParser (line 25) | class TestParser(BaseTestCase): method test_print_extended_help (line 26) | def test_print_extended_help(self): FILE: tests/unit/util/test_remote_config_util.py class TestRemoteConfigUtil (line 23) | class TestRemoteConfigUtil(BaseTestCase): method test_lookup_port_failure (line 25) | def test_lookup_port_failure(self, sudo_mock): method test_lookup_port_not_integer_failure (line 35) | def test_lookup_port_not_integer_failure(self, sudo_mock): method test_lookup_port_not_in_file (line 49) | def test_lookup_port_not_in_file(self, sudo_mock): method test_lookup_port_out_of_range (line 57) | def test_lookup_port_out_of_range(self, sudo_mock): method test_lookup_string_config (line 70) | def test_lookup_string_config(self, sudo_mock): method test_lookup_string_config_not_in_file (line 80) | def test_lookup_string_config_not_in_file(self, sudo_mock): method test_lookup_string_config_file_not_found (line 89) | def test_lookup_string_config_file_not_found(self, sudo_mock): FILE: tests/unit/util/test_validators.py class TestValidators (line 23) | class TestValidators(BaseTestCase): method test_valid_ipv4 (line 24) | def test_valid_ipv4(self): method test_valid_full_ipv6 (line 28) | def test_valid_full_ipv6(self): method test_valid_collapsed_ipv6 (line 32) | def test_valid_collapsed_ipv6(self): method test_valid_hostname (line 36) | def test_valid_hostname(self): method test_invalid_host (line 40) | def test_invalid_host(self): method test_invalid_host_type (line 47) | def test_invalid_host_type(self): method test_valid_port (line 54) | def test_valid_port(self): method test_invalid_port (line 58) | def test_invalid_port(self): method test_invalid_port_type (line 65) | def test_invalid_port_type(self): FILE: tests/unit/util/test_version_util.py class TestVersionRange (line 25) | class TestVersionRange(BaseUnitCase): method test_pad_tuple_bad_len (line 26) | def test_pad_tuple_bad_len(self): method test_pad_tuple (line 30) | def test_pad_tuple(self): method test_invalid_range (line 33) | def test_invalid_range(self): method test_contains (line 46) | def test_contains(self): method test_strip_td (line 57) | def test_strip_td(self): method test_contains_teradata (line 61) | def test_contains_teradata(self): class TestVersionRangeSet (line 68) | class TestVersionRangeSet(BaseUnitCase): method test_0_length_list (line 69) | def test_0_length_list(self): method test_1_length_list (line 73) | def test_1_length_list(self): method test_valid_2_length_list (line 78) | def test_valid_2_length_list(self): method test_discontinuous_2_length_list (line 85) | def test_discontinuous_2_length_list(self): method test_bad_order_2_length_list (line 90) | def test_bad_order_2_length_list(self): method test_overlapping_2_length_list (line 95) | def test_overlapping_2_length_list(self): class TestVersionUtils (line 101) | class TestVersionUtils(BaseUnitCase): method test_all_numeric (line 102) | def test_all_numeric(self): method test_trailing_non_numeric (line 106) | def test_trailing_non_numeric(self): method test_ancient_tags (line 112) | def test_ancient_tags(self): method test_non_trailing_non_numeric (line 119) | def test_non_trailing_non_numeric(self): method test_no_numeric (line 123) | def test_no_numeric(self): method test_split (line 128) | def test_split(self): method test_old_teradata_version (line 133) | def test_old_teradata_version(self): method test_new_teradata_version (line 139) | def test_new_teradata_version(self): FILE: tests/unit/yarn_slider/test_help.py class TestSliderHelp (line 52) | class TestSliderHelp(BaseMainCase): method setUp (line 54) | def setUp(self, mode_mock): method get_short_help_path (line 59) | def get_short_help_path(self): method get_extended_help_path (line 62) | def get_extended_help_path(self): method test_standalone_help_text_short (line 65) | def test_standalone_help_text_short(self): method test_standalone_help_text_long (line 69) | def test_standalone_help_text_long(self): method test_standalone_help_displayed_with_no_args (line 73) | def test_standalone_help_displayed_with_no_args(self): method test_standalone_extended_help (line 77) | def test_standalone_extended_help(self): FILE: util/http.py function send_get_request (line 20) | def send_get_request(url): function send_authorized_post_request (line 35) | def send_authorized_post_request(url, data, authorization_string, conten... FILE: util/semantic_version.py class SemanticVersion (line 17) | class SemanticVersion(object): method __init__ (line 18) | def __init__(self, version): method _get_version_field_value (line 27) | def _get_version_field_value(self, version_fields, index): method __lt__ (line 36) | def __lt__(self, other): method __eq__ (line 45) | def __eq__(self, other): method __str__ (line 50) | def __str__(self): method _bump_version (line 54) | def _bump_version(version_field): method _get_acceptable_major_version_bumps (line 57) | def _get_acceptable_major_version_bumps(self): method _get_acceptable_minor_version_bumps (line 63) | def _get_acceptable_minor_version_bumps(self): method _get_acceptable_patch_version_bumps (line 68) | def _get_acceptable_patch_version_bumps(self): method get_acceptable_version_bumps (line 72) | def get_acceptable_version_bumps(self):