ClickHouse/tests/integration/helpers
Azat Khuzhin b87ebb2a83 Fix test_format_schema_on_server flakiness
Sometimes the requests library detect the encoding incorrectly, and
because this test compares binary data it fails.

Here is an example of successfull attempt:

    2023-10-30 07:32:37 [ 654 ] DEBUG : http://172.16.1.2:8123 "GET /?query=SELECT+%2A+FROM+test.simple+FORMAT+Protobuf+SETTINGS+format_schema%3D%27simple%3AKeyValuePair%27 HTTP/1.1" 200 None (connectionpool.py:546, _make_request)
    2023-10-30 07:32:37 [ 654 ] DEBUG : Encoding detection: utf_8 will be used as a fallback match (api.py:480, from_bytes)
    2023-10-30 07:32:37 [ 654 ] DEBUG : Encoding detection: Found utf_8 as plausible (best-candidate) for content. With 0 alternatives. (api.py:487, from_bytes)

And here is failed [1]:

    2023-10-29 18:12:56 [ 525 ] DEBUG : http://172.16.9.2:8123 "GET /?query=SELECT+%2A+FROM+test.simple+FORMAT+Protobuf+SETTINGS+format_schema%3D%27message_tmp%3AMessageTmp%27 HTTP/1.1" 200 None (connectionpool.py:547, _make_request)
    2023-10-29 18:12:56 [ 525 ] DEBUG : Encoding detection: Found utf_16_be as plausible (best-candidate) for content. With 1 alternatives. (api.py:487, from_bytes)
    E       AssertionError: assert '܈Ē͡扣܈Ȓͤ敦' == '\x07\x08\x01\x12\x03abc\x07\x08\x02\x12\x03def'
    E         - abcdef
    E         + ܈Ē͡扣܈Ȓͤ敦

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/56030/c7f392500e93863638c9ca9bd56c93b3193091f3/integration_tests__release__[3_4].html

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-30 08:45:47 +01:00
..
dictonaries
s3_mocks add test with broken pipe 2023-07-28 00:24:05 +04:00
__init__.py
0_common_enable_analyzer.xml Add integration test check with enabled analyzer 2023-06-13 13:09:39 +00:00
0_common_enable_dictionaries.xml
0_common_enable_keeper_async_replication.xml Use async replication in tests 2023-08-09 06:25:47 +00:00
0_common_instance_config.xml orphaned role - expiration_time => expiration_time_seconds 2023-03-21 08:44:08 +01:00
0_common_instance_users.xml
client.py Remove time.sleep(1) 2023-08-23 08:08:01 +02:00
cluster.py Fix test_format_schema_on_server flakiness 2023-10-30 08:45:47 +01:00
config_cluster.py
corrupt_part_data_on_disk.py
dictionary.py
external_sources.py Fix style 2023-04-26 20:10:10 +00:00
fake_cert.pem
hdfs_api.py
http_server.py
keeper_config1.xml Use async replication in tests 2023-08-09 06:25:47 +00:00
keeper_config2.xml Use async replication in tests 2023-08-09 06:25:47 +00:00
keeper_config3.xml Use async replication in tests 2023-08-09 06:25:47 +00:00
keeper_utils.py Add get_direct_children_number command to keeper-client (#55898) 2023-10-24 17:02:54 +02:00
mock_servers.py reuse s3_mocks, rewrite test test_paranoid_check_in_logs 2023-06-01 01:29:37 +02:00
mongo_cert.pem
mongo_secure.conf
network.py Fix network manager for integration tests 2023-07-18 12:17:26 +02:00
postgres_utility.py Fix test 2023-10-16 13:01:36 +02:00
pytest_xdist_logging_to_separate_files.py Update black version, run it for the repository 2023-03-24 11:54:38 +01:00
s3_tools.py Better 2023-03-29 20:01:21 +02:00
s3_url_proxy_tests_util.py resolve might return proxy2 in some cases, account for that 2023-09-01 13:41:12 -03:00
ssl_context.py
test_tools.py
uclient.py
uexpect.py
utility.py
wait_for_helpers.py test when merge canceled with s3 2023-05-03 10:39:03 +02:00
zookeeper_config.xml
zookeeper_secure_config.xml