SYMBOL INDEX (2084 symbols across 118 files) FILE: docker/api/build.py class BuildApiMixin (line 11) | class BuildApiMixin: method build (line 12) | def build(self, path=None, tag=None, quiet=False, fileobj=None, method prune_builds (line 278) | def prune_builds(self, filters=None, keep_storage=None, all=None): method _set_auth_headers (line 321) | def _set_auth_headers(self, headers): function process_dockerfile (line 355) | def process_dockerfile(dockerfile, path): FILE: docker/api/client.py class APIClient (line 57) | class APIClient( method __init__ (line 115) | def __init__(self, base_url=None, version=None, method _retrieve_server_version (line 221) | def _retrieve_server_version(self): method _set_request_timeout (line 234) | def _set_request_timeout(self, kwargs): method _post (line 241) | def _post(self, url, **kwargs): method _get (line 245) | def _get(self, url, **kwargs): method _put (line 249) | def _put(self, url, **kwargs): method _delete (line 253) | def _delete(self, url, **kwargs): method _url (line 256) | def _url(self, pathfmt, *args, **kwargs): method _raise_for_status (line 272) | def _raise_for_status(self, response): method _result (line 279) | def _result(self, response, json=False, binary=False): method _post_json (line 289) | def _post_json(self, url, data, **kwargs): method _attach_params (line 305) | def _attach_params(self, override=None): method _attach_websocket (line 313) | def _attach_websocket(self, container, params=None): method _create_websocket_connection (line 321) | def _create_websocket_connection(self, url): method _get_raw_response_socket (line 333) | def _get_raw_response_socket(self, response): method _stream_helper (line 355) | def _stream_helper(self, response, decode=False): method _multiplexed_buffer_helper (line 376) | def _multiplexed_buffer_helper(self, response): method _multiplexed_response_stream_helper (line 392) | def _multiplexed_response_stream_helper(self, response): method _stream_raw_result (line 413) | def _stream_raw_result(self, response, chunk_size=1, decode=True): method _read_from_socket (line 424) | def _read_from_socket(self, response, stream, tty=True, demux=False): method _disable_socket_timeout (line 449) | def _disable_socket_timeout(self, socket): method _check_is_tty (line 478) | def _check_is_tty(self, container): method _get_result (line 482) | def _get_result(self, container, stream, res): method _get_result_tty (line 485) | def _get_result_tty(self, stream, res, is_tty): method _unmount (line 501) | def _unmount(self, *args): method get_adapter (line 505) | def get_adapter(self, url): method api_version (line 515) | def api_version(self): method reload_config (line 518) | def reload_config(self, dockercfg_path=None): FILE: docker/api/config.py class ConfigApiMixin (line 6) | class ConfigApiMixin: method create_config (line 8) | def create_config(self, name, data, labels=None, templating=None): method inspect_config (line 41) | def inspect_config(self, id): method remove_config (line 59) | def remove_config(self, id): method configs (line 78) | def configs(self, filters=None): FILE: docker/api/container.py class ContainerApiMixin (line 14) | class ContainerApiMixin: method attach (line 16) | def attach(self, container, stdout=True, stderr=True, method attach_socket (line 70) | def attach_socket(self, container, params=None, ws=False): method commit (line 115) | def commit(self, container, repository=None, tag=None, message=None, method containers (line 152) | def containers(self, quiet=False, all=False, trunc=False, latest=False, method create_container (line 221) | def create_container(self, image, command=None, hostname=None, user=None, method create_container_config (line 442) | def create_container_config(self, *args, **kwargs): method create_container_from_config (line 445) | def create_container_from_config(self, config, name=None, platform=None): method create_host_config (line 459) | def create_host_config(self, *args, **kwargs): method create_networking_config (line 619) | def create_networking_config(self, *args, **kwargs): method create_endpoint_config (line 645) | def create_endpoint_config(self, *args, **kwargs): method diff (line 682) | def diff(self, container): method export (line 702) | def export(self, container, chunk_size=DEFAULT_DATA_CHUNK_SIZE): method get_archive (line 725) | def get_archive(self, container, path, chunk_size=DEFAULT_DATA_CHUNK_S... method inspect_container (line 778) | def inspect_container(self, container): method kill (line 798) | def kill(self, container, signal=None): method logs (line 821) | def logs(self, container, stdout=True, stderr=True, stream=False, method pause (line 904) | def pause(self, container): method port (line 920) | def port(self, container, private_port): method put_archive (line 970) | def put_archive(self, container, path, data): method prune_containers (line 995) | def prune_containers(self, filters=None): method remove_container (line 1017) | def remove_container(self, container, v=False, link=False, force=False): method rename (line 1040) | def rename(self, container, name): method resize (line 1058) | def resize(self, container, height, width): method restart (line 1077) | def restart(self, container, timeout=10): method start (line 1101) | def start(self, container, *args, **kwargs): method stats (line 1139) | def stats(self, container, decode=None, stream=True, one_shot=None): method stop (line 1187) | def stop(self, container, timeout=None): method top (line 1215) | def top(self, container, ps_args=None): method unpause (line 1237) | def unpause(self, container): method update_container (line 1250) | def update_container( method wait (line 1315) | def wait(self, container, timeout=None, condition=None): FILE: docker/api/daemon.py class DaemonApiMixin (line 7) | class DaemonApiMixin: method df (line 9) | def df(self): method events (line 24) | def events(self, since=None, until=None, filters=None, decode=None): method info (line 83) | def info(self): method login (line 97) | def login(self, username, password=None, email=None, registry=None, method ping (line 154) | def ping(self): method version (line 168) | def version(self, api_version=True): FILE: docker/api/exec_api.py class ExecApiMixin (line 5) | class ExecApiMixin: method exec_create (line 7) | def exec_create(self, container, cmd, stdout=True, stderr=True, method exec_inspect (line 80) | def exec_inspect(self, exec_id): method exec_resize (line 99) | def exec_resize(self, exec_id, height=None, width=None): method exec_start (line 118) | def exec_start(self, exec_id, detach=False, tty=False, stream=False, FILE: docker/api/image.py class ImageApiMixin (line 10) | class ImageApiMixin: method get_image (line 13) | def get_image(self, image, chunk_size=DEFAULT_DATA_CHUNK_SIZE): method history (line 42) | def history(self, image): method images (line 59) | def images(self, name=None, quiet=False, all=False, filters=None): method import_image (line 102) | def import_image(self, src=None, repository=None, tag=None, image=None, method import_image_from_data (line 154) | def import_image_from_data(self, data, repository=None, tag=None, method import_image_from_file (line 177) | def import_image_from_file(self, filename, repository=None, tag=None, method import_image_from_stream (line 196) | def import_image_from_stream(self, stream, repository=None, tag=None, method import_image_from_url (line 203) | def import_image_from_url(self, url, repository=None, tag=None, method import_image_from_image (line 218) | def import_image_from_image(self, image, repository=None, tag=None, method inspect_image (line 235) | def inspect_image(self, image): method inspect_distribution (line 257) | def inspect_distribution(self, image, auth_config=None): method load_image (line 291) | def load_image(self, data, quiet=None): method prune_images (line 327) | def prune_images(self, filters=None): method pull (line 351) | def pull(self, repository, tag=None, stream=False, auth_config=None, method push (line 436) | def push(self, repository, tag=None, stream=False, auth_config=None, method remove_image (line 503) | def remove_image(self, image, force=False, noprune=False): method search (line 516) | def search(self, term, limit=None): method tag (line 542) | def tag(self, image, repository, tag=None, force=False): function is_file (line 575) | def is_file(src): function _import_image_params (line 585) | def _import_image_params(repo, tag, image=None, src=None, FILE: docker/api/network.py class NetworkApiMixin (line 6) | class NetworkApiMixin: method networks (line 7) | def networks(self, names=None, ids=None, filters=None): method create_network (line 40) | def create_network(self, name, driver=None, options=None, ipam=None, method prune_networks (line 155) | def prune_networks(self, filters=None): method remove_network (line 177) | def remove_network(self, net_id): method inspect_network (line 189) | def inspect_network(self, net_id, verbose=None, scope=None): method connect_container_to_network (line 215) | def connect_container_to_network(self, container, net_id, method disconnect_container_from_network (line 256) | def disconnect_container_from_network(self, container, net_id, FILE: docker/api/plugin.py class PluginApiMixin (line 4) | class PluginApiMixin: method configure_plugin (line 7) | def configure_plugin(self, name, options): method create_plugin (line 28) | def create_plugin(self, name, plugin_data_dir, gzip=False): method disable_plugin (line 54) | def disable_plugin(self, name, force=False): method enable_plugin (line 72) | def enable_plugin(self, name, timeout=0): method inspect_plugin (line 91) | def inspect_plugin(self, name): method pull_plugin (line 106) | def pull_plugin(self, remote, privileges, name=None): method plugins (line 144) | def plugins(self): method plugin_privileges (line 155) | def plugin_privileges(self, name): method push_plugin (line 185) | def push_plugin(self, name): method remove_plugin (line 209) | def remove_plugin(self, name, force=False): method upgrade_plugin (line 229) | def upgrade_plugin(self, name, remote, privileges): FILE: docker/api/secret.py class SecretApiMixin (line 6) | class SecretApiMixin: method create_secret (line 8) | def create_secret(self, name, data, labels=None, driver=None): method inspect_secret (line 47) | def inspect_secret(self, id): method remove_secret (line 65) | def remove_secret(self, id): method secrets (line 84) | def secrets(self, filters=None): FILE: docker/api/service.py function _check_api_features (line 5) | def _check_api_features(version, task_template, update_config, endpoint_... function _merge_task_template (line 99) | def _merge_task_template(current, override): class ServiceApiMixin (line 114) | class ServiceApiMixin: method create_service (line 116) | def create_service( method inspect_service (line 193) | def inspect_service(self, service, insert_defaults=None): method inspect_task (line 223) | def inspect_task(self, task): method remove_service (line 242) | def remove_service(self, service): method services (line 263) | def services(self, filters=None, status=None): method service_logs (line 295) | def service_logs(self, service, details=False, follow=False, stdout=Fa... method tasks (line 344) | def tasks(self, filters=None): method update_service (line 369) | def update_service(self, service, version, task_template=None, name=None, FILE: docker/api/swarm.py class SwarmApiMixin (line 10) | class SwarmApiMixin: method create_swarm_spec (line 12) | def create_swarm_spec(self, *args, **kwargs): method get_unlock_key (line 74) | def get_unlock_key(self): method init_swarm (line 84) | def init_swarm(self, advertise_addr=None, listen_addr='0.0.0.0:2377', method inspect_swarm (line 183) | def inspect_swarm(self): method inspect_node (line 199) | def inspect_node(self, node_id): method join_swarm (line 217) | def join_swarm(self, remote_addrs, join_token, listen_addr='0.0.0.0:23... method leave_swarm (line 268) | def leave_swarm(self, force=False): method nodes (line 296) | def nodes(self, filters=None): method remove_node (line 321) | def remove_node(self, node_id, force=False): method unlock_swarm (line 347) | def unlock_swarm(self, key): method update_node (line 383) | def update_node(self, node_id, version, node_spec=None): method update_swarm (line 419) | def update_swarm(self, version, swarm_spec=None, FILE: docker/api/volume.py class VolumeApiMixin (line 4) | class VolumeApiMixin: method volumes (line 5) | def volumes(self, filters=None): method create_volume (line 38) | def create_volume(self, name=None, driver=None, driver_opts=None, method inspect_volume (line 93) | def inspect_volume(self, name): method prune_volumes (line 119) | def prune_volumes(self, filters=None): method remove_volume (line 140) | def remove_volume(self, name, force=False): FILE: docker/auth.py function resolve_repository_name (line 15) | def resolve_repository_name(repo_name): function resolve_index_name (line 30) | def resolve_index_name(index_name): function get_config_header (line 37) | def get_config_header(client, registry): function split_repo_name (line 59) | def split_repo_name(repo_name): function get_credential_store (line 69) | def get_credential_store(authconfig, registry): class AuthConfig (line 75) | class AuthConfig(dict): method __init__ (line 76) | def __init__(self, dct, credstore_env=None): method parse_auth (line 84) | def parse_auth(cls, entries, raise_on_error=False): method load_config (line 144) | def load_config(cls, config_path, config_dict, credstore_env=None): method auths (line 192) | def auths(self): method creds_store (line 196) | def creds_store(self): method cred_helpers (line 200) | def cred_helpers(self): method is_empty (line 204) | def is_empty(self): method resolve_authconfig (line 209) | def resolve_authconfig(self, registry=None): method _resolve_authconfig_credstore (line 244) | def _resolve_authconfig_credstore(self, registry, credstore_name): method _get_store_instance (line 272) | def _get_store_instance(self, name): method get_credential_store (line 279) | def get_credential_store(self, registry): method get_all_credentials (line 285) | def get_all_credentials(self): method add_auth (line 305) | def add_auth(self, reg, data): function resolve_authconfig (line 309) | def resolve_authconfig(authconfig, registry=None, credstore_env=None): function convert_to_hostname (line 315) | def convert_to_hostname(url): function decode_auth (line 319) | def decode_auth(auth): function encode_header (line 327) | def encode_header(auth): function parse_auth (line 332) | def parse_auth(entries, raise_on_error=False): function load_config (line 348) | def load_config(config_path=None, config_dict=None, credstore_env=None): function _load_legacy_config (line 352) | def _load_legacy_config(config_file): FILE: docker/client.py class DockerClient (line 16) | class DockerClient: method __init__ (line 44) | def __init__(self, *args, **kwargs): method from_env (line 48) | def from_env(cls, **kwargs): method configs (line 104) | def configs(self): method containers (line 112) | def containers(self): method images (line 120) | def images(self): method networks (line 128) | def networks(self): method nodes (line 136) | def nodes(self): method plugins (line 144) | def plugins(self): method secrets (line 152) | def secrets(self): method services (line 160) | def services(self): method swarm (line 168) | def swarm(self): method volumes (line 176) | def volumes(self): method events (line 184) | def events(self, *args, **kwargs): method df (line 188) | def df(self): method info (line 192) | def info(self, *args, **kwargs): method login (line 196) | def login(self, *args, **kwargs): method ping (line 200) | def ping(self, *args, **kwargs): method version (line 204) | def version(self, *args, **kwargs): method close (line 208) | def close(self): method __getattr__ (line 212) | def __getattr__(self, name): FILE: docker/context/api.py class ContextAPI (line 15) | class ContextAPI: method create_context (line 23) | def create_context( method get_context (line 73) | def get_context(cls, name=None): method contexts (line 101) | def contexts(cls): method get_current_context (line 128) | def get_current_context(cls): method set_current_context (line 136) | def set_current_context(cls, name="default"): method remove_context (line 147) | def remove_context(cls, name): method inspect_context (line 180) | def inspect_context(cls, name="default"): FILE: docker/context/config.py function get_current_context_name (line 12) | def get_current_context_name(): function write_context_name_to_docker_config (line 24) | def write_context_name_to_docker_config(name=None): function get_context_id (line 49) | def get_context_id(name): function get_context_dir (line 53) | def get_context_dir(): function get_meta_dir (line 57) | def get_meta_dir(name=None): function get_meta_file (line 64) | def get_meta_file(name): function get_tls_dir (line 68) | def get_tls_dir(name=None, endpoint=""): function get_context_host (line 75) | def get_context_host(path=None, tls=False): FILE: docker/context/context.py class Context (line 16) | class Context: method __init__ (line 19) | def __init__(self, name, orchestrator=None, host=None, endpoints=None, method set_endpoint (line 62) | def set_endpoint( method inspect (line 75) | def inspect(self): method load_context (line 79) | def load_context(cls, name): method _load_meta (line 93) | def _load_meta(cls, name): method _load_certs (line 120) | def _load_certs(self): method save (line 146) | def save(self): method remove (line 173) | def remove(self): method __repr__ (line 179) | def __repr__(self): method __str__ (line 182) | def __str__(self): method __call__ (line 185) | def __call__(self): method is_docker_host (line 191) | def is_docker_host(self): method Name (line 195) | def Name(self): method Host (line 199) | def Host(self): method Orchestrator (line 209) | def Orchestrator(self): method Metadata (line 213) | def Metadata(self): method TLSConfig (line 224) | def TLSConfig(self): method TLSMaterial (line 233) | def TLSMaterial(self): method Storage (line 244) | def Storage(self): FILE: docker/credentials/errors.py class StoreError (line 1) | class StoreError(RuntimeError): class CredentialsNotFound (line 5) | class CredentialsNotFound(StoreError): class InitializationError (line 9) | class InitializationError(StoreError): function process_store_error (line 13) | def process_store_error(cpe, program): FILE: docker/credentials/store.py class Store (line 11) | class Store: method __init__ (line 12) | def __init__(self, program, environment=None): method get (line 26) | def get(self, server): method store (line 46) | def store(self, server, username, secret): method erase (line 57) | def erase(self, server): method list (line 65) | def list(self): method _execute (line 71) | def _execute(self, subcmd, data_input): FILE: docker/credentials/utils.py function create_environment_dict (line 4) | def create_environment_dict(overrides): FILE: docker/errors.py class DockerException (line 13) | class DockerException(Exception): function create_api_error_from_http_exception (line 22) | def create_api_error_from_http_exception(e): class APIError (line 42) | class APIError(requests.exceptions.HTTPError, DockerException): method __init__ (line 46) | def __init__(self, message, response=None, explanation=None): method __str__ (line 53) | def __str__(self): method status_code (line 74) | def status_code(self): method is_error (line 78) | def is_error(self): method is_client_error (line 81) | def is_client_error(self): method is_server_error (line 86) | def is_server_error(self): class NotFound (line 92) | class NotFound(APIError): class ImageNotFound (line 96) | class ImageNotFound(NotFound): class InvalidVersion (line 100) | class InvalidVersion(DockerException): class InvalidRepository (line 104) | class InvalidRepository(DockerException): class InvalidConfigFile (line 108) | class InvalidConfigFile(DockerException): class InvalidArgument (line 112) | class InvalidArgument(DockerException): class DeprecatedMethod (line 116) | class DeprecatedMethod(DockerException): class TLSParameterError (line 120) | class TLSParameterError(DockerException): method __init__ (line 121) | def __init__(self, msg): method __str__ (line 124) | def __str__(self): class NullResource (line 131) | class NullResource(DockerException, ValueError): class ContainerError (line 135) | class ContainerError(DockerException): method __init__ (line 139) | def __init__(self, container, exit_status, command, image, stderr): class StreamParseError (line 153) | class StreamParseError(RuntimeError): method __init__ (line 154) | def __init__(self, reason): class BuildError (line 158) | class BuildError(DockerException): method __init__ (line 159) | def __init__(self, reason, build_log): class ImageLoadError (line 165) | class ImageLoadError(DockerException): function create_unexpected_kwargs_error (line 169) | def create_unexpected_kwargs_error(name, kwargs): class MissingContextParameter (line 180) | class MissingContextParameter(DockerException): method __init__ (line 181) | def __init__(self, param): method __str__ (line 184) | def __str__(self): class ContextAlreadyExists (line 188) | class ContextAlreadyExists(DockerException): method __init__ (line 189) | def __init__(self, name): method __str__ (line 192) | def __str__(self): class ContextException (line 196) | class ContextException(DockerException): method __init__ (line 197) | def __init__(self, msg): method __str__ (line 200) | def __str__(self): class ContextNotFound (line 204) | class ContextNotFound(DockerException): method __init__ (line 205) | def __init__(self, name): method __str__ (line 208) | def __str__(self): FILE: docker/models/configs.py class Config (line 5) | class Config(Model): method __repr__ (line 9) | def __repr__(self): method name (line 13) | def name(self): method remove (line 16) | def remove(self): class ConfigCollection (line 27) | class ConfigCollection(Collection): method create (line 31) | def create(self, **kwargs): method get (line 37) | def get(self, config_id): method list (line 55) | def list(self, **kwargs): FILE: docker/models/containers.py class Container (line 20) | class Container(Model): method name (line 29) | def name(self): method image (line 37) | def image(self): method labels (line 47) | def labels(self): method status (line 61) | def status(self): method health (line 70) | def health(self): method ports (line 79) | def ports(self): method attach (line 85) | def attach(self, **kwargs): method attach_socket (line 111) | def attach_socket(self, **kwargs): method commit (line 127) | def commit(self, repository=None, tag=None, **kwargs): method diff (line 153) | def diff(self): method exec_run (line 167) | def exec_run(self, cmd, stdout=True, stderr=True, stdin=False, tty=False, method export (line 226) | def export(self, chunk_size=DEFAULT_DATA_CHUNK_SIZE): method get_archive (line 244) | def get_archive(self, path, chunk_size=DEFAULT_DATA_CHUNK_SIZE, method kill (line 280) | def kill(self, signal=None): method logs (line 294) | def logs(self, **kwargs): method pause (line 325) | def pause(self): method put_archive (line 335) | def put_archive(self, path, data): method remove (line 353) | def remove(self, **kwargs): method rename (line 370) | def rename(self, name): method resize (line 383) | def resize(self, height, width): method restart (line 397) | def restart(self, **kwargs): method start (line 412) | def start(self, **kwargs): method stats (line 423) | def stats(self, **kwargs): method stop (line 441) | def stop(self, **kwargs): method top (line 455) | def top(self, **kwargs): method unpause (line 471) | def unpause(self): method update (line 481) | def update(self, **kwargs): method wait (line 508) | def wait(self, **kwargs): class ContainerCollection (line 532) | class ContainerCollection(Collection): method run (line 535) | def run(self, image, command=None, stdout=True, stderr=False, method create (line 914) | def create(self, image, command=None, **kwargs): method get (line 939) | def get(self, container_id): method list (line 958) | def list(self, all=False, before=None, filters=None, limit=-1, since=N... method prune (line 1026) | def prune(self, filters=None): function _create_container_args (line 1123) | def _create_container_args(kwargs): function _host_volume_from_bind (line 1185) | def _host_volume_from_bind(bind): FILE: docker/models/images.py class Image (line 13) | class Image(Model): method __repr__ (line 17) | def __repr__(self): method labels (line 22) | def labels(self): method short_id (line 30) | def short_id(self): method tags (line 40) | def tags(self): method history (line 49) | def history(self): method remove (line 62) | def remove(self, force=False, noprune=False): method save (line 80) | def save(self, chunk_size=DEFAULT_DATA_CHUNK_SIZE, named=False): method tag (line 122) | def tag(self, repository, tag=None, **kwargs): class RegistryData (line 142) | class RegistryData(Model): method __init__ (line 146) | def __init__(self, image_name, *args, **kwargs): method id (line 151) | def id(self): method short_id (line 158) | def short_id(self): method pull (line 165) | def pull(self, platform=None): method has_platform (line 179) | def has_platform(self, platform): method reload (line 211) | def reload(self): class ImageCollection (line 217) | class ImageCollection(Collection): method build (line 220) | def build(self, **kwargs): method get (line 317) | def get(self, name): method get_registry_data (line 335) | def get_registry_data(self, name, auth_config=None): method list (line 359) | def list(self, name=None, all=False, filters=None): method load (line 383) | def load(self, data): method pull (line 415) | def pull(self, repository, tag=None, all_tags=False, **kwargs): method push (line 477) | def push(self, repository, tag=None, **kwargs): method remove (line 481) | def remove(self, *args, **kwargs): method search (line 485) | def search(self, *args, **kwargs): method prune (line 489) | def prune(self, filters=None): method prune_builds (line 493) | def prune_builds(self, *args, **kwargs): function normalize_platform (line 498) | def normalize_platform(platform, engine_info): FILE: docker/models/networks.py class Network (line 7) | class Network(Model): method name (line 12) | def name(self): method containers (line 19) | def containers(self): method connect (line 29) | def connect(self, container, *args, **kwargs): method disconnect (line 62) | def disconnect(self, container, *args, **kwargs): method remove (line 83) | def remove(self): class NetworkCollection (line 94) | class NetworkCollection(Collection): method create (line 100) | def create(self, name, *args, **kwargs): method get (line 159) | def get(self, network_id, *args, **kwargs): method list (line 185) | def list(self, *args, **kwargs): method prune (line 216) | def prune(self, filters=None): FILE: docker/models/nodes.py class Node (line 4) | class Node(Model): method version (line 9) | def version(self): method update (line 17) | def update(self, node_spec): method remove (line 44) | def remove(self, force=False): class NodeCollection (line 64) | class NodeCollection(Collection): method get (line 68) | def get(self, node_id): method list (line 84) | def list(self, *args, **kwargs): FILE: docker/models/plugins.py class Plugin (line 5) | class Plugin(Model): method __repr__ (line 9) | def __repr__(self): method name (line 13) | def name(self): method enabled (line 20) | def enabled(self): method settings (line 27) | def settings(self): method configure (line 33) | def configure(self, options): method disable (line 47) | def disable(self, force=False): method enable (line 62) | def enable(self, timeout=0): method push (line 76) | def push(self): method remove (line 89) | def remove(self, force=False): method upgrade (line 103) | def upgrade(self, remote=None): class PluginCollection (line 131) | class PluginCollection(Collection): method create (line 134) | def create(self, name, plugin_data_dir, gzip=False): method get (line 152) | def get(self, name): method install (line 170) | def install(self, remote_name, local_name=None): method list (line 194) | def list(self): FILE: docker/models/resource.py class Model (line 1) | class Model: method __init__ (line 7) | def __init__(self, attrs=None, client=None, collection=None): method __repr__ (line 19) | def __repr__(self): method __eq__ (line 22) | def __eq__(self, other): method __hash__ (line 25) | def __hash__(self): method id (line 29) | def id(self): method short_id (line 36) | def short_id(self): method reload (line 42) | def reload(self): class Collection (line 51) | class Collection: method __init__ (line 60) | def __init__(self, client=None): method __call__ (line 65) | def __call__(self, *args, **kwargs): method list (line 72) | def list(self): method get (line 75) | def get(self, key): method create (line 78) | def create(self, attrs=None): method prepare_model (line 81) | def prepare_model(self, attrs): FILE: docker/models/secrets.py class Secret (line 5) | class Secret(Model): method __repr__ (line 9) | def __repr__(self): method name (line 13) | def name(self): method remove (line 16) | def remove(self): class SecretCollection (line 27) | class SecretCollection(Collection): method create (line 31) | def create(self, **kwargs): method get (line 37) | def get(self, secret_id): method list (line 55) | def list(self, **kwargs): FILE: docker/models/services.py class Service (line 9) | class Service(Model): method name (line 14) | def name(self): method version (line 19) | def version(self): method remove (line 27) | def remove(self): method tasks (line 37) | def tasks(self, filters=None): method update (line 58) | def update(self, **kwargs): method logs (line 87) | def logs(self, **kwargs): method scale (line 116) | def scale(self, replicas): method force_update (line 135) | def force_update(self): class ServiceCollection (line 146) | class ServiceCollection(Collection): method create (line 150) | def create(self, image, command=None, **kwargs): method get (line 238) | def get(self, service_id, insert_defaults=None): method list (line 263) | def list(self, **kwargs): function _get_create_service_kwargs (line 342) | def _get_create_service_kwargs(func_name, kwargs): FILE: docker/models/swarm.py class Swarm (line 7) | class Swarm(Model): method __init__ (line 14) | def __init__(self, *args, **kwargs): method version (line 25) | def version(self): method get_unlock_key (line 33) | def get_unlock_key(self): method init (line 37) | def init(self, advertise_addr=None, listen_addr='0.0.0.0:2377', method join (line 136) | def join(self, *args, **kwargs): method leave (line 140) | def leave(self, *args, **kwargs): method reload (line 144) | def reload(self): method unlock (line 155) | def unlock(self, key): method update (line 159) | def update(self, rotate_worker_token=False, rotate_manager_token=False, FILE: docker/models/volumes.py class Volume (line 5) | class Volume(Model): method name (line 10) | def name(self): method remove (line 14) | def remove(self, force=False): class VolumeCollection (line 28) | class VolumeCollection(Collection): method create (line 32) | def create(self, name=None, **kwargs): method get (line 60) | def get(self, volume_id): method list (line 78) | def list(self, **kwargs): method prune (line 97) | def prune(self, filters=None): FILE: docker/tls.py class TLSConfig (line 6) | class TLSConfig: method __init__ (line 21) | def __init__(self, client_cert=None, ca_cert=None, verify=None): method configure_client (line 57) | def configure_client(self, client): FILE: docker/transport/basehttpadapter.py class BaseHTTPAdapter (line 4) | class BaseHTTPAdapter(requests.adapters.HTTPAdapter): method close (line 5) | def close(self): method get_connection_with_tls_context (line 12) | def get_connection_with_tls_context(self, request, verify, proxies=Non... FILE: docker/transport/npipeconn.py class NpipeHTTPConnection (line 14) | class NpipeHTTPConnection(urllib3.connection.HTTPConnection): method __init__ (line 15) | def __init__(self, npipe_path, timeout=60): method connect (line 22) | def connect(self): class NpipeHTTPConnectionPool (line 29) | class NpipeHTTPConnectionPool(urllib3.connectionpool.HTTPConnectionPool): method __init__ (line 30) | def __init__(self, npipe_path, timeout=60, maxsize=10): method _new_conn (line 37) | def _new_conn(self): method _get_conn (line 45) | def _get_conn(self, timeout): class NpipeHTTPAdapter (line 64) | class NpipeHTTPAdapter(BaseHTTPAdapter): method __init__ (line 71) | def __init__(self, base_url, timeout=60, method get_connection (line 82) | def get_connection(self, url, proxies=None): method request_url (line 96) | def request_url(self, request, proxies): FILE: docker/transport/npipesocket.py function check_closed (line 18) | def check_closed(f): class NpipeSocket (line 29) | class NpipeSocket: method __init__ (line 36) | def __init__(self, handle=None): method accept (line 41) | def accept(self): method bind (line 44) | def bind(self, address): method close (line 47) | def close(self): method connect (line 52) | def connect(self, address, retry_count=0): method connect_ex (line 84) | def connect_ex(self, address): method detach (line 88) | def detach(self): method dup (line 93) | def dup(self): method getpeername (line 96) | def getpeername(self): method getsockname (line 99) | def getsockname(self): method getsockopt (line 102) | def getsockopt(self, level, optname, buflen=None): method ioctl (line 105) | def ioctl(self, control, option): method listen (line 108) | def listen(self, backlog): method makefile (line 111) | def makefile(self, mode=None, bufsize=None): method recv (line 120) | def recv(self, bufsize, flags=0): method recvfrom (line 125) | def recvfrom(self, bufsize, flags=0): method recvfrom_into (line 130) | def recvfrom_into(self, buf, nbytes=0, flags=0): method recv_into (line 134) | def recv_into(self, buf, nbytes=0): method send (line 157) | def send(self, string, flags=0): method sendall (line 172) | def sendall(self, string, flags=0): method sendto (line 176) | def sendto(self, string, address): method setblocking (line 180) | def setblocking(self, flag): method settimeout (line 185) | def settimeout(self, value): method gettimeout (line 195) | def gettimeout(self): method setsockopt (line 198) | def setsockopt(self, level, optname, value): method shutdown (line 202) | def shutdown(self, how): class NpipeFileIOBase (line 206) | class NpipeFileIOBase(io.RawIOBase): method __init__ (line 207) | def __init__(self, npipe_socket): method close (line 210) | def close(self): method fileno (line 214) | def fileno(self): method isatty (line 217) | def isatty(self): method readable (line 220) | def readable(self): method readinto (line 223) | def readinto(self, buf): method seekable (line 226) | def seekable(self): method writable (line 229) | def writable(self): FILE: docker/transport/sshconn.py class SSHSocket (line 20) | class SSHSocket(socket.socket): method __init__ (line 21) | def __init__(self, host): method connect (line 34) | def connect(self, **kwargs): method _write (line 63) | def _write(self, data): method sendall (line 71) | def sendall(self, data): method send (line 74) | def send(self, data): method recv (line 77) | def recv(self, n): method makefile (line 83) | def makefile(self, mode): method close (line 90) | def close(self): class SSHConnection (line 98) | class SSHConnection(urllib3.connection.HTTPConnection): method __init__ (line 99) | def __init__(self, ssh_transport=None, timeout=60, host=None): method connect (line 107) | def connect(self): class SSHConnectionPool (line 120) | class SSHConnectionPool(urllib3.connectionpool.HTTPConnectionPool): method __init__ (line 123) | def __init__(self, ssh_client=None, timeout=60, maxsize=10, host=None): method _new_conn (line 133) | def _new_conn(self): method _get_conn (line 139) | def _get_conn(self, timeout): class SSHHTTPAdapter (line 159) | class SSHHTTPAdapter(BaseHTTPAdapter): method __init__ (line 165) | def __init__(self, base_url, timeout=60, method _create_paramiko_client (line 185) | def _create_paramiko_client(self, base_url): method _connect (line 216) | def _connect(self): method get_connection (line 220) | def get_connection(self, url, proxies=None): method close (line 247) | def close(self): FILE: docker/transport/unixconn.py class UnixHTTPConnection (line 13) | class UnixHTTPConnection(urllib3.connection.HTTPConnection): method __init__ (line 15) | def __init__(self, base_url, unix_socket, timeout=60): method connect (line 23) | def connect(self): class UnixHTTPConnectionPool (line 30) | class UnixHTTPConnectionPool(urllib3.connectionpool.HTTPConnectionPool): method __init__ (line 31) | def __init__(self, base_url, socket_path, timeout=60, maxsize=10): method _new_conn (line 39) | def _new_conn(self): class UnixHTTPAdapter (line 45) | class UnixHTTPAdapter(BaseHTTPAdapter): method __init__ (line 52) | def __init__(self, socket_url, timeout=60, method get_connection (line 66) | def get_connection(self, url, proxies=None): method request_url (line 80) | def request_url(self, request, proxies): FILE: docker/types/base.py class DictType (line 1) | class DictType(dict): method __init__ (line 2) | def __init__(self, init): FILE: docker/types/containers.py class LogConfigTypesEnum (line 19) | class LogConfigTypesEnum: class LogConfig (line 31) | class LogConfig(DictType): method __init__ (line 66) | def __init__(self, **kwargs): method type (line 79) | def type(self): method type (line 83) | def type(self, value): method config (line 87) | def config(self): method set_config_value (line 90) | def set_config_value(self, key, value): method unset_config (line 96) | def unset_config(self, key): class Ulimit (line 102) | class Ulimit(DictType): method __init__ (line 125) | def __init__(self, **kwargs): method name (line 142) | def name(self): method name (line 146) | def name(self, value): method soft (line 150) | def soft(self): method soft (line 154) | def soft(self, value): method hard (line 158) | def hard(self): method hard (line 162) | def hard(self, value): class DeviceRequest (line 166) | class DeviceRequest(DictType): method __init__ (line 187) | def __init__(self, **kwargs): method driver (line 224) | def driver(self): method driver (line 228) | def driver(self, value): method count (line 232) | def count(self): method count (line 236) | def count(self, value): method device_ids (line 240) | def device_ids(self): method device_ids (line 244) | def device_ids(self, value): method capabilities (line 248) | def capabilities(self): method capabilities (line 252) | def capabilities(self, value): method options (line 256) | def options(self): method options (line 260) | def options(self, value): class HostConfig (line 264) | class HostConfig(dict): method __init__ (line 265) | def __init__(self, version, binds=None, port_bindings=None, function host_config_type_error (line 665) | def host_config_type_error(param, param_value, expected): function host_config_version_error (line 672) | def host_config_version_error(param, version, less_than=True): function host_config_value_error (line 678) | def host_config_value_error(param, param_value): function host_config_incompatible_error (line 682) | def host_config_incompatible_error(param, param_value, incompatible_param): class ContainerConfig (line 688) | class ContainerConfig(dict): method __init__ (line 689) | def __init__( FILE: docker/types/daemon.py class CancellableStream (line 8) | class CancellableStream: method __init__ (line 20) | def __init__(self, stream, response): method __iter__ (line 24) | def __iter__(self): method __next__ (line 27) | def __next__(self): method close (line 37) | def close(self): FILE: docker/types/healthcheck.py class Healthcheck (line 4) | class Healthcheck(DictType): method __init__ (line 30) | def __init__(self, **kwargs): method test (line 49) | def test(self): method test (line 53) | def test(self, value): method interval (line 59) | def interval(self): method interval (line 63) | def interval(self, value): method timeout (line 67) | def timeout(self): method timeout (line 71) | def timeout(self, value): method retries (line 75) | def retries(self): method retries (line 79) | def retries(self, value): method start_period (line 83) | def start_period(self): method start_period (line 87) | def start_period(self, value): FILE: docker/types/networks.py class EndpointConfig (line 5) | class EndpointConfig(dict): method __init__ (line 6) | def __init__(self, version, aliases=None, links=None, ipv4_address=None, class NetworkingConfig (line 54) | class NetworkingConfig(dict): method __init__ (line 55) | def __init__(self, endpoints_config=None): class IPAMConfig (line 60) | class IPAMConfig(dict): method __init__ (line 79) | def __init__(self, driver='default', pool_configs=None, options=None): class IPAMPool (line 91) | class IPAMPool(dict): method __init__ (line 121) | def __init__(self, subnet=None, iprange=None, gateway=None, FILE: docker/types/services.py class TaskTemplate (line 13) | class TaskTemplate(dict): method __init__ (line 37) | def __init__(self, container_spec, resources=None, restart_policy=None, method container_spec (line 60) | def container_spec(self): method resources (line 64) | def resources(self): method restart_policy (line 68) | def restart_policy(self): method placement (line 72) | def placement(self): class ContainerSpec (line 76) | class ContainerSpec(dict): method __init__ (line 126) | def __init__(self, image, command=None, args=None, hostname=None, env=... class Mount (line 221) | class Mount(dict): method __init__ (line 250) | def __init__(self, target, source, type='volume', read_only=False, method parse_mount_string (line 312) | def parse_mount_string(cls, string): class Resources (line 336) | class Resources(dict): method __init__ (line 353) | def __init__(self, cpu_limit=None, mem_limit=None, cpu_reservation=None, function _convert_generic_resources_dict (line 375) | def _convert_generic_resources_dict(generic_resources): class UpdateConfig (line 401) | class UpdateConfig(dict): method __init__ (line 424) | def __init__(self, parallelism=0, delay=None, failure_action='continue', class RollbackConfig (line 457) | class RollbackConfig(UpdateConfig): class RestartConditionTypesEnum (line 482) | class RestartConditionTypesEnum: class RestartPolicy (line 491) | class RestartPolicy(dict): method __init__ (line 509) | def __init__(self, condition=RestartConditionTypesEnum.NONE, delay=0, class DriverConfig (line 522) | class DriverConfig(dict): method __init__ (line 536) | def __init__(self, name, options=None): class EndpointSpec (line 542) | class EndpointSpec(dict): method __init__ (line 558) | def __init__(self, mode=None, ports=None): function convert_service_ports (line 565) | def convert_service_ports(ports): class ServiceMode (line 598) | class ServiceMode(dict): method __init__ (line 611) | def __init__(self, mode, replicas=None, concurrency=None): method _convert_mode (line 646) | def _convert_mode(original_mode): method replicas (line 656) | def replicas(self): class SecretReference (line 666) | class SecretReference(dict): method __init__ (line 682) | def __init__(self, secret_id, secret_name, filename=None, uid=None, class ConfigReference (line 694) | class ConfigReference(dict): method __init__ (line 710) | def __init__(self, config_id, config_name, filename=None, uid=None, class Placement (line 722) | class Placement(dict): method __init__ (line 738) | def __init__(self, constraints=None, preferences=None, platforms=None, class PlacementPreference (line 758) | class PlacementPreference(dict): method __init__ (line 771) | def __init__(self, strategy, descriptor): class DNSConfig (line 780) | class DNSConfig(dict): method __init__ (line 793) | def __init__(self, nameservers=None, search=None, options=None): class Privileges (line 799) | class Privileges(dict): method __init__ (line 824) | def __init__(self, credentialspec_file=None, credentialspec_registry=N... class NetworkAttachmentConfig (line 854) | class NetworkAttachmentConfig(dict): method __init__ (line 867) | def __init__(self, target, aliases=None, options=None): FILE: docker/types/swarm.py class SwarmSpec (line 5) | class SwarmSpec(dict): method __init__ (line 11) | def __init__(self, version, task_history_retention_limit=None, class SwarmExternalCA (line 97) | class SwarmExternalCA(dict): method __init__ (line 115) | def __init__(self, url, protocol=None, options=None, ca_cert=None): FILE: docker/utils/build.py function match_tag (line 18) | def match_tag(tag: str) -> bool: function tar (line 22) | def tar(path, exclude=None, dockerfile=None, fileobj=None, gzip=False): function exclude_paths (line 41) | def exclude_paths(root, patterns, dockerfile=None): function build_file_list (line 58) | def build_file_list(root): function create_archive (line 70) | def create_archive(root, files=None, fileobj=None, gzip=False, function mkbuildcontext (line 123) | def mkbuildcontext(dockerfile): function split_path (line 142) | def split_path(p): function normalize_slashes (line 146) | def normalize_slashes(p): function walk (line 152) | def walk(root, patterns, default=True): class PatternMatcher (line 159) | class PatternMatcher: method __init__ (line 160) | def __init__(self, patterns): method matches (line 166) | def matches(self, filepath): method walk (line 185) | def walk(self, root): class Pattern (line 222) | class Pattern: method __init__ (line 223) | def __init__(self, pattern_str): method normalize (line 233) | def normalize(cls, p): method match (line 259) | def match(self, filepath): FILE: docker/utils/config.py function find_config_file (line 13) | def find_config_file(config_path=None): function config_path_from_environment (line 33) | def config_path_from_environment(): function home_dir (line 40) | def home_dir(): function load_general_config (line 51) | def load_general_config(config_path=None): FILE: docker/utils/decorators.py function check_resource (line 7) | def check_resource(resource_name): function minimum_version (line 24) | def minimum_version(version): function update_headers (line 37) | def update_headers(f): FILE: docker/utils/fnmatch.py function _purge (line 21) | def _purge(): function fnmatch (line 26) | def fnmatch(name, pat): function fnmatchcase (line 47) | def fnmatchcase(name, pat): function translate (line 63) | def translate(pat): FILE: docker/utils/json_stream.py function stream_as_text (line 9) | def stream_as_text(stream): function json_splitter (line 22) | def json_splitter(buffer): function json_stream (line 35) | def json_stream(stream): function line_splitter (line 43) | def line_splitter(buffer, separator='\n'): function split_buffer (line 50) | def split_buffer(stream, splitter=None, decoder=lambda a: a): FILE: docker/utils/ports.py function add_port_mapping (line 15) | def add_port_mapping(port_bindings, internal_port, external): function add_port (line 22) | def add_port(port_bindings, internal_port_range, external_range): function build_port_bindings (line 32) | def build_port_bindings(ports): function _raise_invalid_port (line 40) | def _raise_invalid_port(port): function port_range (line 46) | def port_range(start, end, proto, randomly_available_port=False): function split_port (line 56) | def split_port(port): FILE: docker/utils/proxy.py class ProxyConfig (line 4) | class ProxyConfig(dict): method http (line 9) | def http(self): method https (line 13) | def https(self): method ftp (line 17) | def ftp(self): method no_proxy (line 21) | def no_proxy(self): method from_dict (line 25) | def from_dict(config): method get_environment (line 40) | def get_environment(self): method inject_proxy_environment (line 56) | def inject_proxy_environment(self, environment): method __str__ (line 71) | def __str__(self): FILE: docker/utils/socket.py class SocketError (line 17) | class SocketError(Exception): function read (line 26) | def read(socket, n=4096): function read_exactly (line 62) | def read_exactly(socket, n): function next_frame_header (line 76) | def next_frame_header(socket): function frames_iter (line 92) | def frames_iter(socket, tty): function frames_iter_no_tty (line 106) | def frames_iter_no_tty(socket): function frames_iter_tty (line 127) | def frames_iter_tty(socket): function consume_socket_output (line 140) | def consume_socket_output(frames, demux=False): function demux_adaptor (line 177) | def demux_adaptor(stream_id, data): FILE: docker/utils/utils.py function create_ipam_pool (line 28) | def create_ipam_pool(*args, **kwargs): function create_ipam_config (line 35) | def create_ipam_config(*args, **kwargs): function decode_json_header (line 42) | def decode_json_header(header): function compare_version (line 49) | def compare_version(v1, v2): function version_lt (line 77) | def version_lt(v1, v2): function version_gte (line 81) | def version_gte(v1, v2): function _convert_port_binding (line 85) | def _convert_port_binding(binding): function convert_port_bindings (line 113) | def convert_port_bindings(port_bindings): function convert_volume_binds (line 126) | def convert_volume_binds(binds): function convert_tmpfs_mounts (line 180) | def convert_tmpfs_mounts(tmpfs): function convert_service_networks (line 209) | def convert_service_networks(networks): function parse_repository_tag (line 223) | def parse_repository_tag(repo_name): function parse_host (line 233) | def parse_host(addr, is_win32=False, tls=False): function parse_devices (line 324) | def parse_devices(devices): function kwargs_from_env (line 353) | def kwargs_from_env(environment=None): function convert_filters (line 391) | def convert_filters(filters): function datetime_to_timestamp (line 405) | def datetime_to_timestamp(dt): function parse_bytes (line 411) | def parse_bytes(s): function normalize_links (line 451) | def normalize_links(links): function parse_env_file (line 458) | def parse_env_file(env_file): function split_command (line 486) | def split_command(command): function format_environment (line 490) | def format_environment(environment): function format_extra_hosts (line 501) | def format_extra_hosts(extra_hosts, task=False): function create_host_config (line 513) | def create_host_config(self, *args, **kwargs): FILE: scripts/versions.py class Version (line 17) | class Version(namedtuple('_Version', 'major minor patch stage edition')): method parse (line 20) | def parse(cls, version): method major_minor (line 34) | def major_minor(self): method order (line 38) | def order(self): method __str__ (line 54) | def __str__(self): function main (line 60) | def main(): FILE: tests/helpers.py function make_tree (line 17) | def make_tree(dirs, files): function simple_tar (line 30) | def simple_tar(path): function untar_file (line 42) | def untar_file(tardata, filename): function skip_if_desktop (line 50) | def skip_if_desktop(): function requires_api_version (line 63) | def requires_api_version(version): function requires_experimental (line 74) | def requires_experimental(until=None): function wait_on_condition (line 93) | def wait_on_condition(condition, delay=0.1, timeout=40): function random_name (line 101) | def random_name(): function force_leave_swarm (line 105) | def force_leave_swarm(client): function swarm_listen_addr (line 120) | def swarm_listen_addr(): function assert_cat_socket_detached_with_keys (line 124) | def assert_cat_socket_detached_with_keys(sock, inputs): function ctrl_with (line 156) | def ctrl_with(char): FILE: tests/integration/api_build_test.py class BuildTest (line 15) | class BuildTest(BaseAPIIntegrationTest): method test_build_with_proxy (line 16) | def test_build_with_proxy(self): method test_build_with_proxy_and_buildargs (line 35) | def test_build_with_proxy_and_buildargs(self): method test_build_streaming (line 58) | def test_build_streaming(self): method test_build_from_stringio (line 72) | def test_build_from_stringio(self): method test_build_with_dockerignore (line 88) | def test_build_with_dockerignore(self): method test_build_with_buildargs (line 152) | def test_build_with_buildargs(self): method test_build_shmsize (line 170) | def test_build_shmsize(self): method test_build_isolation (line 190) | def test_build_isolation(self): method test_build_labels (line 205) | def test_build_labels(self): method test_build_with_cache_from (line 223) | def test_build_with_cache_from(self): method test_build_container_with_target (line 259) | def test_build_container_with_target(self): method test_build_with_network_mode (line 281) | def test_build_with_network_mode(self): method test_build_with_extra_hosts (line 323) | def test_build_with_extra_hosts(self): method test_build_squash (line 354) | def test_build_squash(self): method test_build_stderr_data (line 378) | def test_build_stderr_data(self): method test_build_gzip_encoding (line 395) | def test_build_gzip_encoding(self): method test_build_with_dockerfile_empty_lines (line 416) | def test_build_with_dockerfile_empty_lines(self): method test_build_gzip_custom_encoding (line 438) | def test_build_gzip_custom_encoding(self): method test_build_invalid_platform (line 444) | def test_build_invalid_platform(self): method test_build_out_of_context_dockerfile (line 457) | def test_build_out_of_context_dockerfile(self): method test_build_in_context_dockerfile (line 492) | def test_build_in_context_dockerfile(self): method test_build_in_context_nested_dockerfile (line 523) | def test_build_in_context_nested_dockerfile(self): method test_build_in_context_abs_dockerfile (line 556) | def test_build_in_context_abs_dockerfile(self): method test_prune_builds (line 594) | def test_prune_builds(self): FILE: tests/integration/api_client_test.py class InformationTest (line 11) | class InformationTest(BaseAPIIntegrationTest): method test_version (line 12) | def test_version(self): method test_info (line 17) | def test_info(self): class AutoDetectVersionTest (line 24) | class AutoDetectVersionTest(unittest.TestCase): method test_client_init (line 25) | def test_client_init(self): class ConnectionTimeoutTest (line 35) | class ConnectionTimeoutTest(unittest.TestCase): method setUp (line 36) | def setUp(self): method test_timeout (line 44) | def test_timeout(self): class UnixconnTest (line 57) | class UnixconnTest(unittest.TestCase): method test_resource_warnings (line 62) | def test_resource_warnings(self): FILE: tests/integration/api_config_test.py class ConfigAPITest (line 10) | class ConfigAPITest(BaseAPIIntegrationTest): method setup_class (line 12) | def setup_class(cls): method teardown_class (line 18) | def teardown_class(cls): method test_create_config (line 22) | def test_create_config(self): method test_create_config_unicode_data (line 31) | def test_create_config_unicode_data(self): method test_inspect_config (line 40) | def test_inspect_config(self): method test_remove_config (line 51) | def test_remove_config(self): method test_list_configs (line 62) | def test_list_configs(self): method test_create_config_with_templating (line 74) | def test_create_config_with_templating(self): FILE: tests/integration/api_container_test.py class ListContainersTest (line 25) | class ListContainersTest(BaseAPIIntegrationTest): method test_list_containers (line 26) | def test_list_containers(self): class CreateContainerTest (line 45) | class CreateContainerTest(BaseAPIIntegrationTest): method test_create (line 47) | def test_create(self): method test_create_with_host_pid_mode (line 52) | def test_create_with_host_pid_mode(self): method test_create_with_links (line 67) | def test_create_with_links(self): method test_create_with_restart_policy (line 114) | def test_create_with_restart_policy(self): method test_create_container_with_volumes_from (line 131) | def test_create_container_with_volumes_from(self): method create_container_readonly_fs (line 161) | def create_container_readonly_fs(self): method create_container_with_name (line 174) | def create_container_with_name(self): method create_container_privileged (line 182) | def create_container_privileged(self): method test_create_with_mac_address (line 207) | def test_create_with_mac_address(self): method test_create_with_cgroupns (line 221) | def test_create_with_cgroupns(self): method test_group_id_ints (line 234) | def test_group_id_ints(self): method test_group_id_strings (line 248) | def test_group_id_strings(self): method test_valid_log_driver_and_log_opt (line 264) | def test_valid_log_driver_and_log_opt(self): method test_invalid_log_driver_raises_exception (line 283) | def test_invalid_log_driver_raises_exception(self): method test_valid_no_log_driver_specified (line 304) | def test_valid_no_log_driver_specified(self): method test_valid_no_config_specified (line 323) | def test_valid_no_config_specified(self): method test_create_with_memory_constraints_with_str (line 342) | def test_create_with_memory_constraints_with_str(self): method test_create_with_memory_constraints_with_int (line 360) | def test_create_with_memory_constraints_with_int(self): method test_create_with_environment_variable_no_value (line 374) | def test_create_with_environment_variable_no_value(self): method test_create_with_tmpfs (line 387) | def test_create_with_tmpfs(self): method test_create_with_isolation (line 403) | def test_create_with_isolation(self): method test_create_with_auto_remove (line 414) | def test_create_with_auto_remove(self): method test_create_with_stop_timeout (line 426) | def test_create_with_stop_timeout(self): method test_create_with_storage_opt (line 436) | def test_create_with_storage_opt(self): method test_create_with_init (line 450) | def test_create_with_init(self): method test_create_with_cpu_rt_options (line 464) | def test_create_with_cpu_rt_options(self): method test_create_with_device_cgroup_rules (line 476) | def test_create_with_device_cgroup_rules(self): method test_create_with_uts_mode (line 487) | def test_create_with_uts_mode(self): class VolumeBindTest (line 501) | class VolumeBindTest(BaseAPIIntegrationTest): method setUp (line 502) | def setUp(self): method test_create_with_binds_rw (line 517) | def test_create_with_binds_rw(self): method test_create_with_binds_ro (line 529) | def test_create_with_binds_ro(self): method test_create_with_binds_rw_rshared (line 548) | def test_create_with_binds_rw_rshared(self): method test_create_with_mounts (line 569) | def test_create_with_mounts(self): method test_create_with_mounts_ro (line 585) | def test_create_with_mounts_ro(self): method test_create_with_volume_mount (line 602) | def test_create_with_volume_mount(self): method test_create_with_subpath_volume_mount (line 624) | def test_create_with_subpath_volume_mount(self): method check_container_data (line 673) | def check_container_data(self, inspect_data, rw, propagation='rprivate'): method run_with_volume (line 685) | def run_with_volume(self, ro, *args, **kwargs): method run_with_volume_propagation (line 701) | def run_with_volume_propagation(self, ro, propagation, *args, **kwargs): class ArchiveTest (line 719) | class ArchiveTest(BaseAPIIntegrationTest): method test_get_file_archive_from_container (line 720) | def test_get_file_archive_from_container(self): method test_get_file_stat_from_container (line 738) | def test_get_file_stat_from_container(self): method test_copy_file_to_container (line 753) | def test_copy_file_to_container(self): method test_copy_directory_to_container (line 771) | def test_copy_directory_to_container(self): class RenameContainerTest (line 791) | class RenameContainerTest(BaseAPIIntegrationTest): method test_rename_container (line 792) | def test_rename_container(self): class StartContainerTest (line 807) | class StartContainerTest(BaseAPIIntegrationTest): method test_start_container (line 808) | def test_start_container(self): method test_start_container_with_dict_instead_of_id (line 824) | def test_start_container_with_dict_instead_of_id(self): method test_run_shlex_commands (line 840) | def test_run_shlex_commands(self): class WaitTest (line 861) | class WaitTest(BaseAPIIntegrationTest): method test_wait (line 862) | def test_wait(self): method test_wait_with_dict_instead_of_id (line 875) | def test_wait_with_dict_instead_of_id(self): method test_wait_with_condition (line 889) | def test_wait_with_condition(self): class LogsTest (line 906) | class LogsTest(BaseAPIIntegrationTest): method test_logs (line 907) | def test_logs(self): method test_logs_tail_option (line 920) | def test_logs_tail_option(self): method test_logs_streaming_and_follow (line 934) | def test_logs_streaming_and_follow(self): method test_logs_streaming_and_follow_and_cancel (line 954) | def test_logs_streaming_and_follow_and_cancel(self): method test_logs_with_dict_instead_of_id (line 972) | def test_logs_with_dict_instead_of_id(self): method test_logs_with_tail_0 (line 985) | def test_logs_with_tail_0(self): method test_logs_with_until (line 999) | def test_logs_with_until(self): class DiffTest (line 1015) | class DiffTest(BaseAPIIntegrationTest): method test_diff (line 1016) | def test_diff(self): method test_diff_with_dict_instead_of_id (line 1029) | def test_diff_with_dict_instead_of_id(self): class StopTest (line 1043) | class StopTest(BaseAPIIntegrationTest): method test_stop (line 1044) | def test_stop(self): method test_stop_with_dict_instead_of_id (line 1056) | def test_stop_with_dict_instead_of_id(self): class KillTest (line 1070) | class KillTest(BaseAPIIntegrationTest): method test_kill (line 1071) | def test_kill(self): method test_kill_with_dict_instead_of_id (line 1085) | def test_kill_with_dict_instead_of_id(self): method test_kill_with_signal (line 1099) | def test_kill_with_signal(self): method test_kill_with_signal_name (line 1116) | def test_kill_with_signal_name(self): method test_kill_with_signal_integer (line 1131) | def test_kill_with_signal_integer(self): class PortTest (line 1147) | class PortTest(BaseAPIIntegrationTest): method test_port (line 1148) | def test_port(self): class ContainerTopTest (line 1185) | class ContainerTopTest(BaseAPIIntegrationTest): method test_top (line 1188) | def test_top(self): method test_top_with_psargs (line 1208) | def test_top_with_psargs(self): class RestartContainerTest (line 1221) | class RestartContainerTest(BaseAPIIntegrationTest): method test_restart (line 1222) | def test_restart(self): method test_restart_with_low_timeout (line 1241) | def test_restart_with_low_timeout(self): method test_restart_with_dict_instead_of_id (line 1250) | def test_restart_with_dict_instead_of_id(self): class RemoveContainerTest (line 1271) | class RemoveContainerTest(BaseAPIIntegrationTest): method test_remove (line 1272) | def test_remove(self): method test_remove_with_dict_instead_of_id (line 1282) | def test_remove_with_dict_instead_of_id(self): class AttachContainerTest (line 1293) | class AttachContainerTest(BaseAPIIntegrationTest): method test_run_container_streaming (line 1294) | def test_run_container_streaming(self): method test_run_container_reading_socket_http (line 1303) | def test_run_container_reading_socket_http(self): method test_run_container_reading_socket_ws (line 1325) | def test_run_container_reading_socket_ws(self): method test_attach_no_stream (line 1343) | def test_attach_no_stream(self): method test_attach_stream_and_cancel (line 1359) | def test_attach_stream_and_cancel(self): method test_detach_with_default (line 1377) | def test_detach_with_default(self): method test_detach_with_config_file (line 1394) | def test_detach_with_config_file(self): method test_detach_with_arg (line 1411) | def test_detach_with_arg(self): class PauseTest (line 1429) | class PauseTest(BaseAPIIntegrationTest): method test_pause_unpause (line 1430) | def test_pause_unpause(self): class PruneTest (line 1458) | class PruneTest(BaseAPIIntegrationTest): method test_prune_containers (line 1460) | def test_prune_containers(self): class GetContainerStatsTest (line 1474) | class GetContainerStatsTest(BaseAPIIntegrationTest): method test_get_container_stats_no_stream (line 1475) | def test_get_container_stats_no_stream(self): class ContainerUpdateTest (line 1503) | class ContainerUpdateTest(BaseAPIIntegrationTest): method test_update_container (line 1505) | def test_update_container(self): method test_restart_policy_update (line 1520) | def test_restart_policy_update(self): class ContainerCPUTest (line 1550) | class ContainerCPUTest(BaseAPIIntegrationTest): method test_container_cpu_shares (line 1551) | def test_container_cpu_shares(self): method test_container_cpuset (line 1563) | def test_container_cpuset(self): method test_create_with_runtime (line 1576) | def test_create_with_runtime(self): class LinkTest (line 1585) | class LinkTest(BaseAPIIntegrationTest): method test_remove_link (line 1586) | def test_remove_link(self): FILE: tests/integration/api_exec_test.py class ExecTest (line 12) | class ExecTest(BaseAPIIntegrationTest): method test_execute_command_with_proxy_env (line 13) | def test_execute_command_with_proxy_env(self): method test_execute_command (line 51) | def test_execute_command(self): method test_exec_command_string (line 64) | def test_exec_command_string(self): method test_exec_command_as_user (line 77) | def test_exec_command_as_user(self): method test_exec_command_as_root (line 90) | def test_exec_command_as_root(self): method test_exec_command_streaming (line 103) | def test_exec_command_streaming(self): method test_exec_start_socket (line 118) | def test_exec_start_socket(self): method test_exec_start_detached (line 140) | def test_exec_start_detached(self): method test_exec_inspect (line 155) | def test_exec_inspect(self): method test_exec_command_with_env (line 170) | def test_exec_command_with_env(self): method test_exec_command_with_workdir (line 184) | def test_exec_command_with_workdir(self): method test_detach_with_default (line 195) | def test_detach_with_default(self): method test_detach_with_config_file (line 213) | def test_detach_with_config_file(self): class ExecDemuxTest (line 231) | class ExecDemuxTest(BaseAPIIntegrationTest): method setUp (line 242) | def setUp(self): method test_exec_command_no_stream_no_demux (line 250) | def test_exec_command_no_stream_no_demux(self): method test_exec_command_stream_no_demux (line 257) | def test_exec_command_stream_no_demux(self): method test_exec_command_no_stream_demux (line 265) | def test_exec_command_no_stream_demux(self): method test_exec_command_stream_demux (line 271) | def test_exec_command_stream_demux(self): method test_exec_command_tty_no_stream_no_demux (line 279) | def test_exec_command_tty_no_stream_no_demux(self): method test_exec_command_tty_stream_no_demux (line 285) | def test_exec_command_tty_stream_no_demux(self): method test_exec_command_tty_no_stream_demux (line 297) | def test_exec_command_tty_no_stream_demux(self): method test_exec_command_tty_stream_demux (line 303) | def test_exec_command_tty_stream_demux(self): FILE: tests/integration/api_healthcheck_test.py function wait_on_health_status (line 7) | def wait_on_health_status(client, container, status): class HealthcheckTest (line 14) | class HealthcheckTest(BaseAPIIntegrationTest): method test_healthcheck_shell_command (line 17) | def test_healthcheck_shell_command(self): method test_healthcheck_passes (line 28) | def test_healthcheck_passes(self): method test_healthcheck_fails (line 41) | def test_healthcheck_fails(self): method test_healthcheck_start_period (line 54) | def test_healthcheck_start_period(self): FILE: tests/integration/api_image_test.py class ListImagesTest (line 19) | class ListImagesTest(BaseAPIIntegrationTest): method test_images (line 20) | def test_images(self): method test_images_quiet (line 32) | def test_images_quiet(self): class PullImageTest (line 37) | class PullImageTest(BaseAPIIntegrationTest): method test_pull (line 38) | def test_pull(self): method test_pull_streaming (line 50) | def test_pull_streaming(self): method test_pull_invalid_platform (line 66) | def test_pull_invalid_platform(self): class CommitTest (line 76) | class CommitTest(BaseAPIIntegrationTest): method test_commit (line 77) | def test_commit(self): method test_commit_with_changes (line 91) | def test_commit_with_changes(self): class RemoveImageTest (line 104) | class RemoveImageTest(BaseAPIIntegrationTest): method test_remove (line 105) | def test_remove(self): class ImportImageTest (line 121) | class ImportImageTest(BaseAPIIntegrationTest): method write_dummy_tar_content (line 126) | def write_dummy_tar_content(self, n_bytes, tar_fd): method dummy_tar_stream (line 142) | def dummy_tar_stream(self, n_bytes): method dummy_tar_file (line 150) | def dummy_tar_file(self, n_bytes): method test_import_from_bytes (line 157) | def test_import_from_bytes(self): method test_import_from_file (line 177) | def test_import_from_file(self): method test_import_from_stream (line 193) | def test_import_from_stream(self): method test_import_image_from_data_with_changes (line 208) | def test_import_image_from_data_with_changes(self): method test_import_image_with_changes (line 230) | def test_import_image_with_changes(self): method test_get_load_image (line 252) | def test_get_load_image(self): method temporary_http_file_server (line 262) | def temporary_http_file_server(self, stream): method test_import_from_url (line 282) | def test_import_from_url(self): class PruneImagesTest (line 303) | class PruneImagesTest(BaseAPIIntegrationTest): method test_prune_images (line 304) | def test_prune_images(self): class SaveLoadImagesTest (line 331) | class SaveLoadImagesTest(BaseAPIIntegrationTest): method test_get_image_load_image (line 333) | def test_get_image_load_image(self): class InspectDistributionTest (line 354) | class InspectDistributionTest(BaseAPIIntegrationTest): method test_inspect_distribution (line 355) | def test_inspect_distribution(self): FILE: tests/integration/api_network_test.py class TestNetworks (line 10) | class TestNetworks(BaseAPIIntegrationTest): method tearDown (line 11) | def tearDown(self): method create_network (line 15) | def create_network(self, *args, **kwargs): method test_list_networks (line 21) | def test_list_networks(self): method test_inspect_network (line 35) | def test_inspect_network(self): method test_create_network_with_ipam_config (line 45) | def test_create_network_with_ipam_config(self): method test_create_network_with_host_driver_fails (line 82) | def test_create_network_with_host_driver_fails(self): method test_remove_network (line 86) | def test_remove_network(self): method test_connect_and_disconnect_container (line 93) | def test_connect_and_disconnect_container(self): method test_connect_and_force_disconnect_container (line 120) | def test_connect_and_force_disconnect_container(self): method test_connect_with_aliases (line 145) | def test_connect_with_aliases(self): method test_connect_on_container_create (line 161) | def test_connect_on_container_create(self): method test_create_with_aliases (line 181) | def test_create_with_aliases(self): method test_create_with_ipv4_address (line 207) | def test_create_with_ipv4_address(self): method test_create_with_ipv6_address (line 233) | def test_create_with_ipv6_address(self): method test_create_with_linklocal_ips (line 260) | def test_create_with_linklocal_ips(self): method test_create_with_driveropt (line 281) | def test_create_with_driveropt(self): method test_create_with_links (line 302) | def test_create_with_links(self): method test_create_check_duplicate (line 328) | def test_create_check_duplicate(self): method test_connect_with_links (line 334) | def test_connect_with_links(self): method test_connect_with_ipv4_address (line 360) | def test_connect_with_ipv4_address(self): method test_connect_with_ipv6_address (line 386) | def test_connect_with_ipv6_address(self): method test_connect_with_mac_address (line 413) | def test_connect_with_mac_address(self): method test_create_internal_networks (line 429) | def test_create_internal_networks(self): method test_create_network_with_labels (line 435) | def test_create_network_with_labels(self): method test_create_network_with_labels_wrong_type (line 448) | def test_create_network_with_labels_wrong_type(self): method test_create_network_ipv6_enabled (line 453) | def test_create_network_ipv6_enabled(self): method test_create_network_attachable (line 469) | def test_create_network_attachable(self): method test_create_network_ingress (line 476) | def test_create_network_ingress(self): method test_prune_networks (line 484) | def test_prune_networks(self): method test_create_inspect_network_with_scope (line 490) | def test_create_inspect_network_with_scope(self): method test_create_remove_network_with_space_in_name (line 508) | def test_create_remove_network_with_space_in_name(self): FILE: tests/integration/api_plugin_test.py class PluginTest (line 14) | class PluginTest(BaseAPIIntegrationTest): method teardown_class (line 16) | def teardown_class(cls): method teardown_method (line 23) | def teardown_method(self, method): method ensure_plugin_installed (line 38) | def ensure_plugin_installed(self, plugin_name): method test_enable_plugin (line 47) | def test_enable_plugin(self): method test_disable_plugin (line 56) | def test_disable_plugin(self): method test_inspect_plugin (line 68) | def test_inspect_plugin(self): method test_plugin_privileges (line 75) | def test_plugin_privileges(self): method test_list_plugins (line 83) | def test_list_plugins(self): method test_configure_plugin (line 90) | def test_configure_plugin(self): method test_remove_plugin (line 104) | def test_remove_plugin(self): method test_force_remove_plugin (line 109) | def test_force_remove_plugin(self): method test_install_plugin (line 115) | def test_install_plugin(self): method test_upgrade_plugin (line 128) | def test_upgrade_plugin(self): method test_create_plugin (line 137) | def test_create_plugin(self): FILE: tests/integration/api_secret_test.py class SecretAPITest (line 10) | class SecretAPITest(BaseAPIIntegrationTest): method setup_class (line 12) | def setup_class(cls): method teardown_class (line 18) | def teardown_class(cls): method test_create_secret (line 22) | def test_create_secret(self): method test_create_secret_unicode_data (line 31) | def test_create_secret_unicode_data(self): method test_inspect_secret (line 40) | def test_inspect_secret(self): method test_remove_secret (line 51) | def test_remove_secret(self): method test_list_secrets (line 62) | def test_list_secrets(self): FILE: tests/integration/api_service_test.py class ServiceTest (line 12) | class ServiceTest(BaseAPIIntegrationTest): method setup_class (line 14) | def setup_class(cls): method teardown_class (line 20) | def teardown_class(cls): method tearDown (line 24) | def tearDown(self): method get_service_name (line 32) | def get_service_name(self): method get_service_container (line 35) | def get_service_container(self, service_name, attempts=20, interval=0.5, method create_simple_service (line 52) | def create_simple_service(self, name=None, labels=None): method test_list_services (line 67) | def test_list_services(self): method test_list_services_filter_by_label (line 79) | def test_list_services_filter_by_label(self): method test_list_services_with_status (line 88) | def test_list_services_with_status(self): method test_inspect_service_by_id (line 101) | def test_inspect_service_by_id(self): method test_inspect_service_by_name (line 107) | def test_inspect_service_by_name(self): method test_inspect_service_insert_defaults (line 114) | def test_inspect_service_insert_defaults(self): method test_remove_service_by_id (line 124) | def test_remove_service_by_id(self): method test_remove_service_by_name (line 130) | def test_remove_service_by_name(self): method test_create_service_simple (line 136) | def test_create_service_simple(self): method test_service_logs (line 144) | def test_service_logs(self): method test_create_service_custom_log_driver (line 166) | def test_create_service_custom_log_driver(self): method test_create_service_with_volume_mount (line 183) | def test_create_service_with_volume_mount(self): method test_create_service_with_resources_constraints (line 205) | def test_create_service_with_resources_constraints(self): method _create_service_with_generic_resources (line 225) | def _create_service_with_generic_resources(self, generic_resources): method test_create_service_with_generic_resources (line 239) | def test_create_service_with_generic_resources(self): method test_create_service_with_invalid_generic_resources (line 271) | def test_create_service_with_invalid_generic_resources(self): method test_create_service_with_update_config (line 276) | def test_create_service_with_update_config(self): method test_create_service_with_failure_action_rollback (line 294) | def test_create_service_with_failure_action_rollback(self): method test_create_service_with_update_config_monitor (line 308) | def test_create_service_with_update_config_monitor(self): method test_create_service_with_rollback_config (line 325) | def test_create_service_with_rollback_config(self): method test_create_service_with_restart_policy (line 345) | def test_create_service_with_restart_policy(self): method test_create_service_with_custom_networks (line 360) | def test_create_service_with_custom_networks(self): method test_create_service_with_network_attachment_config (line 385) | def test_create_service_with_network_attachment_config(self): method test_create_service_with_placement (line 414) | def test_create_service_with_placement(self): method test_create_service_with_placement_object (line 427) | def test_create_service_with_placement_object(self): method test_create_service_with_placement_platform (line 443) | def test_create_service_with_placement_platform(self): method test_create_service_with_placement_preferences (line 456) | def test_create_service_with_placement_preferences(self): method test_create_service_with_placement_preferences_tuple (line 471) | def test_create_service_with_placement_preferences_tuple(self): method test_create_service_with_placement_maxreplicas (line 486) | def test_create_service_with_placement_maxreplicas(self): method test_create_service_with_endpoint_spec (line 498) | def test_create_service_with_endpoint_spec(self): method test_create_service_with_endpoint_spec_host_publish_mode (line 528) | def test_create_service_with_endpoint_spec_host_publish_mode(self): method test_create_service_with_env (line 547) | def test_create_service_with_env(self): method test_create_service_with_update_order (line 564) | def test_create_service_with_update_order(self): method test_create_service_with_tty (line 582) | def test_create_service_with_tty(self): method test_create_service_with_tty_dict (line 599) | def test_create_service_with_tty_dict(self): method test_create_service_global_mode (line 615) | def test_create_service_global_mode(self): method test_create_service_replicated_mode (line 628) | def test_create_service_replicated_mode(self): method test_create_service_global_job_mode (line 644) | def test_create_service_global_job_mode(self): method test_create_service_replicated_job_mode (line 658) | def test_create_service_replicated_job_mode(self): method test_update_service_force_update (line 677) | def test_update_service_force_update(self): method test_create_service_with_secret (line 698) | def test_create_service_with_secret(self): method test_create_service_with_unicode_secret (line 723) | def test_create_service_with_unicode_secret(self): method test_create_service_with_config (line 750) | def test_create_service_with_config(self): method test_create_service_with_unicode_config (line 775) | def test_create_service_with_unicode_config(self): method test_create_service_with_hosts (line 802) | def test_create_service_with_hosts(self): method test_create_service_with_hostname (line 820) | def test_create_service_with_hostname(self): method test_create_service_with_groups (line 835) | def test_create_service_with_groups(self): method test_create_service_with_dns_config (line 850) | def test_create_service_with_dns_config(self): method test_create_service_with_healthcheck (line 869) | def test_create_service_with_healthcheck(self): method test_create_service_with_readonly (line 891) | def test_create_service_with_readonly(self): method test_create_service_with_stop_signal (line 905) | def test_create_service_with_stop_signal(self): method test_create_service_with_privileges (line 922) | def test_create_service_with_privileges(self): method test_create_service_with_init (line 940) | def test_create_service_with_init(self): method test_update_service_with_defaults_name (line 954) | def test_update_service_with_defaults_name(self): method test_update_service_with_defaults_labels (line 977) | def test_update_service_with_defaults_labels(self): method test_update_service_with_defaults_mode (line 1004) | def test_update_service_with_defaults_mode(self): method test_update_service_with_defaults_container_labels (line 1033) | def test_update_service_with_defaults_container_labels(self): method test_update_service_with_defaults_update_config (line 1080) | def test_update_service_with_defaults_update_config(self): method test_update_service_with_defaults_networks (line 1111) | def test_update_service_with_defaults_networks(self): method test_update_service_with_defaults_endpoint_spec (line 1163) | def test_update_service_with_defaults_endpoint_spec(self): method test_update_service_remove_healthcheck (line 1221) | def test_update_service_remove_healthcheck(self): method test_update_service_remove_labels (line 1261) | def test_update_service_remove_labels(self): method test_update_service_remove_container_labels (line 1284) | def test_update_service_remove_container_labels(self): method test_update_service_with_network_change (line 1319) | def test_update_service_with_network_change(self): method _update_service (line 1400) | def _update_service(self, svc_id, *args, **kwargs): method test_create_service_cap_add (line 1420) | def test_create_service_cap_add(self): method test_create_service_cap_drop (line 1435) | def test_create_service_cap_drop(self): method test_create_service_with_sysctl (line 1450) | def test_create_service_with_sysctl(self): FILE: tests/integration/api_swarm_test.py class SwarmTest (line 11) | class SwarmTest(BaseAPIIntegrationTest): method setUp (line 12) | def setUp(self): method tearDown (line 17) | def tearDown(self): method test_init_swarm_simple (line 27) | def test_init_swarm_simple(self): method test_init_swarm_force_new_cluster (line 31) | def test_init_swarm_force_new_cluster(self): method test_init_swarm_custom_addr_pool_defaults (line 41) | def test_init_swarm_custom_addr_pool_defaults(self): method test_init_swarm_custom_addr_pool_only_pool (line 48) | def test_init_swarm_custom_addr_pool_only_pool(self): method test_init_swarm_custom_addr_pool_only_subnet_size (line 55) | def test_init_swarm_custom_addr_pool_only_subnet_size(self): method test_init_swarm_custom_addr_pool_both_args (line 62) | def test_init_swarm_custom_addr_pool_both_args(self): method test_init_already_in_cluster (line 70) | def test_init_already_in_cluster(self): method test_init_swarm_custom_raft_spec (line 76) | def test_init_swarm_custom_raft_spec(self): method test_init_swarm_with_ca_config (line 86) | def test_init_swarm_with_ca_config(self): method test_init_swarm_with_autolock_managers (line 101) | def test_init_swarm_with_autolock_managers(self): method test_init_swarm_with_log_driver (line 118) | def test_init_swarm_with_log_driver(self): method test_leave_swarm (line 128) | def test_leave_swarm(self): method test_update_swarm (line 140) | def test_update_swarm(self): method test_list_nodes (line 171) | def test_list_nodes(self): method test_inspect_node (line 190) | def test_inspect_node(self): method test_update_node (line 202) | def test_update_node(self): method test_remove_main_node (line 225) | def test_remove_main_node(self): method test_rotate_manager_unlock_key (line 242) | def test_rotate_manager_unlock_key(self): method test_init_swarm_data_path_addr (line 256) | def test_init_swarm_data_path_addr(self): method test_init_swarm_data_path_port (line 260) | def test_init_swarm_data_path_port(self): FILE: tests/integration/api_volume_test.py class TestVolumes (line 9) | class TestVolumes(BaseAPIIntegrationTest): method test_create_volume (line 10) | def test_create_volume(self): method test_create_volume_invalid_driver (line 19) | def test_create_volume_invalid_driver(self): method test_list_volumes (line 31) | def test_list_volumes(self): method test_inspect_volume (line 40) | def test_inspect_volume(self): method test_inspect_nonexistent_volume (line 47) | def test_inspect_nonexistent_volume(self): method test_remove_volume (line 52) | def test_remove_volume(self): method test_force_remove_volume (line 59) | def test_force_remove_volume(self): method test_prune_volumes (line 66) | def test_prune_volumes(self): method test_remove_nonexistent_volume (line 72) | def test_remove_nonexistent_volume(self): FILE: tests/integration/base.py class BaseIntegrationTest (line 14) | class BaseIntegrationTest(unittest.TestCase): method setUp (line 20) | def setUp(self): method tearDown (line 30) | def tearDown(self): class BaseAPIIntegrationTest (line 72) | class BaseAPIIntegrationTest(BaseIntegrationTest): method setUp (line 78) | def setUp(self): method tearDown (line 82) | def tearDown(self): method get_client_instance (line 87) | def get_client_instance(): method _init_swarm (line 93) | def _init_swarm(client, **kwargs): method run_container (line 98) | def run_container(self, *args, **kwargs): method create_and_start (line 111) | def create_and_start(self, image=TEST_IMG, command='top', **kwargs): method execute (line 118) | def execute(self, container, cmd, exit_code=0, **kwargs): method init_swarm (line 126) | def init_swarm(self, **kwargs): FILE: tests/integration/client_test.py class ClientTest (line 11) | class ClientTest(unittest.TestCase): method test_info (line 14) | def test_info(self): method test_ping (line 19) | def test_ping(self): method test_version (line 22) | def test_version(self): method test_df (line 26) | def test_df(self): class CancellableEventsTest (line 34) | class CancellableEventsTest(unittest.TestCase): method test_cancel_events (line 37) | def test_cancel_events(self): FILE: tests/integration/conftest.py function setup_test_session (line 13) | def setup_test_session(): FILE: tests/integration/context_api_test.py class ContextLifecycleTest (line 13) | class ContextLifecycleTest(BaseAPIIntegrationTest): method test_lifecycle (line 14) | def test_lifecycle(self): method test_context_remove (line 49) | def test_context_remove(self): method test_load_context_without_orchestrator (line 57) | def test_load_context_without_orchestrator(self): FILE: tests/integration/credentials/store_test.py class TestStore (line 17) | class TestStore: method teardown_method (line 18) | def teardown_method(self): method setup_method (line 25) | def setup_method(self): method get_random_servername (line 37) | def get_random_servername(self): method test_store_and_get (line 42) | def test_store_and_get(self): method test_get_nonexistent (line 52) | def test_get_nonexistent(self): method test_store_and_erase (line 57) | def test_store_and_erase(self): method test_unicode_strings (line 64) | def test_unicode_strings(self): method test_list (line 74) | def test_list(self): method test_execute_with_env_override (line 84) | def test_execute_with_env_override(self): method test_unavailable_store (line 91) | def test_unavailable_store(self): FILE: tests/integration/credentials/utils_test.py function test_create_environment_dict (line 8) | def test_create_environment_dict(): FILE: tests/integration/errors_test.py class ErrorsTest (line 8) | class ErrorsTest(BaseAPIIntegrationTest): method test_api_error_parses_json (line 9) | def test_api_error_parses_json(self): FILE: tests/integration/models_containers_test.py class ContainerCollectionTest (line 13) | class ContainerCollectionTest(BaseIntegrationTest): method test_run (line 15) | def test_run(self): method test_run_detach (line 21) | def test_run_detach(self): method test_run_with_error (line 28) | def test_run_with_error(self): method test_run_with_image_that_does_not_exist (line 37) | def test_run_with_image_that_does_not_exist(self): method test_run_with_volume (line 45) | def test_run_with_volume(self): method test_run_with_named_volume (line 66) | def test_run_with_named_volume(self): method test_run_with_network (line 88) | def test_run_with_network(self): method test_run_with_networking_config (line 106) | def test_run_with_networking_config(self): method test_run_with_networking_config_with_undeclared_network (line 140) | def test_run_with_networking_config_with_undeclared_network(self): method test_run_with_networking_config_only_undeclared_network (line 168) | def test_run_with_networking_config_only_undeclared_network(self): method test_run_with_none_driver (line 199) | def test_run_with_none_driver(self): method test_run_with_json_file_driver (line 208) | def test_run_with_json_file_driver(self): method test_run_with_auto_remove (line 218) | def test_run_with_auto_remove(self): method test_run_with_auto_remove_error (line 228) | def test_run_with_auto_remove_error(self): method test_run_with_streamed_logs (line 240) | def test_run_with_streamed_logs(self): method test_run_with_streamed_logs_and_cancel (line 252) | def test_run_with_streamed_logs_and_cancel(self): method test_run_with_proxy_config (line 266) | def test_run_with_proxy_config(self): method test_get (line 277) | def test_get(self): method test_list (line 284) | def test_list(self): method test_list_sparse (line 302) | def test_list_sparse(self): class ContainerTest (line 323) | class ContainerTest(BaseIntegrationTest): method test_commit (line 325) | def test_commit(self): method test_diff (line 338) | def test_diff(self): method test_exec_run_success (line 345) | def test_exec_run_success(self): method test_exec_run_error_code_from_exec (line 355) | def test_exec_run_error_code_from_exec(self): method test_exec_run_failed (line 364) | def test_exec_run_failed(self): method test_kill (line 376) | def test_kill(self): method test_logs (line 387) | def test_logs(self): method test_pause (line 395) | def test_pause(self): method test_remove (line 406) | def test_remove(self): method test_rename (line 416) | def test_rename(self): method test_restart (line 426) | def test_restart(self): method test_start (line 436) | def test_start(self): method test_stats (line 445) | def test_stats(self): method test_ports_target_none (line 454) | def test_ports_target_none(self): method test_ports_target_tuple (line 474) | def test_ports_target_tuple(self): method test_ports_target_list (line 494) | def test_ports_target_list(self): method test_stop (line 514) | def test_stop(self): method test_top (line 523) | def test_top(self): method test_update (line 531) | def test_update(self): method test_wait (line 541) | def test_wait(self): method test_create_with_volume_driver (line 552) | def test_create_with_volume_driver(self): FILE: tests/integration/models_images_test.py class ImageCollectionTest (line 12) | class ImageCollectionTest(BaseIntegrationTest): method test_build (line 14) | def test_build(self): method test_build_with_error (line 24) | def test_build_with_error(self): method test_build_with_multiple_success (line 36) | def test_build_with_multiple_success(self): method test_build_with_success_build_output (line 47) | def test_build_with_success_build_output(self): method test_list (line 58) | def test_list(self): method test_list_with_repository (line 63) | def test_list_with_repository(self): method test_pull (line 69) | def test_pull(self): method test_pull_with_tag (line 74) | def test_pull_with_tag(self): method test_pull_with_sha (line 79) | def test_pull_with_sha(self): method test_pull_multiple (line 88) | def test_pull_multiple(self): method test_load_error (line 94) | def test_load_error(self): method test_save_and_load (line 99) | def test_save_and_load(self): method test_save_and_load_repo_name (line 113) | def test_save_and_load_repo_name(self): method test_save_name_error (line 133) | def test_save_name_error(self): class ImageTest (line 140) | class ImageTest(BaseIntegrationTest): method test_tag_and_remove (line 142) | def test_tag_and_remove(self): function get_ids (line 163) | def get_ids(images): FILE: tests/integration/models_networks_test.py class NetworkCollectionTest (line 7) | class NetworkCollectionTest(BaseIntegrationTest): method test_create (line 9) | def test_create(self): method test_get (line 17) | def test_get(self): method test_list_remove (line 25) | def test_list_remove(self): class NetworkTest (line 51) | class NetworkTest(BaseIntegrationTest): method test_connect_disconnect (line 53) | def test_connect_disconnect(self): FILE: tests/integration/models_nodes_test.py class NodesTest (line 9) | class NodesTest(unittest.TestCase): method setUp (line 10) | def setUp(self): method tearDown (line 13) | def tearDown(self): method test_list_get_update (line 16) | def test_list_get_update(self): FILE: tests/integration/models_resources_test.py class ModelTest (line 6) | class ModelTest(BaseIntegrationTest): method test_reload (line 8) | def test_reload(self): FILE: tests/integration/models_services_test.py class ServiceTest (line 13) | class ServiceTest(unittest.TestCase): method setUpClass (line 15) | def setUpClass(cls): method tearDownClass (line 21) | def tearDownClass(cls): method test_create (line 24) | def test_create(self): method test_create_with_network (line 47) | def test_create_with_network(self): method test_get (line 66) | def test_get(self): method test_list_remove (line 77) | def test_list_remove(self): method test_tasks (line 88) | def test_tasks(self): method test_update (line 112) | def test_update(self): method test_update_retains_service_labels (line 131) | def test_update_retains_service_labels(self): method test_update_retains_container_labels (line 151) | def test_update_retains_container_labels(self): method test_update_remove_service_labels (line 171) | def test_update_remove_service_labels(self): method test_update_retains_networks (line 192) | def test_update_retains_networks(self): method test_scale_service (line 217) | def test_scale_service(self): method test_scale_method_service (line 241) | def test_scale_method_service(self): method test_scale_method_global_service (line 263) | def test_scale_method_global_service(self): method test_force_update_service (line 285) | def test_force_update_service(self): method test_force_update_service_using_bool (line 307) | def test_force_update_service_using_bool(self): method test_force_update_service_using_shorthand_method (line 329) | def test_force_update_service_using_shorthand_method(self): method test_create_cap_add (line 344) | def test_create_cap_add(self): method test_create_cap_drop (line 363) | def test_create_cap_drop(self): FILE: tests/integration/models_swarm_test.py class SwarmTest (line 11) | class SwarmTest(unittest.TestCase): method setUp (line 12) | def setUp(self): method tearDown (line 15) | def tearDown(self): method test_init_update_leave (line 18) | def test_init_update_leave(self): method test_join_on_already_joined_swarm (line 36) | def test_join_on_already_joined_swarm(self): FILE: tests/integration/models_volumes_test.py class VolumesTest (line 6) | class VolumesTest(BaseIntegrationTest): method test_create_get (line 7) | def test_create_get(self): method test_list_remove (line 22) | def test_list_remove(self): FILE: tests/integration/regression_test.py class TestRegressions (line 11) | class TestRegressions(BaseAPIIntegrationTest): method test_443_handle_nonchunked_response_in_stream (line 13) | def test_443_handle_nonchunked_response_in_stream(self): method test_542_truncate_ids_client_side (line 21) | def test_542_truncate_ids_client_side(self): method test_647_support_doubleslash_in_image_names (line 28) | def test_647_support_doubleslash_in_image_names(self): method test_649_handle_timeout_value_none (line 32) | def test_649_handle_timeout_value_none(self): method test_715_handle_user_param_as_int_value (line 38) | def test_715_handle_user_param_as_int_value(self): method test_792_explicit_port_protocol (line 46) | def test_792_explicit_port_protocol(self): FILE: tests/ssh/api_build_test.py class BuildTest (line 15) | class BuildTest(BaseAPIIntegrationTest): method test_build_with_proxy (line 16) | def test_build_with_proxy(self): method test_build_with_proxy_and_buildargs (line 35) | def test_build_with_proxy_and_buildargs(self): method test_build_streaming (line 58) | def test_build_streaming(self): method test_build_from_stringio (line 72) | def test_build_from_stringio(self): method test_build_with_dockerignore (line 88) | def test_build_with_dockerignore(self): method test_build_with_buildargs (line 143) | def test_build_with_buildargs(self): method test_build_shmsize (line 161) | def test_build_shmsize(self): method test_build_isolation (line 181) | def test_build_isolation(self): method test_build_labels (line 196) | def test_build_labels(self): method test_build_with_cache_from (line 214) | def test_build_with_cache_from(self): method test_build_container_with_target (line 250) | def test_build_container_with_target(self): method test_build_with_network_mode (line 272) | def test_build_with_network_mode(self): method test_build_with_extra_hosts (line 314) | def test_build_with_extra_hosts(self): method test_build_squash (line 345) | def test_build_squash(self): method test_build_stderr_data (line 369) | def test_build_stderr_data(self): method test_build_gzip_encoding (line 386) | def test_build_gzip_encoding(self): method test_build_with_dockerfile_empty_lines (line 407) | def test_build_with_dockerfile_empty_lines(self): method test_build_gzip_custom_encoding (line 429) | def test_build_gzip_custom_encoding(self): method test_build_invalid_platform (line 435) | def test_build_invalid_platform(self): method test_build_out_of_context_dockerfile (line 448) | def test_build_out_of_context_dockerfile(self): method test_build_in_context_dockerfile (line 483) | def test_build_in_context_dockerfile(self): method test_build_in_context_nested_dockerfile (line 514) | def test_build_in_context_nested_dockerfile(self): method test_build_in_context_abs_dockerfile (line 547) | def test_build_in_context_abs_dockerfile(self): method test_prune_builds (line 585) | def test_prune_builds(self): FILE: tests/ssh/base.py class BaseIntegrationTest (line 16) | class BaseIntegrationTest(unittest.TestCase): method setUp (line 22) | def setUp(self): method tearDown (line 32) | def tearDown(self): class BaseAPIIntegrationTest (line 76) | class BaseAPIIntegrationTest(BaseIntegrationTest): method setUpClass (line 82) | def setUpClass(cls): method tearDown (line 86) | def tearDown(self): method get_client_instance (line 91) | def get_client_instance(): method _init_swarm (line 100) | def _init_swarm(client, **kwargs): method run_container (line 105) | def run_container(self, *args, **kwargs): method create_and_start (line 118) | def create_and_start(self, image=TEST_IMG, command='top', **kwargs): method execute (line 125) | def execute(self, container, cmd, exit_code=0, **kwargs): method init_swarm (line 133) | def init_swarm(self, **kwargs): FILE: tests/ssh/connect_test.py class SSHConnectionTest (line 12) | class SSHConnectionTest(unittest.TestCase): method test_ssh_unknown_host (line 15) | def test_ssh_unknown_host(self): FILE: tests/unit/api_build_test.py class BuildTest (line 15) | class BuildTest(BaseAPIClientTest): method test_build_container (line 16) | def test_build_container(self): method test_build_container_pull (line 31) | def test_build_container_pull(self): method test_build_container_custom_context (line 46) | def test_build_container_custom_context(self): method test_build_container_custom_context_gzip (line 62) | def test_build_container_custom_context_gzip(self): method test_build_remote_with_registry_auth (line 79) | def test_build_remote_with_registry_auth(self): method test_build_container_with_named_dockerfile (line 118) | def test_build_container_with_named_dockerfile(self): method test_build_with_invalid_tag (line 121) | def test_build_with_invalid_tag(self): method test_build_container_with_container_limits (line 125) | def test_build_container_with_container_limits(self): method test_build_container_invalid_container_limits (line 136) | def test_build_container_invalid_container_limits(self): method test_set_auth_headers_with_empty_dict_and_auth_configs (line 140) | def test_set_auth_headers_with_empty_dict_and_auth_configs(self): method test_set_auth_headers_with_dict_and_auth_configs (line 161) | def test_set_auth_headers_with_dict_and_auth_configs(self): method test_set_auth_headers_with_dict_and_no_auth_configs (line 183) | def test_set_auth_headers_with_dict_and_no_auth_configs(self): method test_process_dockerfile_win_longpath_prefix (line 193) | def test_process_dockerfile_win_longpath_prefix(self): method test_process_dockerfile (line 225) | def test_process_dockerfile(self): FILE: tests/unit/api_container_test.py function fake_inspect_container_tty (line 23) | def fake_inspect_container_tty(self, container): class StartContainerTest (line 27) | class StartContainerTest(BaseAPIClientTest): method test_start_container (line 28) | def test_start_container(self): method test_start_container_none (line 37) | def test_start_container_none(self): method test_start_container_regression_573 (line 48) | def test_start_container_regression_573(self): method test_start_container_with_lxc_conf (line 51) | def test_start_container_with_lxc_conf(self): method test_start_container_with_lxc_conf_compat (line 58) | def test_start_container_with_lxc_conf_compat(self): method test_start_container_with_binds_ro (line 65) | def test_start_container_with_binds_ro(self): method test_start_container_with_binds_rw (line 76) | def test_start_container_with_binds_rw(self): method test_start_container_with_port_binds (line 84) | def test_start_container_with_port_binds(self): method test_start_container_with_links (line 97) | def test_start_container_with_links(self): method test_start_container_with_multiple_links (line 103) | def test_start_container_with_multiple_links(self): method test_start_container_with_links_as_list_of_tuples (line 113) | def test_start_container_with_links_as_list_of_tuples(self): method test_start_container_privileged (line 118) | def test_start_container_privileged(self): method test_start_container_with_dict_instead_of_id (line 122) | def test_start_container_with_dict_instead_of_id(self): class CreateContainerTest (line 132) | class CreateContainerTest(BaseAPIClientTest): method test_create_container (line 133) | def test_create_container(self): method test_create_container_with_binds (line 147) | def test_create_container_with_binds(self): method test_create_container_with_volume_string (line 166) | def test_create_container_with_volume_string(self): method test_create_container_with_ports (line 185) | def test_create_container_with_ports(self): method test_create_container_with_entrypoint (line 206) | def test_create_container_with_entrypoint(self): method test_create_container_with_host_config_cpu_shares (line 223) | def test_create_container_with_host_config_cpu_shares(self): method test_create_container_with_host_config_cpuset (line 247) | def test_create_container_with_host_config_cpuset(self): method test_create_container_with_host_config_cpuset_mems (line 271) | def test_create_container_with_host_config_cpuset_mems(self): method test_create_container_with_cgroup_parent (line 295) | def test_create_container_with_cgroup_parent(self): method test_create_container_with_working_dir (line 309) | def test_create_container_with_working_dir(self): method test_create_container_with_stdin_open (line 326) | def test_create_container_with_stdin_open(self): method test_create_named_container (line 340) | def test_create_named_container(self): method test_create_container_with_platform (line 356) | def test_create_container_with_platform(self): method test_create_container_with_mem_limit_as_int (line 372) | def test_create_container_with_mem_limit_as_int(self): method test_create_container_with_mem_limit_as_string (line 383) | def test_create_container_with_mem_limit_as_string(self): method test_create_container_with_mem_limit_as_string_with_k_unit (line 394) | def test_create_container_with_mem_limit_as_string_with_k_unit(self): method test_create_container_with_mem_limit_as_string_with_m_unit (line 405) | def test_create_container_with_mem_limit_as_string_with_m_unit(self): method test_create_container_with_mem_limit_as_string_with_g_unit (line 416) | def test_create_container_with_mem_limit_as_string_with_g_unit(self): method test_create_container_with_mem_limit_as_string_with_wrong_value (line 427) | def test_create_container_with_mem_limit_as_string_with_wrong_value(se... method test_create_container_with_lxc_conf (line 434) | def test_create_container_with_lxc_conf(self): method test_create_container_with_lxc_conf_compat (line 453) | def test_create_container_with_lxc_conf_compat(self): method test_create_container_with_binds_ro (line 471) | def test_create_container_with_binds_ro(self): method test_create_container_with_binds_rw (line 493) | def test_create_container_with_binds_rw(self): method test_create_container_with_binds_mode (line 515) | def test_create_container_with_binds_mode(self): method test_create_container_with_binds_mode_and_ro_error (line 537) | def test_create_container_with_binds_mode_and_ro_error(self): method test_create_container_with_binds_list (line 551) | def test_create_container_with_binds_list(self): method test_create_container_with_port_binds (line 573) | def test_create_container_with_port_binds(self): method test_create_container_with_mac_address (line 616) | def test_create_container_with_mac_address(self): method test_create_container_with_links (line 630) | def test_create_container_with_links(self): method test_create_container_with_multiple_links (line 649) | def test_create_container_with_multiple_links(self): method test_create_container_with_links_as_list_of_tuples (line 672) | def test_create_container_with_links_as_list_of_tuples(self): method test_create_container_privileged (line 691) | def test_create_container_privileged(self): method test_create_container_with_restart_policy (line 706) | def test_create_container_with_restart_policy(self): method test_create_container_with_added_capabilities (line 729) | def test_create_container_with_added_capabilities(self): method test_create_container_with_dropped_capabilities (line 744) | def test_create_container_with_dropped_capabilities(self): method test_create_container_with_devices (line 759) | def test_create_container_with_devices(self): method test_create_container_with_device_requests (line 787) | def test_create_container_with_device_requests(self): method test_create_container_with_labels_dict (line 848) | def test_create_container_with_labels_dict(self): method test_create_container_with_labels_list (line 865) | def test_create_container_with_labels_list(self): method test_create_container_with_named_volume (line 886) | def test_create_container_with_named_volume(self): method test_create_container_with_stop_signal (line 910) | def test_create_container_with_stop_signal(self): method test_create_container_with_aliases (line 928) | def test_create_container_with_aliases(self): method test_create_container_with_tmpfs_list (line 960) | def test_create_container_with_tmpfs_list(self): method test_create_container_with_tmpfs_dict (line 984) | def test_create_container_with_tmpfs_dict(self): method test_create_container_with_sysctl (line 1008) | def test_create_container_with_sysctl(self): method test_create_container_with_unicode_envvars (line 1030) | def test_create_container_with_unicode_envvars(self): method test_create_container_with_host_config_cpus (line 1049) | def test_create_container_with_host_config_cpus(self): method test_create_container_with_cgroupns (line 1078) | def test_create_container_with_cgroupns(self): class ContainerTest (line 1097) | class ContainerTest(BaseAPIClientTest): method test_list_containers (line 1098) | def test_list_containers(self): method test_resize_container (line 1115) | def test_resize_container(self): method test_rename_container (line 1130) | def test_rename_container(self): method test_wait (line 1144) | def test_wait(self): method test_wait_with_dict_instead_of_id (line 1154) | def test_wait_with_dict_instead_of_id(self): method test_logs (line 1164) | def test_logs(self): method test_logs_with_dict_instead_of_id (line 1180) | def test_logs_with_dict_instead_of_id(self): method test_log_streaming (line 1196) | def test_log_streaming(self): method test_log_following (line 1211) | def test_log_following(self): method test_log_following_backwards (line 1226) | def test_log_following_backwards(self): method test_log_streaming_and_following (line 1240) | def test_log_streaming_and_following(self): method test_log_tail (line 1255) | def test_log_tail(self): method test_log_since (line 1271) | def test_log_since(self): method test_log_since_with_float (line 1287) | def test_log_since_with_float(self): method test_log_since_with_datetime (line 1303) | def test_log_since_with_datetime(self): method test_log_since_with_invalid_value_raises_error (line 1320) | def test_log_since_with_invalid_value_raises_error(self): method test_log_tty (line 1327) | def test_log_tty(self): method test_diff (line 1346) | def test_diff(self): method test_diff_with_dict_instead_of_id (line 1356) | def test_diff_with_dict_instead_of_id(self): method test_port (line 1366) | def test_port(self): method test_stop_container (line 1375) | def test_stop_container(self): method test_stop_container_with_dict_instead_of_id (line 1387) | def test_stop_container_with_dict_instead_of_id(self): method test_pause_container (line 1400) | def test_pause_container(self): method test_unpause_container (line 1410) | def test_unpause_container(self): method test_kill_container (line 1420) | def test_kill_container(self): method test_kill_container_with_dict_instead_of_id (line 1430) | def test_kill_container_with_dict_instead_of_id(self): method test_kill_container_with_signal (line 1440) | def test_kill_container_with_signal(self): method test_restart_container (line 1450) | def test_restart_container(self): method test_restart_container_with_dict_instead_of_id (line 1461) | def test_restart_container_with_dict_instead_of_id(self): method test_remove_container (line 1472) | def test_remove_container(self): method test_remove_container_with_dict_instead_of_id (line 1482) | def test_remove_container_with_dict_instead_of_id(self): method test_export (line 1492) | def test_export(self): method test_export_with_dict_instead_of_id (line 1503) | def test_export_with_dict_instead_of_id(self): method test_inspect_container (line 1514) | def test_inspect_container(self): method test_inspect_container_undefined_id (line 1523) | def test_inspect_container_undefined_id(self): method test_container_stats (line 1530) | def test_container_stats(self): method test_container_stats_without_streaming (line 1541) | def test_container_stats_without_streaming(self): method test_container_stats_with_one_shot (line 1551) | def test_container_stats_with_one_shot(self): method test_container_top (line 1562) | def test_container_top(self): method test_container_top_with_psargs (line 1572) | def test_container_top_with_psargs(self): method test_container_update (line 1583) | def test_container_update(self): FILE: tests/unit/api_exec_test.py class ExecTest (line 12) | class ExecTest(BaseAPIClientTest): method test_exec_create (line 13) | def test_exec_create(self): method test_exec_start (line 34) | def test_exec_start(self): method test_exec_start_detached (line 51) | def test_exec_start_detached(self): method test_exec_inspect (line 66) | def test_exec_inspect(self): method test_exec_resize (line 72) | def test_exec_resize(self): FILE: tests/unit/api_image_test.py class ImageTest (line 18) | class ImageTest(BaseAPIClientTest): method test_image_viz (line 19) | def test_image_viz(self): method test_images (line 24) | def test_images(self): method test_images_name (line 34) | def test_images_name(self): method test_images_quiet (line 45) | def test_images_quiet(self): method test_image_ids (line 55) | def test_image_ids(self): method test_images_filters (line 65) | def test_images_filters(self): method test_pull (line 76) | def test_pull(self): method test_pull_stream (line 86) | def test_pull_stream(self): method test_commit (line 96) | def test_commit(self): method test_remove_image (line 116) | def test_remove_image(self): method test_image_history (line 126) | def test_image_history(self): method test_import_image (line 135) | def test_import_image(self): method test_import_image_from_bytes (line 154) | def test_import_image_from_bytes(self): method test_import_image_from_image (line 178) | def test_import_image_from_image(self): method test_inspect_image (line 197) | def test_inspect_image(self): method test_inspect_image_undefined_id (line 206) | def test_inspect_image_undefined_id(self): method test_push_image (line 213) | def test_push_image(self): method test_push_image_with_tag (line 230) | def test_push_image_with_tag(self): method test_push_image_with_auth (line 249) | def test_push_image_with_auth(self): method test_push_image_stream (line 274) | def test_push_image_stream(self): method test_tag_image (line 291) | def test_tag_image(self): method test_tag_image_tag (line 305) | def test_tag_image_tag(self): method test_tag_image_force (line 323) | def test_tag_image_force(self): method test_get_image (line 338) | def test_get_image(self): method test_load_image (line 348) | def test_load_image(self): method test_load_image_quiet (line 360) | def test_load_image_quiet(self): FILE: tests/unit/api_network_test.py class NetworkTest (line 9) | class NetworkTest(BaseAPIClientTest): method test_list_networks (line 10) | def test_list_networks(self): method test_create_network (line 45) | def test_create_network(self): method test_remove_network (line 93) | def test_remove_network(self): method test_inspect_network (line 103) | def test_inspect_network(self): method test_connect_container_to_network (line 123) | def test_connect_container_to_network(self): method test_disconnect_container_from_network (line 151) | def test_disconnect_container_from_network(self): FILE: tests/unit/api_test.py function response (line 30) | def response(status_code=200, content='', headers=None, reason=None, ela... function fake_resolve_authconfig (line 45) | def fake_resolve_authconfig(authconfig, registry=None, *args, **kwargs): function fake_inspect_container (line 49) | def fake_inspect_container(self, container, tty=False): function fake_resp (line 53) | def fake_resp(method, url, *args, **kwargs): function fake_get (line 68) | def fake_get(self, url, *args, **kwargs): function fake_post (line 72) | def fake_post(self, url, *args, **kwargs): function fake_put (line 76) | def fake_put(self, url, *args, **kwargs): function fake_delete (line 80) | def fake_delete(self, url, *args, **kwargs): function fake_read_from_socket (line 84) | def fake_read_from_socket(self, response, stream, tty=False, demux=False): class BaseAPIClientTest (line 92) | class BaseAPIClientTest(unittest.TestCase): method setUp (line 93) | def setUp(self): method tearDown (line 105) | def tearDown(self): method base_create_payload (line 109) | def base_create_payload(self, img='busybox', cmd=None): class DockerApiTest (line 120) | class DockerApiTest(BaseAPIClientTest): method test_ctor (line 121) | def test_ctor(self): method test_url_valid_resource (line 129) | def test_url_valid_resource(self): method test_url_invalid_resource (line 144) | def test_url_invalid_resource(self): method test_url_no_resource (line 148) | def test_url_no_resource(self): method test_url_unversioned_api (line 152) | def test_url_unversioned_api(self): method test_version (line 158) | def test_version(self): method test_version_no_api_version (line 167) | def test_version_no_api_version(self): method test_retrieve_server_version (line 176) | def test_retrieve_server_version(self): method test_auto_retrieve_server_version (line 182) | def test_auto_retrieve_server_version(self): method test_info (line 186) | def test_info(self): method test_search (line 195) | def test_search(self): method test_login (line 205) | def test_login(self): method test_events (line 221) | def test_events(self): method test_events_with_since_until (line 232) | def test_events_with_since_until(self): method test_events_with_filters (line 252) | def test_events_with_filters(self): method _socket_path_for_client_session (line 271) | def _socket_path_for_client_session(self, client): method test_url_compatibility_unix (line 275) | def test_url_compatibility_unix(self): method test_url_compatibility_unix_triple_slash (line 282) | def test_url_compatibility_unix_triple_slash(self): method test_url_compatibility_http_unix_triple_slash (line 289) | def test_url_compatibility_http_unix_triple_slash(self): method test_url_compatibility_http (line 296) | def test_url_compatibility_http(self): method test_url_compatibility_tcp (line 303) | def test_url_compatibility_tcp(self): method test_remove_link (line 310) | def test_remove_link(self): method test_create_host_config_secopt (line 320) | def test_create_host_config_secopt(self): method test_stream_helper_decoding (line 328) | def test_stream_helper_decoding(self): class UnixSocketStreamTest (line 365) | class UnixSocketStreamTest(unittest.TestCase): method setUp (line 366) | def setUp(self): method stop (line 382) | def stop(self): method _setup_socket (line 385) | def _setup_socket(self): method run_server (line 393) | def run_server(self): method early_response_sending_handler (line 411) | def early_response_sending_handler(self, connection): method test_early_stream_response (line 435) | def test_early_stream_response(self): class TCPSocketStreamTest (line 468) | class TCPSocketStreamTest(unittest.TestCase): method setup_class (line 481) | def setup_class(cls): method teardown_class (line 490) | def teardown_class(cls): method get_handler_class (line 496) | def get_handler_class(cls): method request (line 534) | def request(self, stream=None, tty=None, demux=None): method test_read_from_socket_tty (line 548) | def test_read_from_socket_tty(self): method test_read_from_socket_tty_demux (line 554) | def test_read_from_socket_tty_demux(self): method test_read_from_socket_no_tty (line 560) | def test_read_from_socket_no_tty(self): method test_read_from_socket_no_tty_demux (line 567) | def test_read_from_socket_no_tty_demux(self): method test_read_from_socket_no_stream_tty (line 574) | def test_read_from_socket_no_stream_tty(self): method test_read_from_socket_no_stream_tty_demux (line 578) | def test_read_from_socket_no_stream_tty_demux(self): method test_read_from_socket_no_stream_no_tty (line 582) | def test_read_from_socket_no_stream_no_tty(self): method test_read_from_socket_no_stream_no_tty_demux (line 586) | def test_read_from_socket_no_stream_no_tty_demux(self): class UserAgentTest (line 591) | class UserAgentTest(unittest.TestCase): method setUp (line 592) | def setUp(self): method tearDown (line 600) | def tearDown(self): method test_default_user_agent (line 603) | def test_default_user_agent(self): method test_custom_user_agent (line 612) | def test_custom_user_agent(self): class DisableSocketTest (line 623) | class DisableSocketTest(unittest.TestCase): class DummySocket (line 624) | class DummySocket: method __init__ (line 625) | def __init__(self, timeout=60): method settimeout (line 628) | def settimeout(self, timeout): method gettimeout (line 631) | def gettimeout(self): method setUp (line 634) | def setUp(self): method test_disable_socket_timeout (line 637) | def test_disable_socket_timeout(self): method test_disable_socket_timeout2 (line 645) | def test_disable_socket_timeout2(self): method test_disable_socket_timout_non_blocking (line 656) | def test_disable_socket_timout_non_blocking(self): FILE: tests/unit/api_volume_test.py class VolumeTest (line 9) | class VolumeTest(BaseAPIClientTest): method test_list_volumes (line 10) | def test_list_volumes(self): method test_list_volumes_and_filters (line 19) | def test_list_volumes_and_filters(self): method test_create_volume (line 30) | def test_create_volume(self): method test_create_volume_with_labels (line 44) | def test_create_volume_with_labels(self): method test_create_volume_with_invalid_labels (line 54) | def test_create_volume_with_invalid_labels(self): method test_create_volume_with_driver (line 59) | def test_create_volume_with_driver(self): method test_create_volume_invalid_opts_type (line 71) | def test_create_volume_invalid_opts_type(self): method test_create_volume_with_no_specified_name (line 88) | def test_create_volume_with_no_specified_name(self): method test_inspect_volume (line 97) | def test_inspect_volume(self): method test_remove_volume (line 109) | def test_remove_volume(self): FILE: tests/unit/auth_test.py class RegressionTest (line 16) | class RegressionTest(unittest.TestCase): method test_803_urlsafe_encode (line 17) | def test_803_urlsafe_encode(self): class ResolveRepositoryNameTest (line 27) | class ResolveRepositoryNameTest(unittest.TestCase): method test_resolve_repository_name_hub_library_image (line 28) | def test_resolve_repository_name_hub_library_image(self): method test_resolve_repository_name_dotted_hub_library_image (line 33) | def test_resolve_repository_name_dotted_hub_library_image(self): method test_resolve_repository_name_hub_image (line 38) | def test_resolve_repository_name_hub_image(self): method test_explicit_hub_index_library_image (line 43) | def test_explicit_hub_index_library_image(self): method test_explicit_legacy_hub_index_library_image (line 48) | def test_explicit_legacy_hub_index_library_image(self): method test_resolve_repository_name_private_registry (line 53) | def test_resolve_repository_name_private_registry(self): method test_resolve_repository_name_private_registry_with_port (line 58) | def test_resolve_repository_name_private_registry_with_port(self): method test_resolve_repository_name_private_registry_with_username (line 63) | def test_resolve_repository_name_private_registry_with_username(self): method test_resolve_repository_name_no_dots_but_port (line 68) | def test_resolve_repository_name_no_dots_but_port(self): method test_resolve_repository_name_no_dots_but_port_and_username (line 73) | def test_resolve_repository_name_no_dots_but_port_and_username(self): method test_resolve_repository_name_localhost (line 78) | def test_resolve_repository_name_localhost(self): method test_resolve_repository_name_localhost_with_username (line 83) | def test_resolve_repository_name_localhost_with_username(self): method test_invalid_index_name (line 88) | def test_invalid_index_name(self): function encode_auth (line 93) | def encode_auth(auth_info): class ResolveAuthTest (line 99) | class ResolveAuthTest(unittest.TestCase): method test_resolve_authconfig_hostname_only (line 112) | def test_resolve_authconfig_hostname_only(self): method test_resolve_authconfig_no_protocol (line 117) | def test_resolve_authconfig_no_protocol(self): method test_resolve_authconfig_no_path (line 122) | def test_resolve_authconfig_no_path(self): method test_resolve_authconfig_no_path_trailing_slash (line 127) | def test_resolve_authconfig_no_path_trailing_slash(self): method test_resolve_authconfig_no_path_wrong_secure_proto (line 132) | def test_resolve_authconfig_no_path_wrong_secure_proto(self): method test_resolve_authconfig_no_path_wrong_insecure_proto (line 137) | def test_resolve_authconfig_no_path_wrong_insecure_proto(self): method test_resolve_authconfig_path_wrong_proto (line 142) | def test_resolve_authconfig_path_wrong_proto(self): method test_resolve_authconfig_default_registry (line 147) | def test_resolve_authconfig_default_registry(self): method test_resolve_authconfig_default_explicit_none (line 152) | def test_resolve_authconfig_default_explicit_none(self): method test_resolve_authconfig_fully_explicit (line 157) | def test_resolve_authconfig_fully_explicit(self): method test_resolve_authconfig_legacy_config (line 162) | def test_resolve_authconfig_legacy_config(self): method test_resolve_authconfig_no_match (line 167) | def test_resolve_authconfig_no_match(self): method test_resolve_registry_and_auth_library_image (line 172) | def test_resolve_registry_and_auth_library_image(self): method test_resolve_registry_and_auth_hub_image (line 178) | def test_resolve_registry_and_auth_hub_image(self): method test_resolve_registry_and_auth_explicit_hub (line 184) | def test_resolve_registry_and_auth_explicit_hub(self): method test_resolve_registry_and_auth_explicit_legacy_hub (line 190) | def test_resolve_registry_and_auth_explicit_legacy_hub(self): method test_resolve_registry_and_auth_private_registry (line 196) | def test_resolve_registry_and_auth_private_registry(self): method test_resolve_registry_and_auth_unauthenticated_registry (line 202) | def test_resolve_registry_and_auth_unauthenticated_registry(self): method test_resolve_auth_with_empty_credstore_and_auth_dict (line 208) | def test_resolve_auth_with_empty_credstore_and_auth_dict(self): class LoadConfigTest (line 224) | class LoadConfigTest(unittest.TestCase): method test_load_config_no_file (line 225) | def test_load_config_no_file(self): method test_load_legacy_config (line 231) | def test_load_legacy_config(self): method test_load_json_config (line 249) | def test_load_json_config(self): method test_load_modern_json_config (line 268) | def test_load_modern_json_config(self): method test_load_config_with_random_name (line 290) | def test_load_config_with_random_name(self): method test_load_config_custom_config_env (line 319) | def test_load_config_custom_config_env(self): method test_load_config_custom_config_env_with_auths (line 346) | def test_load_config_custom_config_env_with_auths(self): method test_load_config_custom_config_env_utf8 (line 374) | def test_load_config_custom_config_env_utf8(self): method test_load_config_unknown_keys (line 403) | def test_load_config_unknown_keys(self): method test_load_config_invalid_auth_dict (line 416) | def test_load_config_invalid_auth_dict(self): method test_load_config_identity_token (line 431) | def test_load_config_identity_token(self): class CredstoreTest (line 456) | class CredstoreTest(unittest.TestCase): method setUp (line 457) | def setUp(self): method test_get_credential_store (line 468) | def test_get_credential_store(self): method test_get_credential_store_no_default (line 481) | def test_get_credential_store_no_default(self): method test_get_credential_store_default_index (line 491) | def test_get_credential_store_default_index(self): method test_get_credential_store_with_plain_dict (line 503) | def test_get_credential_store_with_plain_dict(self): method test_get_all_credentials_credstore_only (line 522) | def test_get_all_credentials_credstore_only(self): method test_get_all_credentials_with_empty_credhelper (line 546) | def test_get_all_credentials_with_empty_credhelper(self): method test_get_all_credentials_with_credhelpers_only (line 575) | def test_get_all_credentials_with_credhelpers_only(self): method test_get_all_credentials_with_auths_entries (line 607) | def test_get_all_credentials_with_auths_entries(self): method test_get_all_credentials_with_empty_auths_entry (line 642) | def test_get_all_credentials_with_empty_auths_entry(self): method test_get_all_credentials_credstore_overrides_auth_entry (line 668) | def test_get_all_credentials_credstore_overrides_auth_entry(self): method test_get_all_credentials_helpers_override_default (line 698) | def test_get_all_credentials_helpers_override_default(self): method test_get_all_credentials_3_sources (line 728) | def test_get_all_credentials_3_sources(self): class InMemoryStore (line 775) | class InMemoryStore(credentials.Store): method __init__ (line 776) | def __init__(self, *args, **kwargs): method get (line 779) | def get(self, server): method store (line 785) | def store(self, server, username, secret): method list (line 792) | def list(self): method erase (line 797) | def erase(self, server): FILE: tests/unit/client_test.py class ClientTest (line 23) | class ClientTest(unittest.TestCase): method test_events (line 26) | def test_events(self, mock_func): method test_info (line 34) | def test_info(self, mock_func): method test_ping (line 41) | def test_ping(self, mock_func): method test_version (line 48) | def test_version(self, mock_func): method test_call_api_client_method (line 54) | def test_call_api_client_method(self): method test_call_containers (line 68) | def test_call_containers(self): method test_default_pool_size_unix (line 84) | def test_default_pool_size_unix(self, mock_obj): method test_default_pool_size_win (line 103) | def test_default_pool_size_win(self, mock_obj): method test_pool_size_unix (line 119) | def test_pool_size_unix(self, mock_obj): method test_pool_size_win (line 139) | def test_pool_size_win(self, mock_obj): class FromEnvTest (line 153) | class FromEnvTest(unittest.TestCase): method setUp (line 155) | def setUp(self): method tearDown (line 158) | def tearDown(self): method test_from_env (line 162) | def test_from_env(self): method test_from_env_with_version (line 172) | def test_from_env_with_version(self): method test_from_env_without_version_uses_default (line 180) | def test_from_env_without_version_uses_default(self): method test_from_env_without_timeout_uses_default (line 185) | def test_from_env_without_timeout_uses_default(self): method test_default_pool_size_from_env_unix (line 195) | def test_default_pool_size_from_env_unix(self, mock_obj): method test_default_pool_size_from_env_win (line 212) | def test_default_pool_size_from_env_win(self, mock_obj): method test_pool_size_from_env_unix (line 227) | def test_pool_size_from_env_unix(self, mock_obj): method test_pool_size_from_env_win (line 247) | def test_pool_size_from_env_win(self, mock_obj): FILE: tests/unit/context_test.py class BaseContextTest (line 10) | class BaseContextTest(unittest.TestCase): method test_url_compatibility_on_linux (line 14) | def test_url_compatibility_on_linux(self): method test_url_compatibility_on_windows (line 21) | def test_url_compatibility_on_windows(self): method test_fail_on_default_context_create (line 25) | def test_fail_on_default_context_create(self): method test_default_in_context_list (line 29) | def test_default_in_context_list(self): method test_get_current_context (line 37) | def test_get_current_context(self): method test_https_host (line 40) | def test_https_host(self): method test_context_inspect_without_params (line 44) | def test_context_inspect_without_params(self): FILE: tests/unit/dockertypes_test.py function create_host_config (line 22) | def create_host_config(*args, **kwargs): class HostConfigTest (line 26) | class HostConfigTest(unittest.TestCase): method test_create_host_config_no_options_newer_api_version (line 27) | def test_create_host_config_no_options_newer_api_version(self): method test_create_host_config_invalid_cpu_cfs_types (line 31) | def test_create_host_config_invalid_cpu_cfs_types(self): method test_create_host_config_with_cpu_quota (line 44) | def test_create_host_config_with_cpu_quota(self): method test_create_host_config_with_cpu_period (line 48) | def test_create_host_config_with_cpu_period(self): method test_create_host_config_with_blkio_constraints (line 52) | def test_create_host_config_with_blkio_constraints(self): method test_create_host_config_with_shm_size (line 69) | def test_create_host_config_with_shm_size(self): method test_create_host_config_with_shm_size_in_mb (line 73) | def test_create_host_config_with_shm_size_in_mb(self): method test_create_host_config_with_oom_kill_disable (line 77) | def test_create_host_config_with_oom_kill_disable(self): method test_create_host_config_with_userns_mode (line 81) | def test_create_host_config_with_userns_mode(self): method test_create_host_config_with_uts (line 89) | def test_create_host_config_with_uts(self): method test_create_host_config_with_oom_score_adj (line 95) | def test_create_host_config_with_oom_score_adj(self): method test_create_host_config_with_dns_opt (line 103) | def test_create_host_config_with_dns_opt(self): method test_create_host_config_with_mem_reservation (line 112) | def test_create_host_config_with_mem_reservation(self): method test_create_host_config_with_kernel_memory (line 116) | def test_create_host_config_with_kernel_memory(self): method test_create_host_config_with_pids_limit (line 120) | def test_create_host_config_with_pids_limit(self): method test_create_host_config_with_isolation (line 129) | def test_create_host_config_with_isolation(self): method test_create_host_config_pid_mode (line 140) | def test_create_host_config_pid_mode(self): method test_create_host_config_invalid_mem_swappiness (line 149) | def test_create_host_config_invalid_mem_swappiness(self): method test_create_host_config_with_volume_driver (line 153) | def test_create_host_config_with_volume_driver(self): method test_create_host_config_invalid_cpu_count_types (line 157) | def test_create_host_config_invalid_cpu_count_types(self): method test_create_host_config_with_cpu_count (line 161) | def test_create_host_config_with_cpu_count(self): method test_create_host_config_invalid_cpu_percent_types (line 167) | def test_create_host_config_invalid_cpu_percent_types(self): method test_create_host_config_with_cpu_percent (line 171) | def test_create_host_config_with_cpu_percent(self): method test_create_host_config_invalid_nano_cpus_types (line 177) | def test_create_host_config_invalid_nano_cpus_types(self): method test_create_host_config_with_nano_cpus (line 181) | def test_create_host_config_with_nano_cpus(self): method test_create_host_config_with_cpu_rt_period_types (line 187) | def test_create_host_config_with_cpu_rt_period_types(self): method test_create_host_config_with_cpu_rt_period (line 191) | def test_create_host_config_with_cpu_rt_period(self): method test_ctrate_host_config_with_cpu_rt_runtime_types (line 197) | def test_ctrate_host_config_with_cpu_rt_runtime_types(self): method test_create_host_config_with_cpu_rt_runtime (line 201) | def test_create_host_config_with_cpu_rt_runtime(self): class ContainerSpecTest (line 208) | class ContainerSpecTest(unittest.TestCase): method test_parse_mounts (line 209) | def test_parse_mounts(self): class UlimitTest (line 224) | class UlimitTest(unittest.TestCase): method test_create_host_config_dict_ulimit (line 225) | def test_create_host_config_dict_ulimit(self): method test_create_host_config_dict_ulimit_capitals (line 238) | def test_create_host_config_dict_ulimit_capitals(self): method test_create_host_config_obj_ulimit (line 252) | def test_create_host_config_obj_ulimit(self): method test_ulimit_invalid_type (line 263) | def test_ulimit_invalid_type(self): class LogConfigTest (line 272) | class LogConfigTest(unittest.TestCase): method test_create_host_config_dict_logconfig (line 273) | def test_create_host_config_dict_logconfig(self): method test_create_host_config_obj_logconfig (line 282) | def test_create_host_config_obj_logconfig(self): method test_logconfig_invalid_config_type (line 291) | def test_logconfig_invalid_config_type(self): class EndpointConfigTest (line 296) | class EndpointConfigTest(unittest.TestCase): method test_create_endpoint_config_with_aliases (line 297) | def test_create_endpoint_config_with_aliases(self): class IPAMConfigTest (line 305) | class IPAMConfigTest(unittest.TestCase): method test_create_ipam_config (line 306) | def test_create_ipam_config(self): class ServiceModeTest (line 322) | class ServiceModeTest(unittest.TestCase): method test_replicated_simple (line 323) | def test_replicated_simple(self): method test_global_simple (line 329) | def test_global_simple(self): method test_replicated_job_simple (line 335) | def test_replicated_job_simple(self): method test_global_job_simple (line 341) | def test_global_job_simple(self): method test_global_replicas_error (line 347) | def test_global_replicas_error(self): method test_global_job_replicas_simple (line 351) | def test_global_job_replicas_simple(self): method test_replicated_replicas (line 355) | def test_replicated_replicas(self): method test_replicated_replicas_0 (line 361) | def test_replicated_replicas_0(self): method test_invalid_mode (line 367) | def test_invalid_mode(self): class MountTest (line 372) | class MountTest(unittest.TestCase): method test_parse_mount_string_ro (line 373) | def test_parse_mount_string_ro(self): method test_parse_mount_string_rw (line 379) | def test_parse_mount_string_rw(self): method test_parse_mount_string_short_form (line 385) | def test_parse_mount_string_short_form(self): method test_parse_mount_string_no_source (line 391) | def test_parse_mount_string_no_source(self): method test_parse_mount_string_invalid (line 397) | def test_parse_mount_string_invalid(self): method test_parse_mount_named_volume (line 401) | def test_parse_mount_named_volume(self): method test_parse_mount_bind (line 407) | def test_parse_mount_bind(self): method test_parse_mount_bind_windows (line 414) | def test_parse_mount_bind_windows(self): class ServicePortsTest (line 422) | class ServicePortsTest(unittest.TestCase): method test_convert_service_ports_simple (line 423) | def test_convert_service_ports_simple(self): method test_convert_service_ports_with_protocol (line 431) | def test_convert_service_ports_with_protocol(self): method test_convert_service_ports_with_protocol_and_mode (line 440) | def test_convert_service_ports_with_protocol_and_mode(self): method test_convert_service_ports_invalid (line 450) | def test_convert_service_ports_invalid(self): method test_convert_service_ports_no_protocol_and_mode (line 456) | def test_convert_service_ports_no_protocol_and_mode(self): method test_convert_service_ports_multiple (line 466) | def test_convert_service_ports_multiple(self): FILE: tests/unit/errors_test.py class APIErrorTest (line 17) | class APIErrorTest(unittest.TestCase): method test_api_error_is_caught_by_dockerexception (line 18) | def test_api_error_is_caught_by_dockerexception(self): method test_status_code_200 (line 24) | def test_status_code_200(self): method test_status_code_400 (line 31) | def test_status_code_400(self): method test_status_code_500 (line 38) | def test_status_code_500(self): method test_is_server_error_200 (line 45) | def test_is_server_error_200(self): method test_is_server_error_300 (line 52) | def test_is_server_error_300(self): method test_is_server_error_400 (line 59) | def test_is_server_error_400(self): method test_is_server_error_500 (line 66) | def test_is_server_error_500(self): method test_is_client_error_500 (line 73) | def test_is_client_error_500(self): method test_is_client_error_400 (line 80) | def test_is_client_error_400(self): method test_is_error_300 (line 87) | def test_is_error_300(self): method test_is_error_400 (line 94) | def test_is_error_400(self): method test_is_error_500 (line 101) | def test_is_error_500(self): method test_create_error_from_exception (line 108) | def test_create_error_from_exception(self): class ContainerErrorTest (line 122) | class ContainerErrorTest(unittest.TestCase): method test_container_without_stderr (line 123) | def test_container_without_stderr(self): method test_container_with_stderr (line 137) | def test_container_with_stderr(self): class CreateUnexpectedKwargsErrorTest (line 152) | class CreateUnexpectedKwargsErrorTest(unittest.TestCase): method test_create_unexpected_kwargs_error_single (line 153) | def test_create_unexpected_kwargs_error_single(self): method test_create_unexpected_kwargs_error_multiple (line 157) | def test_create_unexpected_kwargs_error_multiple(self): FILE: tests/unit/fake_api.py function get_fake_version (line 29) | def get_fake_version(): function get_fake_info (line 62) | def get_fake_info(): function post_fake_auth (line 70) | def post_fake_auth(): function get_fake_ping (line 77) | def get_fake_ping(): function get_fake_search (line 81) | def get_fake_search(): function get_fake_images (line 87) | def get_fake_images(): function get_fake_image_history (line 98) | def get_fake_image_history(): function get_fake_containers (line 116) | def get_fake_containers(): function post_fake_start_container (line 128) | def post_fake_start_container(): function post_fake_resize_container (line 134) | def post_fake_resize_container(): function post_fake_create_container (line 140) | def post_fake_create_container(): function get_fake_inspect_container (line 146) | def get_fake_inspect_container(tty=False): function get_fake_inspect_image (line 173) | def get_fake_inspect_image(): function get_fake_insert_image (line 207) | def get_fake_insert_image(): function get_fake_wait (line 213) | def get_fake_wait(): function get_fake_logs (line 219) | def get_fake_logs(): function get_fake_diff (line 228) | def get_fake_diff(): function get_fake_events (line 234) | def get_fake_events(): function get_fake_export (line 241) | def get_fake_export(): function post_fake_exec_create (line 247) | def post_fake_exec_create(): function post_fake_exec_start (line 253) | def post_fake_exec_start(): function post_fake_exec_resize (line 261) | def post_fake_exec_resize(): function get_fake_exec_inspect (line 266) | def get_fake_exec_inspect(): function post_fake_stop_container (line 285) | def post_fake_stop_container(): function post_fake_kill_container (line 291) | def post_fake_kill_container(): function post_fake_pause_container (line 297) | def post_fake_pause_container(): function post_fake_unpause_container (line 303) | def post_fake_unpause_container(): function post_fake_restart_container (line 309) | def post_fake_restart_container(): function post_fake_rename_container (line 315) | def post_fake_rename_container(): function delete_fake_remove_container (line 320) | def delete_fake_remove_container(): function post_fake_image_create (line 326) | def post_fake_image_create(): function delete_fake_remove_image (line 332) | def delete_fake_remove_image(): function get_fake_get_image (line 338) | def get_fake_get_image(): function post_fake_load_image (line 344) | def post_fake_load_image(): function post_fake_commit (line 350) | def post_fake_commit(): function post_fake_push (line 356) | def post_fake_push(): function post_fake_build_container (line 362) | def post_fake_build_container(): function post_fake_tag_image (line 368) | def post_fake_tag_image(): function get_fake_stats (line 374) | def get_fake_stats(): function get_fake_top (line 380) | def get_fake_top(): function get_fake_volume_list (line 407) | def get_fake_volume_list(): function get_fake_volume (line 427) | def get_fake_volume(): function fake_remove_volume (line 441) | def fake_remove_volume(): function post_fake_update_container (line 445) | def post_fake_update_container(): function post_fake_update_node (line 449) | def post_fake_update_node(): function post_fake_join_swarm (line 453) | def post_fake_join_swarm(): function get_fake_network_list (line 457) | def get_fake_network_list(): function get_fake_network (line 492) | def get_fake_network(): function post_fake_network (line 496) | def post_fake_network(): function delete_fake_network (line 500) | def delete_fake_network(): function post_fake_network_connect (line 504) | def post_fake_network_connect(): function post_fake_network_disconnect (line 508) | def post_fake_network_disconnect(): function post_fake_secret (line 512) | def post_fake_secret(): function post_fake_config (line 517) | def post_fake_config(): FILE: tests/unit/fake_api_client.py class CopyReturnMagicMock (line 10) | class CopyReturnMagicMock(mock.MagicMock): method _mock_call (line 14) | def _mock_call(self, *args, **kwargs): function make_fake_api_client (line 21) | def make_fake_api_client(overrides=None): function make_fake_client (line 62) | def make_fake_client(overrides=None): FILE: tests/unit/models_configs_test.py class CreateConfigsTest (line 7) | class CreateConfigsTest(unittest.TestCase): method test_create_config (line 8) | def test_create_config(self): FILE: tests/unit/models_containers_test.py class ContainerCollectionTest (line 15) | class ContainerCollectionTest(unittest.TestCase): method test_run (line 16) | def test_run(self): method test_create_container_args (line 36) | def test_create_container_args(self): method test_run_detach (line 231) | def test_run_detach(self): method test_run_pull (line 247) | def test_run_pull(self): method test_run_with_error (line 263) | def test_run_with_error(self): method test_run_with_image_object (line 273) | def test_run_with_image_object(self): method test_run_remove (line 286) | def test_run_remove(self): method test_run_platform (line 341) | def test_run_platform(self): method test_run_networking_config_without_network (line 368) | def test_run_networking_config_without_network(self): method test_run_networking_config_with_network_mode (line 378) | def test_run_networking_config_with_network_mode(self): method test_run_networking_config (line 389) | def test_run_networking_config(self): method test_run_networking_config_with_undeclared_network (line 415) | def test_run_networking_config_with_undeclared_network(self): method test_run_networking_config_only_undeclared_network (line 446) | def test_run_networking_config_only_undeclared_network(self): method test_create (line 470) | def test_create(self): method test_create_with_image_object (line 487) | def test_create_with_image_object(self): method test_create_networking_config_without_network (line 497) | def test_create_networking_config_without_network(self): method test_create_networking_config_with_network_mode (line 512) | def test_create_networking_config_with_network_mode(self): method test_create_networking_config (line 528) | def test_create_networking_config(self): method test_create_networking_config_with_undeclared_network (line 553) | def test_create_networking_config_with_undeclared_network(self): method test_create_networking_config_only_undeclared_network (line 583) | def test_create_networking_config_only_undeclared_network(self): method test_get (line 606) | def test_get(self): method test_list (line 613) | def test_list(self): method test_list_ignore_removed (line 628) | def test_list_ignore_removed(self): class ContainerTest (line 642) | class ContainerTest(unittest.TestCase): method test_short_id (line 643) | def test_short_id(self): method test_name (line 648) | def test_name(self): method test_status (line 653) | def test_status(self): method test_attach (line 658) | def test_attach(self): method test_commit (line 664) | def test_commit(self): method test_diff (line 674) | def test_diff(self): method test_exec_run (line 680) | def test_exec_run(self): method test_exec_run_failure (line 694) | def test_exec_run_failure(self): method test_export (line 708) | def test_export(self): method test_get_archive (line 716) | def test_get_archive(self): method test_image (line 724) | def test_image(self): method test_kill (line 729) | def test_kill(self): method test_labels (line 735) | def test_labels(self): method test_logs (line 740) | def test_logs(self): method test_pause (line 746) | def test_pause(self): method test_put_archive (line 752) | def test_put_archive(self): method test_remove (line 759) | def test_remove(self): method test_rename (line 765) | def test_rename(self): method test_resize (line 771) | def test_resize(self): method test_restart (line 777) | def test_restart(self): method test_start (line 783) | def test_start(self): method test_stats (line 789) | def test_stats(self): method test_stop (line 795) | def test_stop(self): method test_top (line 801) | def test_top(self): method test_unpause (line 807) | def test_unpause(self): method test_update (line 813) | def test_update(self): method test_wait (line 820) | def test_wait(self): FILE: tests/unit/models_images_test.py class ImageCollectionTest (line 11) | class ImageCollectionTest(unittest.TestCase): method test_build (line 12) | def test_build(self): method test_get (line 20) | def test_get(self): method test_labels (line 27) | def test_labels(self): method test_list (line 32) | def test_list(self): method test_load (line 40) | def test_load(self): method test_pull (line 45) | def test_pull(self): method test_pull_tag_precedence (line 55) | def test_pull_tag_precedence(self): method test_pull_multiple (line 71) | def test_pull_multiple(self): method test_pull_with_stream_param (line 86) | def test_pull_with_stream_param(self): method test_push (line 96) | def test_push(self): method test_remove (line 105) | def test_remove(self): method test_search (line 110) | def test_search(self): method test_search_limit (line 115) | def test_search_limit(self): class ImageTest (line 121) | class ImageTest(unittest.TestCase): method test_short_id (line 122) | def test_short_id(self): method test_tags (line 131) | def test_tags(self): method test_history (line 147) | def test_history(self): method test_remove (line 153) | def test_remove(self): method test_save (line 163) | def test_save(self): method test_tag (line 171) | def test_tag(self): FILE: tests/unit/models_networks_test.py class NetworkCollectionTest (line 7) | class NetworkCollectionTest(unittest.TestCase): method test_create (line 9) | def test_create(self): method test_get (line 19) | def test_get(self): method test_list (line 25) | def test_list(self): class NetworkTest (line 40) | class NetworkTest(unittest.TestCase): method test_connect (line 42) | def test_connect(self): method test_disconnect (line 51) | def test_disconnect(self): method test_remove (line 60) | def test_remove(self): FILE: tests/unit/models_resources_test.py class ModelTest (line 7) | class ModelTest(unittest.TestCase): method test_reload (line 8) | def test_reload(self): method test_hash (line 16) | def test_hash(self): FILE: tests/unit/models_secrets_test.py class CreateServiceTest (line 7) | class CreateServiceTest(unittest.TestCase): method test_secrets_repr (line 8) | def test_secrets_repr(self): FILE: tests/unit/models_services_test.py class CreateServiceKwargsTest (line 6) | class CreateServiceKwargsTest(unittest.TestCase): method test_get_create_service_kwargs (line 7) | def test_get_create_service_kwargs(self): FILE: tests/unit/sshadapter_test.py class SSHAdapterTest (line 7) | class SSHAdapterTest(unittest.TestCase): method test_ssh_hostname_prefix_trim (line 9) | def test_ssh_hostname_prefix_trim(): method test_ssh_parse_url (line 15) | def test_ssh_parse_url(): method test_ssh_parse_hostname_only (line 22) | def test_ssh_parse_hostname_only(): method test_ssh_parse_user_and_hostname (line 29) | def test_ssh_parse_user_and_hostname(): method test_ssh_parse_hostname_and_port (line 36) | def test_ssh_parse_hostname_and_port(): FILE: tests/unit/swarm_test.py class SwarmTest (line 8) | class SwarmTest(BaseAPIClientTest): method test_node_update (line 10) | def test_node_update(self): method test_join_swarm (line 29) | def test_join_swarm(self): method test_join_swarm_no_listen_address_takes_default (line 53) | def test_join_swarm_no_listen_address_takes_default(self): FILE: tests/unit/types_containers_test.py function test_uid_0_is_not_elided (line 4) | def test_uid_0_is_not_elided(): FILE: tests/unit/utils_build_test.py function convert_paths (line 17) | def convert_paths(collection): function convert_path (line 21) | def convert_path(path): class ExcludePathsTest (line 25) | class ExcludePathsTest(unittest.TestCase): method setUp (line 65) | def setUp(self): method tearDown (line 68) | def tearDown(self): method exclude (line 71) | def exclude(self, patterns, dockerfile=None): method test_no_excludes (line 74) | def test_no_excludes(self): method test_no_dupes (line 77) | def test_no_dupes(self): method test_wildcard_exclude (line 81) | def test_wildcard_exclude(self): method test_exclude_dockerfile_dockerignore (line 84) | def test_exclude_dockerfile_dockerignore(self): method test_exclude_custom_dockerfile (line 94) | def test_exclude_custom_dockerfile(self): method test_exclude_dockerfile_child (line 112) | def test_exclude_dockerfile_child(self): method test_single_filename (line 117) | def test_single_filename(self): method test_single_filename_leading_dot_slash (line 122) | def test_single_filename_leading_dot_slash(self): method test_single_filename_trailing_slash (line 129) | def test_single_filename_trailing_slash(self): method test_wildcard_filename_start (line 134) | def test_wildcard_filename_start(self): method test_wildcard_with_exception (line 139) | def test_wildcard_with_exception(self): method test_wildcard_with_wildcard_exception (line 144) | def test_wildcard_with_wildcard_exception(self): method test_wildcard_filename_end (line 151) | def test_wildcard_filename_end(self): method test_question_mark (line 156) | def test_question_mark(self): method test_single_subdir_single_filename (line 161) | def test_single_subdir_single_filename(self): method test_single_subdir_single_filename_leading_slash (line 166) | def test_single_subdir_single_filename_leading_slash(self): method test_exclude_include_absolute_path (line 171) | def test_exclude_include_absolute_path(self): method test_single_subdir_with_path_traversal (line 178) | def test_single_subdir_with_path_traversal(self): method test_single_subdir_wildcard_filename (line 183) | def test_single_subdir_wildcard_filename(self): method test_wildcard_subdir_single_filename (line 188) | def test_wildcard_subdir_single_filename(self): method test_wildcard_subdir_wildcard_filename (line 193) | def test_wildcard_subdir_wildcard_filename(self): method test_directory (line 198) | def test_directory(self): method test_directory_with_trailing_slash (line 206) | def test_directory_with_trailing_slash(self): method test_directory_with_single_exception (line 214) | def test_directory_with_single_exception(self): method test_directory_with_subdir_exception (line 222) | def test_directory_with_subdir_exception(self): method test_directory_with_subdir_exception_win32_pathsep (line 232) | def test_directory_with_subdir_exception_win32_pathsep(self): method test_directory_with_wildcard_exception (line 239) | def test_directory_with_wildcard_exception(self): method test_subdirectory (line 246) | def test_subdirectory(self): method test_subdirectory_win32_pathsep (line 254) | def test_subdirectory_win32_pathsep(self): method test_double_wildcard (line 259) | def test_double_wildcard(self): method test_single_and_double_wildcard (line 270) | def test_single_and_double_wildcard(self): method test_trailing_double_wildcard (line 279) | def test_trailing_double_wildcard(self): method test_double_wildcard_with_exception (line 296) | def test_double_wildcard_with_exception(self): method test_include_wildcard (line 304) | def test_include_wildcard(self): method test_last_line_precedence (line 313) | def test_last_line_precedence(self): method test_parent_directory (line 326) | def test_parent_directory(self): class TarTest (line 343) | class TarTest(unittest.TestCase): method test_tar_with_excludes (line 344) | def test_tar_with_excludes(self): method test_tar_with_empty_directory (line 390) | def test_tar_with_empty_directory(self): method test_tar_with_inaccessible_file (line 403) | def test_tar_with_inaccessible_file(self): method test_tar_with_file_symlinks (line 418) | def test_tar_with_file_symlinks(self): method test_tar_with_directory_symlinks (line 430) | def test_tar_with_directory_symlinks(self): method test_tar_with_broken_symlinks (line 441) | def test_tar_with_broken_symlinks(self): method test_tar_socket_file (line 453) | def test_tar_socket_file(self): method tar_test_negative_mtime_bug (line 465) | def tar_test_negative_mtime_bug(self): method test_tar_directory_link (line 478) | def test_tar_directory_link(self): function test_match_tag (line 537) | def test_match_tag(tag: str, expected: bool): FILE: tests/unit/utils_config_test.py class FindConfigFileTest (line 13) | class FindConfigFileTest(unittest.TestCase): method tmpdir (line 16) | def tmpdir(self, tmpdir): method test_find_config_fallback (line 19) | def test_find_config_fallback(self): method test_find_config_from_explicit_path (line 25) | def test_find_config_from_explicit_path(self): method test_find_config_from_environment (line 31) | def test_find_config_from_environment(self): method test_find_config_from_home_posix (line 39) | def test_find_config_from_home_posix(self): method test_find_config_from_home_legacy_name (line 47) | def test_find_config_from_home_legacy_name(self): method test_find_config_from_home_windows (line 55) | def test_find_config_from_home_windows(self): class LoadConfigTest (line 63) | class LoadConfigTest(unittest.TestCase): method test_load_config_no_file (line 64) | def test_load_config_no_file(self): method test_load_config_custom_headers (line 72) | def test_load_config_custom_headers(self): method test_load_config_detach_keys (line 94) | def test_load_config_detach_keys(self): method test_load_config_from_env (line 107) | def test_load_config_from_env(self): FILE: tests/unit/utils_json_stream_test.py class TestJsonSplitter (line 4) | class TestJsonSplitter: method test_json_splitter_no_object (line 6) | def test_json_splitter_no_object(self): method test_json_splitter_with_object (line 10) | def test_json_splitter_with_object(self): method test_json_splitter_leading_whitespace (line 14) | def test_json_splitter_leading_whitespace(self): class TestStreamAsText (line 19) | class TestStreamAsText: method test_stream_with_non_utf_unicode_character (line 21) | def test_stream_with_non_utf_unicode_character(self): method test_stream_with_utf_character (line 26) | def test_stream_with_utf_character(self): class TestJsonStream (line 32) | class TestJsonStream: method test_with_falsy_entries (line 34) | def test_with_falsy_entries(self): method test_with_leading_whitespace (line 47) | def test_with_leading_whitespace(self): FILE: tests/unit/utils_proxy_test.py class ProxyConfigTest (line 22) | class ProxyConfigTest(unittest.TestCase): method test_from_dict (line 24) | def test_from_dict(self): method test_new (line 36) | def test_new(self): method test_truthiness (line 49) | def test_truthiness(self): method test_environment (line 56) | def test_environment(self): method test_inject_proxy_environment (line 61) | def test_inject_proxy_environment(self): FILE: tests/unit/utils_test.py class DecoratorsTest (line 39) | class DecoratorsTest(unittest.TestCase): method test_update_headers (line 40) | def test_update_headers(self): class KwargsFromEnvTest (line 70) | class KwargsFromEnvTest(unittest.TestCase): method setUp (line 71) | def setUp(self): method tearDown (line 74) | def tearDown(self): method test_kwargs_from_env_empty (line 78) | def test_kwargs_from_env_empty(self): method test_kwargs_from_env_tls (line 87) | def test_kwargs_from_env_tls(self): method test_kwargs_from_env_tls_verify_false (line 108) | def test_kwargs_from_env_tls_verify_false(self): method test_kwargs_from_env_tls_verify_false_no_cert (line 128) | def test_kwargs_from_env_tls_verify_false_no_cert(self): method test_kwargs_from_env_no_cert_path (line 140) | def test_kwargs_from_env_no_cert_path(self): method test_kwargs_from_env_alternate_env (line 158) | def test_kwargs_from_env_alternate_env(self): class ConverVolumeBindsTest (line 173) | class ConverVolumeBindsTest(unittest.TestCase): method test_convert_volume_binds_empty (line 174) | def test_convert_volume_binds_empty(self): method test_convert_volume_binds_list (line 178) | def test_convert_volume_binds_list(self): method test_convert_volume_binds_complete (line 182) | def test_convert_volume_binds_complete(self): method test_convert_volume_binds_compact (line 191) | def test_convert_volume_binds_compact(self): method test_convert_volume_binds_no_mode (line 197) | def test_convert_volume_binds_no_mode(self): method test_convert_volume_binds_unicode_bytes_input (line 205) | def test_convert_volume_binds_unicode_bytes_input(self): method test_convert_volume_binds_unicode_unicode_input (line 216) | def test_convert_volume_binds_unicode_unicode_input(self): class ParseEnvFileTest (line 228) | class ParseEnvFileTest(unittest.TestCase): method generate_tempfile (line 229) | def generate_tempfile(self, file_content=None): method test_parse_env_file_proper (line 240) | def test_parse_env_file_proper(self): method test_parse_env_file_with_equals_character (line 247) | def test_parse_env_file_with_equals_character(self): method test_parse_env_file_commented_line (line 254) | def test_parse_env_file_commented_line(self): method test_parse_env_file_newline (line 261) | def test_parse_env_file_newline(self): method test_parse_env_file_invalid_line (line 268) | def test_parse_env_file_invalid_line(self): class ParseHostTest (line 276) | class ParseHostTest(unittest.TestCase): method test_parse_host (line 277) | def test_parse_host(self): method test_parse_host_empty_value (line 329) | def test_parse_host_empty_value(self): method test_parse_host_tls (line 337) | def test_parse_host_tls(self): method test_parse_host_tls_tcp_proto (line 342) | def test_parse_host_tls_tcp_proto(self): method test_parse_host_trailing_slash (line 347) | def test_parse_host_trailing_slash(self): class ParseRepositoryTagTest (line 353) | class ParseRepositoryTagTest(unittest.TestCase): method test_index_image_no_tag (line 356) | def test_index_image_no_tag(self): method test_index_image_tag (line 359) | def test_index_image_tag(self): method test_index_user_image_no_tag (line 362) | def test_index_user_image_no_tag(self): method test_index_user_image_tag (line 365) | def test_index_user_image_tag(self): method test_private_reg_image_no_tag (line 368) | def test_private_reg_image_no_tag(self): method test_private_reg_image_tag (line 371) | def test_private_reg_image_tag(self): method test_index_image_sha (line 376) | def test_index_image_sha(self): method test_private_reg_image_sha (line 381) | def test_private_reg_image_sha(self): class ParseDeviceTest (line 387) | class ParseDeviceTest(unittest.TestCase): method test_dict (line 388) | def test_dict(self): method test_partial_string_definition (line 400) | def test_partial_string_definition(self): method test_permissionless_string_definition (line 408) | def test_permissionless_string_definition(self): method test_full_string_definition (line 416) | def test_full_string_definition(self): method test_hybrid_list (line 424) | def test_hybrid_list(self): class ParseBytesTest (line 446) | class ParseBytesTest(unittest.TestCase): method test_parse_bytes_valid (line 447) | def test_parse_bytes_valid(self): method test_parse_bytes_invalid (line 452) | def test_parse_bytes_invalid(self): method test_parse_bytes_float (line 460) | def test_parse_bytes_float(self): class UtilsTest (line 464) | class UtilsTest(unittest.TestCase): method test_convert_filters (line 467) | def test_convert_filters(self): method test_decode_json_header (line 478) | def test_decode_json_header(self): class SplitCommandTest (line 486) | class SplitCommandTest(unittest.TestCase): method test_split_command_with_unicode (line 487) | def test_split_command_with_unicode(self): class PortsTest (line 491) | class PortsTest(unittest.TestCase): method test_split_port_with_host_ip (line 492) | def test_split_port_with_host_ip(self): method test_split_port_with_protocol (line 497) | def test_split_port_with_protocol(self): method test_split_port_with_host_ip_no_port (line 505) | def test_split_port_with_host_ip_no_port(self): method test_split_port_range_with_host_ip_no_port (line 510) | def test_split_port_range_with_host_ip_no_port(self): method test_split_port_with_host_port (line 515) | def test_split_port_with_host_port(self): method test_split_port_range_with_host_port (line 520) | def test_split_port_range_with_host_port(self): method test_split_port_random_port_range_with_host_port (line 525) | def test_split_port_random_port_range_with_host_port(self): method test_split_port_no_host_port (line 530) | def test_split_port_no_host_port(self): method test_split_port_range_no_host_port (line 535) | def test_split_port_range_no_host_port(self): method test_split_port_range_with_protocol (line 540) | def test_split_port_range_with_protocol(self): method test_split_port_with_ipv6_address (line 546) | def test_split_port_with_ipv6_address(self): method test_split_port_with_ipv6_square_brackets_address (line 552) | def test_split_port_with_ipv6_square_brackets_address(self): method test_split_port_invalid (line 558) | def test_split_port_invalid(self): method test_split_port_invalid_protocol (line 562) | def test_split_port_invalid_protocol(self): method test_non_matching_length_port_ranges (line 566) | def test_non_matching_length_port_ranges(self): method test_port_and_range_invalid (line 570) | def test_port_and_range_invalid(self): method test_port_only_with_colon (line 574) | def test_port_only_with_colon(self): method test_host_only_with_colon (line 578) | def test_host_only_with_colon(self): method test_with_no_container_port (line 582) | def test_with_no_container_port(self): method test_split_port_empty_string (line 586) | def test_split_port_empty_string(self): method test_split_port_non_string (line 590) | def test_split_port_non_string(self): method test_build_port_bindings_with_one_port (line 593) | def test_build_port_bindings_with_one_port(self): method test_build_port_bindings_with_matching_internal_ports (line 597) | def test_build_port_bindings_with_matching_internal_ports(self): method test_build_port_bindings_with_nonmatching_internal_ports (line 604) | def test_build_port_bindings_with_nonmatching_internal_ports(self): method test_build_port_bindings_with_port_range (line 610) | def test_build_port_bindings_with_port_range(self): method test_build_port_bindings_with_matching_internal_port_ranges (line 615) | def test_build_port_bindings_with_matching_internal_port_ranges(self): method test_build_port_bindings_with_nonmatching_internal_port_ranges (line 625) | def test_build_port_bindings_with_nonmatching_internal_port_ranges(self): class FormatEnvironmentTest (line 632) | class FormatEnvironmentTest(unittest.TestCase): method test_format_env_binary_unicode_value (line 633) | def test_format_env_binary_unicode_value(self): method test_format_env_no_value (line 639) | def test_format_env_no_value(self): function test_compare_versions (line 647) | def test_compare_versions():