python/kubernetes/e2e_test
Andrew Melnick 488518d957 Enable binary support for WSClient
Currently, under python 3, the WSClient decodes all data via UTF-8. This
will break, e.g. capturing the stdout of tar or gzip.
This adds a new 'binary' kwarg to the WSClient class and websocket_call
function. If this is set to true, then the decoding will not happen, and
all channels will be interpreted as binary.
This does raise a slight complication, as the OpenAPI-generated client
will convert the output to a string, no matter what, which it ends up
doing by (effectively) calling repr(). This requires a bit of magic to
recover the orignial bytes, and is inefficient. However, this is only
the case when using the default _preload_content=True, setting this to
False and manually calling read_all or read_channel, this issue does not
arise.
2024-02-28 15:41:24 -07:00
..
test_yaml add e2e_test for create_from_directory 2022-01-21 16:33:57 +08:00
__init__.py Add functional test 2017-01-12 06:26:16 -05:00
base.py Fix end to end tests 2017-10-09 17:15:34 -07:00
port_server.py It turns out SSL sockets can buffer data such that the select method is not aware of it. See: 2022-05-01 06:42:31 -10:00
test_apps.py test: add more assertions 2023-09-28 04:49:22 +00:00
test_batch.py test: add more assertions 2023-09-28 04:49:22 +00:00
test_client.py Enable binary support for WSClient 2024-02-28 15:41:24 -07:00
test_utils.py test: add more assertions 2023-09-28 04:49:22 +00:00
test_watch.py configmap-e2e: use labels 2021-01-11 12:34:14 -08:00