SYMBOL INDEX (853 symbols across 49 files) FILE: conftest.py function pytest_addoption (line 1) | def pytest_addoption(parser): function pytest_generate_tests (line 7) | def pytest_generate_tests(metafunc): FILE: enterprise_gateway/__init__.py function launch_instance (line 8) | def launch_instance(*args, **kwargs): FILE: enterprise_gateway/base/handlers.py class APIVersionHandler (line 18) | class APIVersionHandler(TokenAuthorizationMixin, CORSMixin, JSONErrorsMi... method get (line 24) | def get(self): class NotFoundHandler (line 34) | class NotFoundHandler(JSONErrorsMixin, web.RequestHandler): method prepare (line 46) | def prepare(self): FILE: enterprise_gateway/client/gateway_client.py class GatewayClient (line 20) | class GatewayClient: method __init__ (line 33) | def __init__(self, host=DEFAULT_GATEWAY_HOST, use_secure_connection=Fa... method start_kernel (line 44) | def start_kernel( method shutdown_kernel (line 83) | def shutdown_kernel(self, kernel): class KernelClient (line 93) | class KernelClient: method __init__ (line 100) | def __init__( method shutdown (line 130) | def shutdown(self): method execute (line 158) | def execute(self, code, timeout=REQUEST_TIMEOUT): method interrupt (line 231) | def interrupt(self): method restart (line 242) | def restart(self, timeout=REQUEST_TIMEOUT): method get_state (line 262) | def get_state(self): method start_interrupt_thread (line 276) | def start_interrupt_thread(self, wait_time=DEFAULT_INTERRUPT_WAIT): method perform_interrupt (line 281) | def perform_interrupt(self, wait_time): method terminate_interrupt_thread (line 286) | def terminate_interrupt_thread(self): method _send_request (line 292) | def _send_request(self, code): method _get_response (line 308) | def _get_response(self, msg_id, timeout, post_idle): method _read_responses (line 335) | def _read_responses(self): method _get_msg_id (line 385) | def _get_msg_id(message, logger): method _convert_raw_response (line 399) | def _convert_raw_response(raw_response_message): method __create_execute_request (line 407) | def __create_execute_request(msg_id, code): FILE: enterprise_gateway/enterprisegatewayapp.py class EnterpriseGatewayApp (line 56) | class EnterpriseGatewayApp(EnterpriseGatewayConfigMixin, JupyterApp): method initialize (line 86) | def initialize(self, argv: Optional[List[str]] = None) -> None: method init_configurables (line 100) | def init_configurables(self) -> None: method _create_request_handlers (line 164) | def _create_request_handlers(self) -> List[tuple]: method __add_authorized_hostname_match (line 189) | def __add_authorized_hostname_match(self, handler: tuple) -> None: method init_webapp (line 203) | def init_webapp(self) -> None: method _build_ssl_options (line 256) | def _build_ssl_options(self) -> Optional[ssl.SSLContext]: method init_http_server (line 271) | def init_http_server(self) -> None: method start (line 305) | def start(self) -> None: method shutdown (line 342) | def shutdown(self) -> None: method stop (line 355) | def stop(self) -> None: method _signal_stop (line 366) | def _signal_stop(self, sig, frame) -> None: method update_dynamic_configurables (line 373) | def update_dynamic_configurables(self) -> bool: method add_dynamic_configurable (line 409) | def add_dynamic_configurable(self, config_name: str, configurable: Con... method init_dynamic_configs (line 422) | def init_dynamic_configs(self) -> None: FILE: enterprise_gateway/itests/__init__.py function teardown (line 6) | def teardown(): FILE: enterprise_gateway/itests/test_authorization.py class TestAuthorization (line 7) | class TestAuthorization(unittest.TestCase): method setUpClass (line 11) | def setUpClass(cls): method setUp (line 17) | def setUp(self): method tearDown (line 20) | def tearDown(self): method test_authorized_users (line 23) | def test_authorized_users(self): method test_unauthorized_users (line 34) | def test_unauthorized_users(self): FILE: enterprise_gateway/itests/test_base.py class TestBase (line 12) | class TestBase: method get_expected_application_id (line 13) | def get_expected_application_id(self): method get_expected_spark_version (line 16) | def get_expected_spark_version(self): method get_expected_spark_master (line 19) | def get_expected_spark_master(self): method get_expected_deploy_mode (line 22) | def get_expected_deploy_mode(self): method get_expected_hostname (line 25) | def get_expected_hostname(self): FILE: enterprise_gateway/itests/test_python_kernel.py class PythonKernelBaseTestCase (line 9) | class PythonKernelBaseTestCase(TestBase): method test_get_hostname (line 14) | def test_get_hostname(self): method test_hello_world (line 21) | def test_hello_world(self): method test_restart (line 26) | def test_restart(self): method test_interrupt (line 42) | def test_interrupt(self): method test_scope (line 80) | def test_scope(self): class PythonKernelBaseSparkTestCase (line 95) | class PythonKernelBaseSparkTestCase(PythonKernelBaseTestCase): method test_get_application_id (line 100) | def test_get_application_id(self): method test_get_deploy_mode (line 105) | def test_get_deploy_mode(self): method test_get_resource_manager (line 110) | def test_get_resource_manager(self): method test_get_spark_version (line 115) | def test_get_spark_version(self): method test_run_pi_example (line 121) | def test_run_pi_example(self): class TestPythonKernelLocal (line 139) | class TestPythonKernelLocal(unittest.TestCase, PythonKernelBaseTestCase): method setUpClass (line 143) | def setUpClass(cls): method tearDownClass (line 152) | def tearDownClass(cls): class TestPythonKernelDistributed (line 160) | class TestPythonKernelDistributed(unittest.TestCase, PythonKernelBaseTes... method setUpClass (line 166) | def setUpClass(cls): method tearDownClass (line 175) | def tearDownClass(cls): class TestPythonKernelClient (line 183) | class TestPythonKernelClient(unittest.TestCase, PythonKernelBaseSparkTes... method setUpClass (line 189) | def setUpClass(cls): method tearDownClass (line 198) | def tearDownClass(cls): class TestPythonKernelCluster (line 206) | class TestPythonKernelCluster(unittest.TestCase, PythonKernelBaseSparkTe... method setUpClass (line 212) | def setUpClass(cls): method tearDownClass (line 221) | def tearDownClass(cls): FILE: enterprise_gateway/itests/test_r_kernel.py class RKernelBaseTestCase (line 9) | class RKernelBaseTestCase(TestBase): method test_get_hostname (line 14) | def test_get_hostname(self): method test_hello_world (line 19) | def test_hello_world(self): method test_restart (line 24) | def test_restart(self): method test_interrupt (line 40) | def test_interrupt(self): class RKernelBaseSparkTestCase (line 77) | class RKernelBaseSparkTestCase(RKernelBaseTestCase): method test_get_application_id (line 82) | def test_get_application_id(self): method test_get_spark_version (line 89) | def test_get_spark_version(self): method test_get_resource_manager (line 94) | def test_get_resource_manager(self): method test_get_deploy_mode (line 99) | def test_get_deploy_mode(self): class TestRKernelLocal (line 105) | class TestRKernelLocal(unittest.TestCase, RKernelBaseTestCase): method setUpClass (line 109) | def setUpClass(cls): method tearDownClass (line 118) | def tearDownClass(cls): class TestRKernelClient (line 126) | class TestRKernelClient(unittest.TestCase, RKernelBaseSparkTestCase): method setUpClass (line 132) | def setUpClass(cls): method tearDownClass (line 140) | def tearDownClass(cls): class TestRKernelCluster (line 148) | class TestRKernelCluster(unittest.TestCase, RKernelBaseSparkTestCase): method setUpClass (line 154) | def setUpClass(cls): method tearDownClass (line 163) | def tearDownClass(cls): FILE: enterprise_gateway/itests/test_scala_kernel.py class ScalaKernelBaseTestCase (line 9) | class ScalaKernelBaseTestCase(TestBase): method test_get_hostname (line 14) | def test_get_hostname(self): method test_hello_world (line 23) | def test_hello_world(self): method test_restart (line 28) | def test_restart(self): method test_interrupt (line 44) | def test_interrupt(self): class ScalaKernelBaseSparkTestCase (line 81) | class ScalaKernelBaseSparkTestCase(ScalaKernelBaseTestCase): method test_get_application_id (line 86) | def test_get_application_id(self): method test_get_spark_version (line 91) | def test_get_spark_version(self): method test_get_resource_manager (line 96) | def test_get_resource_manager(self): method test_get_deploy_mode (line 101) | def test_get_deploy_mode(self): class TestScalaKernelLocal (line 107) | class TestScalaKernelLocal(unittest.TestCase, ScalaKernelBaseTestCase): method setUpClass (line 115) | def setUpClass(cls): method tearDownClass (line 124) | def tearDownClass(cls): class TestScalaKernelClient (line 132) | class TestScalaKernelClient(unittest.TestCase, ScalaKernelBaseSparkTestC... method setUpClass (line 138) | def setUpClass(cls): method tearDownClass (line 147) | def tearDownClass(cls): class TestScalaKernelCluster (line 155) | class TestScalaKernelCluster(unittest.TestCase, ScalaKernelBaseSparkTest... method setUpClass (line 161) | def setUpClass(cls): method tearDownClass (line 170) | def tearDownClass(cls): FILE: enterprise_gateway/mixins.py class CORSMixin (line 35) | class CORSMixin: method set_default_headers (line 49) | def set_default_headers(self) -> None: method options (line 66) | def options(self) -> None: class TokenAuthorizationMixin (line 75) | class TokenAuthorizationMixin: method prepare (line 83) | def prepare(self) -> Optional[Awaitable[None]]: class JSONErrorsMixin (line 111) | class JSONErrorsMixin: method write_error (line 116) | def write_error(self, status_code: int, **kwargs) -> None: class EnterpriseGatewayConfigMixin (line 161) | class EnterpriseGatewayConfigMixin(Configurable): method _port_default (line 172) | def _port_default(self) -> int: method _port_retries_default (line 185) | def _port_retries_default(self) -> int: method _ip_default (line 199) | def _ip_default(self) -> str: method _base_url_default (line 212) | def _base_url_default(self) -> str: method _auth_token_default (line 222) | def _auth_token_default(self) -> str: method _allow_credentials_default (line 233) | def _allow_credentials_default(self) -> str: method _allow_headers_default (line 242) | def _allow_headers_default(self) -> str: method _allow_methods_default (line 251) | def _allow_methods_default(self) -> str: method _allow_origin_default (line 260) | def _allow_origin_default(self) -> str: method _expose_headers_default (line 270) | def _expose_headers_default(self) -> str: method _trust_xheaders_default (line 282) | def _trust_xheaders_default(self) -> bool: method _certfile_default (line 296) | def _certfile_default(self) -> Optional[str]: method _keyfile_default (line 308) | def _keyfile_default(self) -> Optional[str]: method _client_ca_default (line 321) | def _client_ca_default(self) -> Optional[str]: method _ssl_version_default (line 335) | def _ssl_version_default(self) -> Optional[int]: method _max_age_default (line 345) | def _max_age_default(self) -> str: method _max_kernels_default (line 360) | def _max_kernels_default(self) -> Optional[int]: method _default_kernel_name_default (line 371) | def _default_kernel_name_default(self) -> str: method _list_kernels_default (line 384) | def _list_kernels_default(self) -> bool: method _update_env_whitelist (line 396) | def _update_env_whitelist(self, change): method _client_envs_default (line 408) | def _client_envs_default(self): method _update_env_process_whitelist (line 417) | def _update_env_process_whitelist(self, change): method _inherited_envs_default (line 429) | def _inherited_envs_default(self) -> List[str]: method _kernel_headers_default (line 442) | def _kernel_headers_default(self) -> List[str]: method _remote_hosts_default (line 458) | def _remote_hosts_default(self) -> List[str]: method _load_balancing_algorithm_default (line 474) | def _load_balancing_algorithm_default(self) -> str: method _validate_load_balancing_algorithm (line 480) | def _validate_load_balancing_algorithm(self, proposal: Dict[str, str])... method _yarn_endpoint_default (line 503) | def _yarn_endpoint_default(self) -> Optional[str]: method _alt_yarn_endpoint_default (line 520) | def _alt_yarn_endpoint_default(self) -> Optional[str]: method _yarn_endpoint_security_enabled_default (line 533) | def _yarn_endpoint_security_enabled_default(self) -> bool: method _conductor_endpoint_default (line 553) | def _conductor_endpoint_default(self) -> Optional[str]: method _default_log_format (line 559) | def _default_log_format(self) -> str: method _impersonation_enabled_default (line 575) | def _impersonation_enabled_default(self) -> bool: method _unauthorized_users_default (line 591) | def _unauthorized_users_default(self) -> Set[str]: method _authorized_users_default (line 609) | def _authorized_users_default(self) -> Set[str]: method _port_range_default (line 636) | def _port_range_default(self) -> str: method _max_kernels_per_user_default (line 651) | def _max_kernels_per_user_default(self) -> int: method _ws_ping_interval_default (line 667) | def _ws_ping_interval_default(self) -> int: method _dynamic_config_interval_default (line 683) | def _dynamic_config_interval_default(self) -> int: method _dynamic_config_interval_changed (line 689) | def _dynamic_config_interval_changed(self, event: Dict[str, Any]) -> N... method _availability_mode_env_default (line 723) | def _availability_mode_env_default(self): method _authorizer_class_default (line 787) | def _authorizer_class_default(self): FILE: enterprise_gateway/services/api/handlers.py class BaseSpecHandler (line 15) | class BaseSpecHandler(CORSMixin, web.StaticFileHandler): method get_resource_metadata (line 19) | def get_resource_metadata() -> tuple: method initialize (line 23) | def initialize(self) -> None: method get (line 31) | async def get(self) -> None: method options (line 38) | def options(self, **kwargs) -> None: class SpecJsonHandler (line 43) | class SpecJsonHandler(BaseSpecHandler): method get_resource_metadata (line 47) | def get_resource_metadata() -> tuple: class APIYamlHandler (line 52) | class APIYamlHandler(BaseSpecHandler): method get_resource_metadata (line 56) | def get_resource_metadata() -> tuple: FILE: enterprise_gateway/services/kernels/handlers.py class MainKernelHandler (line 24) | class MainKernelHandler( method client_envs (line 32) | def client_envs(self): method inherited_envs (line 36) | def inherited_envs(self): method _build_kernel_env (line 39) | def _build_kernel_env(self, model_env: dict[str, Any]) -> dict[str, str]: method _build_kernel_headers (line 58) | def _build_kernel_headers(self) -> dict[str, str]: method post (line 79) | async def post(self): method get (line 117) | async def get(self): method options (line 133) | def options(self, **kwargs: dict[str, Any] | None): class KernelHandler (line 138) | class KernelHandler( method options (line 145) | def options(self, **kwargs: dict[str, Any] | None): method get (line 150) | def get(self, kernel_id: str): method delete (line 158) | async def delete(self, kernel_id): class ZMQChannelsHandler (line 164) | class ZMQChannelsHandler( method get (line 169) | async def get(self, kernel_id): FILE: enterprise_gateway/services/kernels/remotemanager.py function import_item (line 33) | def import_item(name: str): function get_process_proxy_config (line 62) | def get_process_proxy_config(kernelspec: KernelSpec) -> dict[str, Any]: function new_kernel_id (line 89) | def new_kernel_id(**kwargs: dict[str, Any] | None) -> str: class TrackPendingRequests (line 131) | class TrackPendingRequests: method increment (line 142) | def increment(self, username: str) -> None: method decrement (line 148) | def decrement(self, username: str) -> None: method get_counts (line 154) | def get_counts(self, username: str) -> tuple[int, int]: class RemoteMappingKernelManager (line 159) | class RemoteMappingKernelManager(AsyncMappingKernelManager): method _context_default (line 164) | def _context_default(self) -> Context: method _kernel_manager_class_default (line 189) | def _kernel_manager_class_default(self) -> str: method check_kernel_id (line 192) | def check_kernel_id(self, kernel_id: str) -> None: method _refresh_kernel (line 198) | def _refresh_kernel(self, kernel_id: str) -> bool: method start_kernel (line 209) | async def start_kernel(self, *args: list[Any] | None, **kwargs: dict[s... method restart_kernel (line 236) | async def restart_kernel(self, kernel_id: str, now: bool = False) -> N... method shutdown_kernel (line 249) | async def shutdown_kernel( method wait_for_restart_finish (line 262) | async def wait_for_restart_finish(self, kernel_id: str, action: str = ... method _enforce_kernel_limits (line 282) | def _enforce_kernel_limits(self, username: str) -> None: method remove_kernel (line 327) | def remove_kernel(self, kernel_id: str) -> None: method start_kernel_from_session (line 338) | def start_kernel_from_session( method new_kernel_id (line 419) | def new_kernel_id(self, **kwargs: dict[str, Any] | None) -> str: class RemoteKernelManager (line 427) | class RemoteKernelManager(EnterpriseGatewayConfigMixin, AsyncIOLoopKerne... method __init__ (line 435) | def __init__(self, **kwargs: dict[str, Any] | None): method _link_dependent_props (line 466) | def _link_dependent_props(self) -> None: method start_kernel (line 496) | async def start_kernel(self, **kwargs: dict[str, Any] | None): method _capture_user_overrides (line 510) | def _capture_user_overrides(self, **kwargs: dict[str, Any] | None) -> ... method format_kernel_cmd (line 531) | def format_kernel_cmd(self, extra_arguments: list[str] | None = None) ... method _launch_kernel (line 557) | async def _launch_kernel( method request_shutdown (line 584) | def request_shutdown(self, restart: bool = False) -> None: method restart_kernel (line 595) | async def restart_kernel(self, now: bool = False, **kwargs: dict[str, ... method signal_kernel (line 650) | async def signal_kernel(self, signum: int) -> None: method cleanup (line 688) | def cleanup(self, connection_file: bool = True) -> None: method cleanup_resources (line 705) | def cleanup_resources(self, restart: bool = False) -> None: method write_connection_file (line 723) | def write_connection_file(self) -> None: method _get_process_proxy (line 745) | def _get_process_proxy(self) -> None: method kernel_session_manager (line 768) | def kernel_session_manager(self) -> KernelSessionManager | None: method cull_idle_timeout (line 775) | def cull_idle_timeout(self) -> int: method mapping_kernel_manager (line 782) | def mapping_kernel_manager(self) -> RemoteMappingKernelManager | None: FILE: enterprise_gateway/services/kernelspecs/handlers.py function apply_user_filter (line 20) | def apply_user_filter( class MainKernelSpecHandler (line 64) | class MainKernelSpecHandler(TokenAuthorizationMixin, CORSMixin, JSONErro... method kernel_spec_cache (line 68) | def kernel_spec_cache(self) -> KernelSpecCache: method get (line 72) | async def get(self) -> None: class KernelSpecHandler (line 119) | class KernelSpecHandler(TokenAuthorizationMixin, CORSMixin, JSONErrorsMi... method kernel_spec_cache (line 123) | def kernel_spec_cache(self) -> KernelSpecCache: method get (line 127) | async def get(self, kernel_name: str) -> None: class KernelSpecResourceHandler (line 159) | class KernelSpecResourceHandler( method kernel_spec_cache (line 167) | def kernel_spec_cache(self) -> KernelSpecCache: method initialize (line 170) | def initialize(self) -> None: method get (line 175) | async def get(self, kernel_name: str, path: str, include_body: bool = ... method head (line 187) | def head(self, kernel_name: str, path: str) -> None: FILE: enterprise_gateway/services/kernelspecs/kernelspec_cache.py class KernelSpecCache (line 23) | class KernelSpecCache(SingletonConfigurable): method _cache_enabled_default (line 44) | def _cache_enabled_default(self): method __init__ (line 47) | def __init__(self, kernel_spec_manager, **kwargs) -> None: method get_kernel_spec (line 53) | async def get_kernel_spec(self, kernel_name: str) -> KernelSpec: method get_all_specs (line 69) | async def get_all_specs(self) -> Dict[str, CacheItemType]: method get_item (line 91) | def get_item(self, kernel_name: str) -> Optional[KernelSpec]: method get_all_items (line 112) | def get_all_items(self) -> Dict[str, CacheItemType]: method put_item (line 127) | def put_item(self, kernel_name: str, cache_item: Union[KernelSpec, Cac... method put_all_items (line 151) | def put_all_items(self, kernelspecs: Dict[str, CacheItemType]) -> None: method remove_item (line 156) | def remove_item(self, kernel_name: str) -> Optional[CacheItemType]: method _initialize (line 164) | def _initialize(self): method kernel_spec_to_cache_item (line 195) | def kernel_spec_to_cache_item(kernelspec: KernelSpec) -> CacheItemType: method cache_item_to_kernel_spec (line 203) | def cache_item_to_kernel_spec(cache_item: CacheItemType) -> KernelSpec: class KernelSpecChangeHandler (line 209) | class KernelSpecChangeHandler(FileSystemEventHandler): method __init__ (line 217) | def __init__(self, kernel_spec_cache: KernelSpecCache, **kwargs): method dispatch (line 223) | def dispatch(self, event): method on_created (line 246) | def on_created(self, event): method on_deleted (line 262) | def on_deleted(self, event): method on_modified (line 267) | def on_modified(self, event): method on_moved (line 283) | def on_moved(self, event): FILE: enterprise_gateway/services/processproxies/conductor.py class ConductorClusterProcessProxy (line 31) | class ConductorClusterProcessProxy(RemoteProcessProxy): method __init__ (line 39) | def __init__(self, kernel_manager: RemoteKernelManager, proxy_config: ... method launch_process (line 52) | async def launch_process( method _update_launch_info (line 99) | def _update_launch_info(self, kernel_cmd: list[str], env_dict: dict) -... method _update_notebook_master_rest_url (line 137) | def _update_notebook_master_rest_url(self, env_dict: dict) -> None: method poll (line 235) | def poll(self) -> bool | None: method send_signal (line 250) | def send_signal(self, signum: int) -> bool | None: method kill (line 264) | def kill(self) -> bool | None: method cleanup (line 296) | def cleanup(self) -> None: method _parse_driver_submission_id (line 317) | def _parse_driver_submission_id(self, submission_response: str) -> None: method confirm_remote_startup (line 347) | async def confirm_remote_startup(self) -> None: method _get_application_state (line 388) | def _get_application_state(self) -> str: method handle_timeout (line 406) | async def handle_timeout(self) -> None: method _get_application_id (line 436) | def _get_application_id(self, ignore_final_states: bool = False) -> str: method get_process_info (line 473) | def get_process_info(self) -> dict[str, Any]: method load_process_info (line 482) | def load_process_info(self, process_info: dict[str, Any]) -> None: method _query_app_by_driver_id (line 490) | def _query_app_by_driver_id(self, driver_id: str) -> dict | None: method _query_app_by_id (line 523) | def _query_app_by_id(self, app_id: str) -> dict | None: method _query_app_state_by_driver_id (line 553) | def _query_app_state_by_driver_id(self, driver_id: str) -> dict | None: method _get_driver_by_app_id (line 567) | def _get_driver_by_app_id(self, app_id: str) -> dict | None: method _kill_app_by_driver_id (line 584) | def _kill_app_by_driver_id(self, driver_id: str): method _performRestCall (line 630) | def _performRestCall(self, cmd: list[str], url: str, HA_LIST: list[str... method _performConductorJWTLogonAndRetrieval (line 657) | def _performConductorJWTLogonAndRetrieval( # noqa FILE: enterprise_gateway/services/processproxies/container.py function _parse_prohibited_ids (line 30) | def _parse_prohibited_ids(env_var: str, default: str) -> list[int]: class ContainerProcessProxy (line 70) | class ContainerProcessProxy(RemoteProcessProxy): method __init__ (line 75) | def __init__(self, kernel_manager: RemoteKernelManager, proxy_config: ... method _determine_kernel_images (line 81) | def _determine_kernel_images(self, **kwargs: dict[str, Any] | None) ->... method launch_process (line 106) | async def launch_process( method _enforce_prohibited_ids (line 139) | def _enforce_prohibited_ids(self, **kwargs: dict[str, Any] | None) -> ... method poll (line 190) | def poll(self) -> bool | None: method send_signal (line 212) | def send_signal(self, signum: int) -> bool | None: method kill (line 229) | def kill(self) -> bool | None: method shutdown_listener (line 243) | def shutdown_listener(self): method confirm_remote_startup (line 249) | async def confirm_remote_startup(self) -> None: method get_process_info (line 276) | def get_process_info(self) -> dict[str, Any]: method load_process_info (line 286) | def load_process_info(self, process_info: dict[str, Any]) -> None: method get_initial_states (line 292) | def get_initial_states(self): method get_error_states (line 297) | def get_error_states(self): method get_container_status (line 302) | def get_container_status(self, iteration: int | None) -> str: method terminate_container_resources (line 307) | def terminate_container_resources(self): FILE: enterprise_gateway/services/processproxies/crd.py class CustomResourceProcessProxy (line 18) | class CustomResourceProcessProxy(KubernetesProcessProxy): method __init__ (line 27) | def __init__(self, kernel_manager: RemoteKernelManager, proxy_config: ... method launch_process (line 33) | async def launch_process( method get_container_status (line 46) | def get_container_status(self, iteration: int | None) -> str: method delete_managed_object (line 101) | def delete_managed_object(self, termination_stati: list[str]) -> bool: method get_initial_states (line 123) | def get_initial_states(self) -> set: method _get_exception_text (line 127) | def _get_exception_text(self, error_message): FILE: enterprise_gateway/services/processproxies/distributed.py class TrackKernelOnHost (line 25) | class TrackKernelOnHost: method add_kernel_id (line 31) | def add_kernel_id(self, host: str, kernel_id: str) -> None: method delete_kernel_id (line 36) | def delete_kernel_id(self, kernel_id: str) -> None: method min_or_remote_host (line 43) | def min_or_remote_host(self, remote_host: str | None = None) -> str: method increment (line 49) | def increment(self, host: str) -> None: method decrement (line 54) | def decrement(self, host: str) -> None: method init_host_kernels (line 59) | def init_host_kernels(self, hosts) -> None: class DistributedProcessProxy (line 65) | class DistributedProcessProxy(RemoteProcessProxy): method __init__ (line 73) | def __init__(self, kernel_manager: RemoteKernelManager, proxy_config: ... method launch_process (line 87) | async def launch_process( method _launch_remote_process (line 122) | def _launch_remote_process(self, kernel_cmd: str, **kwargs: dict[str, ... method _build_startup_command (line 147) | def _build_startup_command(self, argv_cmd: str, **kwargs: dict[str, An... method _determine_next_host (line 181) | def _determine_next_host(self, env_dict: dict) -> str: method _unregister_assigned_host (line 197) | def _unregister_assigned_host(self) -> None: method confirm_remote_startup (line 201) | async def confirm_remote_startup(self) -> None: method handle_timeout (line 219) | async def handle_timeout(self) -> None: method cleanup (line 237) | def cleanup(self) -> None: method shutdown_listener (line 248) | def shutdown_listener(self) -> None: FILE: enterprise_gateway/services/processproxies/docker_swarm.py class DockerSwarmProcessProxy (line 30) | class DockerSwarmProcessProxy(ContainerProcessProxy): method __init__ (line 35) | def __init__(self, kernel_manager: RemoteKernelManager, proxy_config: ... method launch_process (line 39) | def launch_process( method get_initial_states (line 50) | def get_initial_states(self) -> set: method get_error_states (line 54) | def get_error_states(self) -> set: method _get_service (line 58) | def _get_service(self) -> Service: method _get_task (line 74) | def _get_task(self) -> dict: method get_container_status (line 93) | def get_container_status(self, iteration: int | None) -> str: method terminate_container_resources (line 130) | def terminate_container_resources(self) -> bool | None: class DockerProcessProxy (line 167) | class DockerProcessProxy(ContainerProcessProxy): method __init__ (line 170) | def __init__(self, kernel_manager: RemoteKernelManager, proxy_config: ... method launch_process (line 174) | def launch_process( method get_initial_states (line 183) | def get_initial_states(self) -> set: method get_error_states (line 187) | def get_error_states(self) -> set: method _get_container (line 191) | def _get_container(self) -> Container: method get_container_status (line 208) | def get_container_status(self, iteration: int | None) -> str: method terminate_container_resources (line 254) | def terminate_container_resources(self) -> bool | None: FILE: enterprise_gateway/services/processproxies/k8s.py function get_subject_class (line 37) | def get_subject_class(): class KubernetesProcessProxy (line 57) | class KubernetesProcessProxy(ContainerProcessProxy): method __init__ (line 68) | def __init__(self, kernel_manager: RemoteKernelManager, proxy_config: ... method launch_process (line 76) | async def launch_process( method get_initial_states (line 96) | def get_initial_states(self) -> set: method get_error_states (line 100) | def get_error_states(self) -> set: method get_container_status (line 104) | def get_container_status(self, iteration: int | None) -> str: method delete_managed_object (line 133) | def delete_managed_object(self, termination_stati: list[str]) -> bool: method terminate_container_resources (line 157) | def terminate_container_resources(self) -> bool | None: method _safe_template_substitute (line 239) | def _safe_template_substitute(self, template_str: str, variables: dict... method _determine_kernel_pod_name (line 275) | def _determine_kernel_pod_name(self, **kwargs: dict[str, Any] | None) ... method _determine_kernel_namespace (line 314) | def _determine_kernel_namespace(self, **kwargs: dict[str, Any] | None)... method _determine_kernel_service_account_name (line 342) | def _determine_kernel_service_account_name(**kwargs: dict[str, Any] | ... method _create_kernel_namespace (line 351) | def _create_kernel_namespace(self, service_account_name: str) -> str: method _create_role_binding (line 402) | def _create_role_binding(self, namespace: str, service_account_name: s... method get_process_info (line 439) | def get_process_info(self) -> dict[str, Any]: method load_process_info (line 447) | def load_process_info(self, process_info: dict[str, Any]) -> None: FILE: enterprise_gateway/services/processproxies/processproxy.py function _get_local_ip (line 93) | def _get_local_ip() -> str: class KernelChannel (line 113) | class KernelChannel(Enum): class Response (line 128) | class Response(asyncio.Event): method response (line 134) | def response(self): method response (line 138) | def response(self, value): class ResponseManager (line 144) | class ResponseManager(SingletonConfigurable): method __init__ (line 165) | def __init__(self, **kwargs: dict[str, Any] | None): method public_key (line 185) | def public_key(self) -> str: method response_address (line 195) | def response_address(self) -> str: method register_event (line 198) | def register_event(self, kernel_id: str) -> None: method get_connection_info (line 202) | async def get_connection_info(self, kernel_id: str) -> dict: method _prepare_response_socket (line 207) | def _prepare_response_socket(self) -> None: method _start_response_manager (line 254) | def _start_response_manager(self) -> None: method stop_response_manager (line 263) | def stop_response_manager(self) -> None: method _process_connections (line 272) | async def _process_connections(self) -> None: method _decode_payload (line 295) | def _decode_payload(self, data: json) -> dict: method _post_connection (line 381) | def _post_connection(self, connection_info: dict) -> None: class BaseProcessProxyABC (line 397) | class BaseProcessProxyABC(metaclass=abc.ABCMeta): method __init__ (line 405) | def __init__(self, kernel_manager: RemoteKernelManager, proxy_config: ... method launch_process (line 486) | async def launch_process(self, kernel_cmd: str, **kwargs: dict[str, An... method launch_kernel (line 537) | def launch_kernel( method cleanup (line 551) | def cleanup(self) -> None: # noqa method poll (line 555) | def poll(self) -> Any | None: method wait (line 567) | def wait(self) -> int | None: method send_signal (line 590) | def send_signal(self, signum: int) -> bool | None: method kill (line 618) | def kill(self) -> bool | None: method terminate (line 645) | def terminate(self) -> bool | None: method ip_is_local (line 667) | def ip_is_local(ip: str) -> bool: method _get_ssh_client (line 673) | def _get_ssh_client(self, host: str) -> SSHClient | None: method rsh (line 726) | def rsh(self, host: str, command: str) -> list[str]: method remote_signal (line 758) | def remote_signal(self, signum: int) -> bool | None: method local_signal (line 786) | def local_signal(self, signum: int) -> bool | None: method _enforce_authorization (line 804) | def _enforce_authorization(self, **kwargs: dict[str, Any] | None) -> N... method _raise_authorization_error (line 839) | def _raise_authorization_error(self, kernel_username: str, differentia... method get_process_info (line 851) | def get_process_info(self) -> dict[str, Any]: method load_process_info (line 861) | def load_process_info(self, process_info: dict[str, Any]) -> None: method _validate_port_range (line 873) | def _validate_port_range(self) -> None: method select_ports (line 947) | def select_ports(self, count: int) -> list[int]: method select_socket (line 970) | def select_socket(self, ip: str | None = "") -> socket: method _get_candidate_port (line 1000) | def _get_candidate_port(self) -> int: method log_and_raise (line 1010) | def log_and_raise(self, http_status_code: int | None = None, reason: s... class LocalProcessProxy (line 1035) | class LocalProcessProxy(BaseProcessProxyABC): method __init__ (line 1042) | def __init__(self, kernel_manager: RemoteKernelManager, proxy_config: ... method launch_process (line 1047) | async def launch_process( class RemoteProcessProxy (line 1070) | class RemoteProcessProxy(BaseProcessProxyABC, metaclass=abc.ABCMeta): method __init__ (line 1075) | def __init__(self, kernel_manager, proxy_config): method launch_process (line 1095) | async def launch_process(self, kernel_cmd, **kwargs): method confirm_remote_startup (line 1108) | def confirm_remote_startup(self): method detect_launch_failure (line 1112) | def detect_launch_failure(self) -> None: method _tunnel_to_kernel (line 1139) | def _tunnel_to_kernel( method _tunnel_to_port (line 1183) | def _tunnel_to_port( method _create_ssh_tunnel (line 1203) | def _create_ssh_tunnel( method _spawn_ssh_tunnel (line 1233) | def _spawn_ssh_tunnel( method _get_keep_alive_interval (line 1276) | def _get_keep_alive_interval(self, kernel_channel: KernelChannel) -> int: method receive_connection_info (line 1297) | async def receive_connection_info(self) -> bool: method _setup_connection_info (line 1325) | def _setup_connection_info(self, connect_info: dict) -> None: method _update_connection (line 1395) | def _update_connection(self, connect_info: dict) -> None: method _close_response_socket (line 1428) | def _close_response_socket(self) -> None: method _extract_pid_info (line 1439) | def _extract_pid_info(self, connect_info: dict) -> None: method handle_timeout (line 1470) | async def handle_timeout(self): method cleanup (line 1486) | def cleanup(self): method _send_listener_request (line 1499) | def _send_listener_request(self, request: dict, shutdown_socket: bool ... method send_signal (line 1534) | def send_signal(self, signum): method shutdown_listener (line 1567) | def shutdown_listener(self): method get_process_info (line 1602) | def get_process_info(self): method load_process_info (line 1618) | def load_process_info(self, process_info): method log_and_raise (line 1635) | def log_and_raise(self, http_status_code: int | None = None, reason: s... method get_current_time (line 1644) | def get_current_time(): method get_time_diff (line 1649) | def get_time_diff(time1, time2): FILE: enterprise_gateway/services/processproxies/spark_operator.py class SparkOperatorProcessProxy (line 11) | class SparkOperatorProcessProxy(CustomResourceProcessProxy): method __init__ (line 20) | def __init__(self, kernel_manager: RemoteKernelManager, proxy_config: ... FILE: enterprise_gateway/services/processproxies/yarn.py class YarnClusterProcessProxy (line 42) | class YarnClusterProcessProxy(RemoteProcessProxy): method __init__ (line 50) | def __init__(self, kernel_manager: RemoteKernelManager, proxy_config: ... method _initialize_resource_manager (line 84) | def _initialize_resource_manager(self, **kwargs: dict[str, Any] | None... method launch_process (line 126) | async def launch_process( method confirm_yarn_queue_availability (line 154) | def confirm_yarn_queue_availability(self, **kwargs: dict[str, Any] | N... method handle_yarn_queue_timeout (line 256) | def handle_yarn_queue_timeout(self) -> None: method poll (line 270) | def poll(self) -> bool | None: method send_signal (line 289) | def send_signal(self, signum: int) -> bool | None: method kill (line 305) | def kill(self) -> bool | None: method cleanup (line 334) | def cleanup(self) -> None: method confirm_remote_startup (line 355) | async def confirm_remote_startup(self) -> None: method handle_timeout (line 391) | async def handle_timeout(self) -> None: method get_process_info (line 426) | def get_process_info(self) -> dict[str, Any]: method load_process_info (line 432) | def load_process_info(self, process_info: dict[str, Any]) -> None: method _get_application_state (line 437) | def _get_application_state(self) -> str: method _get_application_id (line 454) | def _get_application_id(self, ignore_final_states: bool = False) -> str: method _query_app_by_name (line 484) | def _query_app_by_name(self, kernel_id: str) -> dict: method _query_app_by_id (line 533) | def _query_app_by_id(self, app_id: str) -> dict: method _query_app_state_by_id (line 553) | def _query_app_state_by_id(self, app_id: str) -> str: method _kill_app_by_id (line 573) | def _kill_app_by_id(self, app_id: str) -> Response: FILE: enterprise_gateway/services/sessions/handlers.py class SessionRootHandler (line 13) | class SessionRootHandler( method get (line 20) | async def get(self) -> None: FILE: enterprise_gateway/services/sessions/kernelsessionmanager.py class KernelSessionManager (line 26) | class KernelSessionManager(LoggingConfigurable): method _session_persistence_default (line 55) | def _session_persistence_default(self) -> bool: method _persistence_root_default (line 72) | def _persistence_root_default(self) -> str: method __init__ (line 75) | def __init__(self, kernel_manager: RemoteMappingKernelManager, **kwarg... method create_session (line 82) | def create_session(self, kernel_id: str, **kwargs) -> None: method refresh_session (line 113) | def refresh_session(self, kernel_id: str) -> None: method _save_session (line 130) | def _save_session(self, kernel_id: str, kernel_session: dict) -> None: method start_session (line 147) | def start_session(self, kernel_id: str) -> bool | None: method start_sessions (line 154) | def start_sessions(self) -> None: method _start_session (line 182) | def _start_session(self, kernel_session: dict) -> bool: method delete_session (line 198) | def delete_session(self, kernel_id: str) -> None: method _delete_sessions (line 207) | def _delete_sessions(self, kernel_ids: list[str]) -> None: method pre_save_transformation (line 228) | def pre_save_transformation(session: dict) -> dict: method post_load_transformation (line 241) | def post_load_transformation(session: dict) -> dict: method load_sessions (line 254) | def load_sessions(self) -> None: method load_session (line 262) | def load_session(self, kernel_id: str) -> None: method delete_sessions (line 271) | def delete_sessions(self, kernel_ids: list[str]) -> None: method save_session (line 278) | def save_session(self, kernel_id: str) -> None: method active_sessions (line 285) | def active_sessions(self, username: str) -> int: method get_kernel_username (line 303) | def get_kernel_username(**kwargs) -> str: class FileKernelSessionManager (line 330) | class FileKernelSessionManager(KernelSessionManager): method _persistence_root_default (line 338) | def _persistence_root_default(self) -> str: method __init__ (line 341) | def __init__(self, kernel_manager: RemoteMappingKernelManager, **kwarg... method delete_sessions (line 347) | def delete_sessions(self, kernel_ids: list[str]) -> None: method save_session (line 356) | def save_session(self, kernel_id: str) -> None: method load_sessions (line 366) | def load_sessions(self) -> None: method load_session (line 377) | def load_session(self, kernel_id: str) -> None: method _load_session_from_file (line 383) | def _load_session_from_file(self, file_name: str) -> None: method _get_sessions_loc (line 401) | def _get_sessions_loc(self) -> str: class WebhookKernelSessionManager (line 408) | class WebhookKernelSessionManager(KernelSessionManager): method _webhook_url_default (line 427) | def _webhook_url_default(self) -> str | None: method _webhook_username_default (line 439) | def _webhook_username_default(self) -> str | None: method _webhook_password_default (line 451) | def _webhook_password_default(self) -> str | None: method _auth_type_default (line 464) | def _auth_type_default(self) -> str | None: method __init__ (line 467) | def __init__(self, kernel_manager: RemoteMappingKernelManager, **kwarg... method delete_sessions (line 486) | def delete_sessions(self, kernel_ids: list[str]) -> None: method save_session (line 500) | def save_session(self, kernel_id: str) -> None: method load_sessions (line 517) | def load_sessions(self) -> None: method load_session (line 530) | def load_session(self, kernel_id: str) -> None: method _load_session_from_response (line 544) | def _load_session_from_response(self, kernel_session: dict) -> None: FILE: enterprise_gateway/services/sessions/sessionmanager.py class SessionManager (line 15) | class SessionManager(LoggingConfigurable): method __init__ (line 34) | def __init__(self, kernel_manager: RemoteMappingKernelManager, *args, ... method session_exists (line 41) | def session_exists(self, path: str, *args, **kwargs) -> bool: method new_session_id (line 55) | def new_session_id(self) -> str: method create_session (line 59) | async def create_session( method save_session (line 90) | def save_session( method get_session_by_key (line 121) | def get_session_by_key(self, key: Hashable, val: Any, *args, **kwargs)... method get_session (line 139) | def get_session(self, **kwargs) -> dict: method update_session (line 182) | def update_session(self, session_id: str, *args, **kwargs) -> None: method row_to_model (line 219) | def row_to_model(self, row: dict, *args, **kwargs) -> dict: method list_sessions (line 243) | def list_sessions(self, *args, **kwargs) -> List[dict]: method delete_session (line 254) | async def delete_session(self, session_id: str, *args, **kwargs) -> None: FILE: enterprise_gateway/tests/__init__.py function teardown (line 6) | def teardown(): FILE: enterprise_gateway/tests/test_enterprise_gateway.py class TestEnterpriseGateway (line 18) | class TestEnterpriseGateway(TestHandlers): method setUp (line 19) | def setUp(self): method test_max_kernels_per_user (line 26) | def test_max_kernels_per_user(self): method test_authorization (line 73) | def test_authorization(self): method test_port_range (line 100) | def test_port_range(self): method test_dynamic_updates (line 154) | def test_dynamic_updates(self): method test_kernel_id_env_var (line 204) | def test_kernel_id_env_var(self): FILE: enterprise_gateway/tests/test_gatewayapp.py class TestGatewayAppConfig (line 17) | class TestGatewayAppConfig(unittest.TestCase): method setUp (line 20) | def setUp(self): method tearDown (line 24) | def tearDown(self): method _assert_envs_to_traitlets (line 29) | def _assert_envs_to_traitlets(self, env_prefix: str): method test_config_env_vars_bc (line 56) | def test_config_env_vars_bc(self): method test_config_env_vars (line 79) | def test_config_env_vars(self): method test_ssl_options_no_config (line 105) | def test_ssl_options_no_config(self): method test_authorizer_class_default (line 110) | def test_authorizer_class_default(self): method test_authorizer_class_env_var (line 123) | def test_authorizer_class_env_var(self): class TestGatewayAppBase (line 161) | class TestGatewayAppBase(AsyncHTTPTestCase, ExpectLog): method tearDown (line 171) | def tearDown(self): method get_app (line 178) | def get_app(self): method setup_app (line 189) | def setup_app(self): method setup_configurables (line 195) | def setup_configurables(self): FILE: enterprise_gateway/tests/test_handlers.py class TestHandlers (line 17) | class TestHandlers(TestGatewayAppBase): method setup_app (line 22) | def setup_app(self): method tearDown (line 33) | def tearDown(self): method spawn_kernel (line 47) | def spawn_kernel(self, kernel_body="{}"): method execute_request (line 76) | def execute_request(self, code): method await_stream (line 110) | def await_stream(self, ws): class TestDefaults (line 121) | class TestDefaults(TestHandlers): method test_startup (line 125) | def test_startup(self): method test_headless (line 132) | def test_headless(self): method test_check_origin (line 142) | def test_check_origin(self): method test_auth_token (line 164) | def test_auth_token(self): method test_cors_headers (line 252) | def test_cors_headers(self): method test_max_kernels (line 277) | def test_max_kernels(self): method test_get_api (line 308) | def test_get_api(self): method test_get_kernelspecs (line 317) | def test_get_kernelspecs(self): method test_get_kernels (line 326) | def test_get_kernels(self): method test_kernel_comm (line 349) | def test_kernel_comm(self): method test_no_discovery (line 386) | def test_no_discovery(self): method test_crud_sessions (line 395) | def test_crud_sessions(self): method test_json_errors (line 435) | def test_json_errors(self): method test_kernel_env (line 460) | def test_kernel_env(self): method test_kernel_defaults (line 494) | def test_kernel_defaults(self): method test_get_swagger_yaml_spec (line 533) | def test_get_swagger_yaml_spec(self): method test_get_swagger_json_spec (line 539) | def test_get_swagger_json_spec(self): method test_kernel_env_auth_token (line 545) | def test_kernel_env_auth_token(self): class TestCustomDefaultKernel (line 561) | class TestCustomDefaultKernel(TestHandlers): method setup_app (line 564) | def setup_app(self): method test_default_kernel_name (line 568) | def test_default_kernel_name(self): class TestEnableDiscovery (line 578) | class TestEnableDiscovery(TestHandlers): method setup_configurables (line 581) | def setup_configurables(self): method test_enable_kernel_list (line 586) | def test_enable_kernel_list(self): class TestBaseURL (line 600) | class TestBaseURL(TestHandlers): method setup_app (line 603) | def setup_app(self): method setup_configurables (line 607) | def setup_configurables(self): method test_base_url (line 612) | def test_base_url(self): class TestRelativeBaseURL (line 627) | class TestRelativeBaseURL(TestHandlers): method setup_app (line 630) | def setup_app(self): method test_base_url (line 635) | def test_base_url(self): class TestWildcardEnvs (line 646) | class TestWildcardEnvs(TestHandlers): method setup_app (line 649) | def setup_app(self): method test_kernel_wildcard_env (line 656) | def test_kernel_wildcard_env(self): FILE: enterprise_gateway/tests/test_kernelspec_cache.py function mkdir (line 19) | def mkdir(tmp_path, *parts): function environ (line 37) | def environ( function _install_kernelspec (line 70) | def _install_kernelspec(kernels_dir, kernel_name): function _modify_kernelspec (line 82) | def _modify_kernelspec(kernelspec_dir, kernel_name): function setup_kernelspecs (line 97) | def setup_kernelspecs(environ, kernelspec_location): function kernel_spec_manager (line 105) | def kernel_spec_manager(environ, setup_kernelspecs): function kernel_spec_cache (line 110) | def kernel_spec_cache(is_enabled, kernel_spec_manager): function is_enabled (line 120) | def is_enabled(request): function tests_get_all_specs (line 124) | async def tests_get_all_specs(kernel_spec_cache): function tests_get_named_spec (line 129) | async def tests_get_named_spec(kernel_spec_cache): function tests_get_modified_spec (line 134) | async def tests_get_modified_spec(kernel_spec_cache): function tests_add_spec (line 145) | async def tests_add_spec(kernel_spec_cache, kernelspec_location, other_k... function tests_remove_spec (line 178) | async def tests_remove_spec(kernel_spec_cache): function tests_get_missing (line 191) | async def tests_get_missing(kernel_spec_cache): FILE: enterprise_gateway/tests/test_mixins.py class SuperTokenAuthHandler (line 19) | class SuperTokenAuthHandler: method prepare (line 24) | def prepare(self): class TestableTokenAuthHandler (line 29) | class TestableTokenAuthHandler(TokenAuthorizationMixin, SuperTokenAuthHa... method __init__ (line 34) | def __init__(self, token=""): method send_error (line 40) | def send_error(self, status_code): method get_argument (line 43) | def get_argument(self, name, default=""): class TestTokenAuthMixin (line 47) | class TestTokenAuthMixin(unittest.TestCase): method setUp (line 50) | def setUp(self): method test_no_token_required (line 54) | def test_no_token_required(self): method test_missing_token (line 61) | def test_missing_token(self): method test_valid_header_token (line 69) | def test_valid_header_token(self): method test_wrong_header_token (line 77) | def test_wrong_header_token(self): method test_valid_url_token (line 85) | def test_valid_url_token(self): method test_wrong_url_token (line 94) | def test_wrong_url_token(self): method test_differing_tokens_valid_url (line 103) | def test_differing_tokens_valid_url(self): method test_differing_tokens_wrong_url (line 112) | def test_differing_tokens_wrong_url(self): class TestableJSONErrorsHandler (line 122) | class TestableJSONErrorsHandler(JSONErrorsMixin): method __init__ (line 127) | def __init__(self): method finish (line 133) | def finish(self, response): method set_status (line 136) | def set_status(self, status_code, reason=None): method set_header (line 140) | def set_header(self, name, value): class TestJSONErrorsMixin (line 144) | class TestJSONErrorsMixin(unittest.TestCase): method setUp (line 147) | def setUp(self): method test_status (line 151) | def test_status(self): method test_custom_status (line 159) | def test_custom_status(self): method test_log_message (line 169) | def test_log_message(self): FILE: enterprise_gateway/tests/test_process_proxy.py class TestParseProhibitedIds (line 18) | class TestParseProhibitedIds(unittest.TestCase): method test_default_value (line 21) | def test_default_value(self): method test_multiple_values (line 27) | def test_multiple_values(self): method test_values_with_spaces (line 32) | def test_values_with_spaces(self): method test_invalid_entries_raise_value_error (line 37) | def test_invalid_entries_raise_value_error(self): method test_username_instead_of_uid_raises_value_error (line 44) | def test_username_instead_of_uid_raises_value_error(self): method test_empty_entries_ignored (line 50) | def test_empty_entries_ignored(self): class TestContainerProxyProhibitedIds (line 56) | class TestContainerProxyProhibitedIds(unittest.TestCase): method setUp (line 59) | def setUp(self): method _make_kwargs (line 72) | def _make_kwargs(self, uid=None, gid=None): method test_valid_uid_gid_passes (line 80) | def test_valid_uid_gid_passes(self): method test_defaults_used_when_not_provided (line 86) | def test_defaults_used_when_not_provided(self): method test_prohibited_uid_exact_match (line 92) | def test_prohibited_uid_exact_match(self): method test_prohibited_gid_exact_match (line 98) | def test_prohibited_gid_exact_match(self): method test_trailing_whitespace_uid_denied (line 104) | def test_trailing_whitespace_uid_denied(self): method test_leading_whitespace_uid_denied (line 110) | def test_leading_whitespace_uid_denied(self): method test_leading_zeros_uid_denied (line 116) | def test_leading_zeros_uid_denied(self): method test_plus_sign_uid_denied (line 122) | def test_plus_sign_uid_denied(self): method test_non_numeric_uid_rejected (line 128) | def test_non_numeric_uid_rejected(self): method test_empty_uid_rejected (line 134) | def test_empty_uid_rejected(self): method test_negative_uid_rejected (line 140) | def test_negative_uid_rejected(self): method test_negative_gid_rejected (line 147) | def test_negative_gid_rejected(self): method test_uid_exceeding_uint32_max_rejected (line 154) | def test_uid_exceeding_uint32_max_rejected(self): method test_gid_exceeding_uint32_max_rejected (line 161) | def test_gid_exceeding_uint32_max_rejected(self): method test_uid_at_uint32_max_allowed (line 168) | def test_uid_at_uint32_max_allowed(self): method test_normalized_values_stored (line 173) | def test_normalized_values_stored(self): method test_both_uid_and_gid_checked_independently (line 179) | def test_both_uid_and_gid_checked_independently(self): method test_trailing_whitespace_gid_denied (line 186) | def test_trailing_whitespace_gid_denied(self): class TestKubernetesProcessProxy (line 193) | class TestKubernetesProcessProxy(unittest.TestCase): method setUp (line 196) | def setUp(self): method test_valid_template_substitution (line 213) | def test_valid_template_substitution(self): method test_missing_variables_fallback (line 235) | def test_missing_variables_fallback(self): method test_malicious_template_injection_prevention (line 252) | def test_malicious_template_injection_prevention(self): method test_pod_name_determination_with_templates (line 290) | def test_pod_name_determination_with_templates(self): method test_pod_name_determination_with_malicious_template (line 305) | def test_pod_name_determination_with_malicious_template(self): method test_pod_name_determination_with_missing_variables (line 322) | def test_pod_name_determination_with_missing_variables(self): method test_pod_name_without_template (line 339) | def test_pod_name_without_template(self): method test_pod_name_dns_normalization (line 348) | def test_pod_name_dns_normalization(self): method test_regex_pattern_validation (line 363) | def test_regex_pattern_validation(self): FILE: enterprise_gateway/tests/test_yaml_injection.py function yaml_safe_str (line 43) | def yaml_safe_str(value): function _build_keywords (line 53) | def _build_keywords(env_overrides: dict) -> dict: function _render_pod_template (line 67) | def _render_pod_template(keywords: dict) -> str: function _base_env (line 83) | def _base_env() -> dict: class TestYamlSafeStrFilter (line 95) | class TestYamlSafeStrFilter(unittest.TestCase): method test_normal_string (line 98) | def test_normal_string(self): method test_string_with_quotes (line 102) | def test_string_with_quotes(self): method test_string_with_newlines_escaped (line 108) | def test_string_with_newlines_escaped(self): method test_document_boundary_escaped (line 114) | def test_document_boundary_escaped(self): method test_end_of_document_marker_escaped (line 120) | def test_end_of_document_marker_escaped(self): method test_none_serialized_as_yaml_null (line 125) | def test_none_serialized_as_yaml_null(self): method test_bool_serialized_as_yaml_bool (line 131) | def test_bool_serialized_as_yaml_bool(self): method test_numeric_serialized_correctly (line 139) | def test_numeric_serialized_correctly(self): method test_dict_rendered_as_flow_mapping (line 147) | def test_dict_rendered_as_flow_mapping(self): method test_empty_string (line 153) | def test_empty_string(self): method test_image_name_with_tag (line 158) | def test_image_name_with_tag(self): class TestEnvVarParsing (line 164) | class TestEnvVarParsing(unittest.TestCase): method test_scalar_vars_remain_strings (line 167) | def test_scalar_vars_remain_strings(self): method test_volume_mounts_parsed_as_list (line 175) | def test_volume_mounts_parsed_as_list(self): method test_volumes_parsed_as_list (line 183) | def test_volumes_parsed_as_list(self): method test_non_list_volume_rejected (line 190) | def test_non_list_volume_rejected(self): method test_list_of_strings_volume_rejected (line 195) | def test_list_of_strings_volume_rejected(self): method test_mixed_list_volume_rejected (line 201) | def test_mixed_list_volume_rejected(self): method test_yaml_safe_load_not_applied_to_scalars (line 207) | def test_yaml_safe_load_not_applied_to_scalars(self): class TestSecurityContextInjection (line 214) | class TestSecurityContextInjection(unittest.TestCase): method test_security_context_not_overridden (line 217) | def test_security_context_not_overridden(self): method test_injection_via_kernel_image (line 231) | def test_injection_via_kernel_image(self): method test_injection_via_kernel_namespace (line 242) | def test_injection_via_kernel_namespace(self): method test_injection_via_volume_mounts_string_list_blocked_at_l1 (line 253) | def test_injection_via_volume_mounts_string_list_blocked_at_l1(self): method test_injection_via_volume_mounts_blocked_at_l2 (line 262) | def test_injection_via_volume_mounts_blocked_at_l2(self): method test_all_rendered_kinds_are_allowed (line 289) | def test_all_rendered_kinds_are_allowed(self): method test_duplicate_pod_kind_detected (line 302) | def test_duplicate_pod_kind_detected(self): class TestNormalOperation (line 320) | class TestNormalOperation(unittest.TestCase): method test_basic_pod_renders_correctly (line 323) | def test_basic_pod_renders_correctly(self): method test_working_dir_set_correctly (line 337) | def test_working_dir_set_correctly(self): method test_resource_limits_rendered (line 346) | def test_resource_limits_rendered(self): method test_security_context_with_uid_gid (line 362) | def test_security_context_with_uid_gid(self): method test_volume_mounts_rendered (line 373) | def test_volume_mounts_rendered(self): class TestSparkOperatorTemplate (line 390) | class TestSparkOperatorTemplate(unittest.TestCase): method _render_operator_template (line 393) | def _render_operator_template(self, keywords: dict) -> str: method test_injection_via_kernel_image_blocked (line 407) | def test_injection_via_kernel_image_blocked(self): method test_normal_spark_app_renders (line 426) | def test_normal_spark_app_renders(self): FILE: etc/docker/kernel-image-puller/image_fetcher.py class ImageNameFetcher (line 13) | class ImageNameFetcher(metaclass=abc.ABCMeta): method fetch_image_names (line 19) | def fetch_image_names(self) -> set[str]: class KernelSpecsFetcher (line 28) | class KernelSpecsFetcher(ImageNameFetcher): method __init__ (line 35) | def __init__(self, logger): method get_kernel_specs (line 46) | def get_kernel_specs(self): method fetch_image_names (line 60) | def fetch_image_names(self) -> set[str]: class StaticListFetcher (line 96) | class StaticListFetcher(ImageNameFetcher): method __init__ (line 112) | def __init__(self, logger) -> None: method fetch_image_names (line 118) | def fetch_image_names(self) -> set[str]: class ConfigMapImagesFetcher (line 126) | class ConfigMapImagesFetcher(ImageNameFetcher): method __init__ (line 146) | def __init__(self, logger) -> None: method fetch_image_names (line 158) | def fetch_image_names(self) -> set[str]: class CombinedImagesFetcher (line 185) | class CombinedImagesFetcher(ImageNameFetcher): method __init__ (line 202) | def __init__(self, logger): method fetch_image_names (line 215) | def fetch_image_names(self) -> set[str]: FILE: etc/docker/kernel-image-puller/kernel_image_puller.py class KernelImagePuller (line 20) | class KernelImagePuller: method __init__ (line 31) | def __init__(self, kip_logger, image_fetcher): method load_static_env_values (line 47) | def load_static_env_values(self): method start (line 85) | def start(self): method initialize_workers (line 106) | def initialize_workers(self): method get_container_runtime (line 114) | def get_container_runtime(self) -> Optional[str]: method is_runtime_endpoint_recognized (line 123) | def is_runtime_endpoint_recognized(self) -> bool: method fetch_image_names (line 130) | def fetch_image_names(self): method image_puller (line 147) | def image_puller(self): method pull_image (line 178) | def pull_image(self, image_name): method get_absolute_image_name (line 212) | def get_absolute_image_name(self, image_name: str) -> str: method image_exists (line 223) | def image_exists(self, image_name: str) -> bool: method download_image (line 245) | def download_image(self, image_name: str) -> bool: method execute_cmd (line 266) | def execute_cmd(self, argv: List[str]) -> bool: FILE: etc/kernel-launchers/R/scripts/server_listener.py function _encrypt (line 33) | def _encrypt(connection_info_str, public_key): function return_connection_info (line 61) | def return_connection_info( function prepare_comm_socket (line 109) | def prepare_comm_socket(lower_port, upper_port): function _select_ports (line 123) | def _select_ports(count, lower_port, upper_port): function _select_socket (line 139) | def _select_socket(lower_port, upper_port): function _get_candidate_port (line 161) | def _get_candidate_port(lower_port, upper_port): function get_server_request (line 172) | def get_server_request(sock): function server_listener (line 198) | def server_listener(sock, parent_pid): function setup_server_listener (line 219) | def setup_server_listener( FILE: etc/kernel-launchers/docker/scripts/launch_docker.py function launch_docker_kernel (line 21) | def launch_docker_kernel( FILE: etc/kernel-launchers/kubernetes/scripts/launch_kubernetes.py function yaml_safe_str (line 30) | def yaml_safe_str(value): function generate_kernel_pod_yaml (line 46) | def generate_kernel_pod_yaml(keywords): function extend_pod_env (line 72) | def extend_pod_env(pod_def: dict) -> dict: function _parse_k8s_exception (line 98) | def _parse_k8s_exception(exc: ApiException) -> str: function launch_kubernetes_kernel (line 114) | def launch_kubernetes_kernel( function _get_spark_resources (line 310) | def _get_spark_resources(pod_template: Dict) -> str: FILE: etc/kernel-launchers/operators/scripts/launch_custom_resource.py function yaml_safe_str (line 18) | def yaml_safe_str(value): function generate_kernel_custom_resource_yaml (line 34) | def generate_kernel_custom_resource_yaml(kernel_crd_template, keywords): function extend_operator_env (line 55) | def extend_operator_env(op_def: dict, sub_spec: str) -> dict: function launch_custom_resource_kernel (line 77) | def launch_custom_resource_kernel( FILE: etc/kernel-launchers/python/scripts/launch_ipykernel.py class ExceptionThread (line 44) | class ExceptionThread(Thread): method __init__ (line 47) | def __init__(self, target): method run (line 53) | def run(self): function initialize_namespace (line 61) | def initialize_namespace(namespace, cluster_type="spark"): class WaitingForSparkSessionToBeInitialized (line 128) | class WaitingForSparkSessionToBeInitialized: method __init__ (line 140) | def __init__(self, global_variable_name, init_thread, namespace): method __getattr__ (line 149) | def __getattr__(self, name): function _validate_port_range (line 166) | def _validate_port_range(port_range): function determine_connection_file (line 193) | def determine_connection_file(conn_file, kid): function _encrypt (line 207) | def _encrypt(connection_info_str, public_key): function return_connection_info (line 235) | def return_connection_info( function prepare_comm_socket (line 283) | def prepare_comm_socket(lower_port, upper_port): function _select_ports (line 297) | def _select_ports(count, lower_port, upper_port): function _select_socket (line 313) | def _select_socket(lower_port, upper_port): function _get_candidate_port (line 336) | def _get_candidate_port(lower_port, upper_port): function get_server_request (line 347) | def get_server_request(sock): function cancel_spark_jobs (line 373) | def cancel_spark_jobs(sig, frame): function server_listener (line 393) | def server_listener(sock, parent_pid, cluster_type): function import_item (line 416) | def import_item(name): function start_ipython (line 445) | def start_ipython( FILE: etc/kernel-resources/ir/kernel.js method handler (line 9) | handler(cm) { method handler (line 18) | handler(cm) { method handler (line 27) | handler(cm, cell) { function add_edit_shortcut (line 48) | function add_edit_shortcut(notebook, actions, keyboard_manager, edit_act... function render_math (line 66) | function render_math(pager, html) { method onload (line 82) | onload() { FILE: website/js/bootstrap.js function transitionEnd (line 34) | function transitionEnd() { function removeElement (line 126) | function removeElement() { function Plugin (line 142) | function Plugin(option) { function Plugin (line 247) | function Plugin(option) { function Plugin (line 466) | function Plugin(option) { function getTargetFromTrigger (line 685) | function getTargetFromTrigger($trigger) { function Plugin (line 697) | function Plugin(option) { function clearMenus (line 829) | function clearMenus(e) { function getParent (line 848) | function getParent($this) { function Plugin (line 865) | function Plugin(option) { function Plugin (line 1179) | function Plugin(option, _relatedTarget) { function complete (line 1521) | function complete() { function Plugin (line 1673) | function Plugin(option) { function Plugin (line 1787) | function Plugin(option) { function ScrollSpy (line 1830) | function ScrollSpy(element, options) { function Plugin (line 1953) | function Plugin(option) { function next (line 2060) | function next() { function Plugin (line 2106) | function Plugin(option) { function Plugin (line 2263) | function Plugin(option) { FILE: website/js/cbpAnimatedHeader.js function init (line 18) | function init() { function scrollPage (line 27) | function scrollPage() { function scrollY (line 38) | function scrollY() { FILE: website/js/classie.js function classReg (line 20) | function classReg( className ) { function toggleClass (line 53) | function toggleClass( elem, c ) { FILE: website/js/jquery.js function r (line 2) | function r(a){var b=a.length,c=m.type(a);return"function"===c||m.isWindo... function fb (line 2) | function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)... function gb (line 2) | function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLengt... function hb (line 2) | function hb(a){return a[u]=!0,a} function ib (line 2) | function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){re... function jb (line 2) | function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[... function kb (line 2) | function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sou... function lb (line 2) | function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"... function mb (line 2) | function mb(a){return function(b){var c=b.nodeName.toLowerCase();return(... function nb (line 2) | function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,... function ob (line 2) | function ob(a){return a&&typeof a.getElementsByTagName!==C&&a} function pb (line 2) | function pb(){} function qb (line 2) | function qb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d} function rb (line 2) | function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.firs... function sb (line 2) | function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e-... function tb (line 2) | function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c} function ub (line 2) | function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(... function vb (line 2) | function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)... function wb (line 2) | function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.r... function xb (line 2) | function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var... function w (line 2) | function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){retur... function D (line 2) | function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a} function G (line 2) | function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b... function I (line 2) | function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded... function J (line 2) | function J(){(y.addEventListener||"load"===event.type||"complete"===y.re... function O (line 2) | function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace... function P (line 2) | function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&... function Q (line 2) | function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType... function R (line 3) | function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a... function ab (line 3) | function ab(){return!0} function bb (line 3) | function bb(){return!1} function cb (line 3) | function cb(){try{return y.activeElement}catch(a){}} function db (line 3) | function db(a){var b=eb.split("|"),c=a.createDocumentFragment();if(c.cre... function ub (line 3) | function ub(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getEl... function vb (line 3) | function vb(a){W.test(a.type)&&(a.defaultChecked=a.checked)} function wb (line 3) | function wb(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeTyp... function xb (line 3) | function xb(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a} function yb (line 3) | function yb(a){var b=pb.exec(a.type);return b?a.type=b[1]:a.removeAttrib... function zb (line 3) | function zb(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval"... function Ab (line 3) | function Ab(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a)... function Bb (line 3) | function Bb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCas... function Eb (line 3) | function Eb(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getD... function Fb (line 3) | function Fb(a){var b=y,c=Db[a];return c||(c=Eb(a,b),"none"!==c&&c||(Cb=(... function Lb (line 3) | function Lb(a,b){return{get:function(){var c=a();if(null!=c)return c?voi... function i (line 3) | function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&... function Ub (line 3) | function Ub(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.sl... function Vb (line 3) | function Vb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.styl... function Wb (line 3) | function Wb(a,b,c){var d=Pb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[... function Xb (line 3) | function Xb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===... function Yb (line 3) | function Yb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f... function Zb (line 3) | function Zb(a,b,c,d,e){return new Zb.prototype.init(a,b,c,d,e)} function fc (line 4) | function fc(){return setTimeout(function(){$b=void 0}),$b=m.now()} function gc (line 4) | function gc(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d[... function hc (line 4) | function hc(a,b,c){for(var d,e=(ec[b]||[]).concat(ec["*"]),f=0,g=e.lengt... function ic (line 4) | function ic(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeTyp... function jc (line 4) | function jc(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a... function kc (line 4) | function kc(a,b,c){var d,e,f=0,g=dc.length,h=m.Deferred().always(functio... function Lc (line 4) | function Lc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var ... function Mc (line 4) | function Mc(a,b,c,d){var e={},f=a===Ic;function g(h){var i;return e[h]=!... function Nc (line 4) | function Nc(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)voi... function Oc (line 4) | function Oc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[... function Pc (line 4) | function Pc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])fo... function x (line 4) | function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=v... function Vc (line 4) | function Vc(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rc.... function Zc (line 4) | function Zc(){try{return new a.XMLHttpRequest}catch(b){}} function $c (line 4) | function $c(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(... function dd (line 4) | function dd(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.pa...