ClickHouse/tests/integration/helpers
Arthur Passos 2bade7db08
Add global proxy setting (#51749)
* initial impl

* fix env ut

* move ut directory

* make sure no null proxy resolver is returned by ProxyConfigurationResolverProvider

* minor adjustment

* add a few tests, still incomplete

* add proxy support for url table function

* use proxy for select from url as well

* remove optional from return type, just returns empty config

* fix style

* style

* black

* ohg boy

* rm in progress file

* god pls don't let me kill anyone

* ...

* add use_aws guards

* remove hard coded s3 proxy resolver

* add concurrency-mt-unsafe

* aa

* black

* add logging back

* revert change

* imrpove code a bit

* helper functions and separate tests

* for some reason, this env test is not working..

* formatting

* :)

* clangtidy

* lint

* revert some stupid things

* small test adjusmtments

* simplify tests

* rename test

* remove extra line

* freaking style change

* simplify a bit

* fix segfault & remove an extra call

* tightly couple proxy provider with context..

* remove useless include

* rename config prefix parameter

* simplify provider a bit

* organize provider a bit

* add a few comments

* comment out proxy env tests

* fix nullptr in unit tests

* make sure old storage proxy config is properly covered without global context instance

* move a few functions from class to anonymous namespace

* fix no fallback for specific storage conf

* change API to accept http method instead of bool

* implement http/https distinction in listresolver, any still not implemented

* implement http/https distinction in remote resolver

* progress on code, improve tests and add url function working test

* use protcol instead of method for http and https

* small fix

* few more adjustments

* fix style

* black

* move enum to proxyconfiguration

* wip

* fix build

* fix ut

* delete atomicroundrobin class

* remove stale include

* add some tests.. need to spend some more time on the design..

* change design a bit

* progress

* use existing context for tests

* rename aux function and fix ut

* ..

* rename test

* try to simplify tests a bit

* simplify tests a bit more

* attempt to fix tests, accept more than one remote resolver

* use proper log id

* try waiting for resolver

* proper wait logic

* black

* empty

* address a few comments

* refactor tests

* remove old tests

* baclk

* use RAII to set/unset env

* black

* clang tidy

* fix env proxy not respecting any

* use log trace

* fix wrong logic in getRemoteREsolver

* fix wrong logic in getRemoteREsolver

* fix test

* remove unwanted code

* remove ClientConfigurationperRequest and auxilary classes

* remove unwanted code

* remove adapter test

* few adjustments and add test for s3 storage conf  with new proxy settings

* black

* use chassert for context

* Add getenv comment
2023-08-24 16:07:26 +03: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 Remove one line from XML, because we do not care 2022-08-28 02:44:02 +02: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 tests: switch <yandex> to <clickhouse> 2021-10-26 09:02:13 +03:00
client.py Remove time.sleep(1) 2023-08-23 08:08:01 +02:00
cluster.py Remove time.sleep(1) 2023-08-23 08:08:01 +02:00
config_cluster.py black check formatted 2022-04-05 12:46:54 -04:00
corrupt_part_data_on_disk.py Review fixes 2022-06-12 01:15:10 +02:00
dictionary.py Apply black formatter to all *.py files in the repo 2022-03-22 17:39:58 +01:00
external_sources.py Fix style 2023-04-26 20:10:10 +00:00
fake_cert.pem
hdfs_api.py Apply black formatter to all *.py files in the repo 2022-03-22 17:39:58 +01:00
http_server.py Apply black formatter to all *.py files in the repo 2022-03-22 17:39:58 +01:00
keeper_config1.xml increase election timeout in integration tests (#53052) 2023-08-07 14:48:52 +03:00
keeper_config2.xml increase election timeout in integration tests (#53052) 2023-08-07 14:48:52 +03:00
keeper_config3.xml increase election timeout in integration tests (#53052) 2023-08-07 14:48:52 +03:00
keeper_utils.py fix 2023-07-07 00:20:54 +03: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 Fix mongodb test with new cert 2022-04-12 11:47:22 +02:00
mongo_secure.conf Add integration tests 2021-07-28 09:38:34 +00:00
network.py Fix network manager for integration tests 2023-07-18 12:17:26 +02:00
postgres_utility.py Fix 2023-05-12 00:10:49 +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 Add global proxy setting (#51749) 2023-08-24 16:07:26 +03:00
ssl_context.py test_grpc_protocol_ssl test_ssl_cert_authentication test_tlsv1_3 don't use fixed IP for instances 2022-08-09 12:01:15 +02:00
test_tools.py Apply black formatter to all *.py files in the repo 2022-03-22 17:39:58 +01:00
uclient.py Apply black formatter to all *.py files in the repo 2022-03-22 17:39:58 +01:00
uexpect.py Apply black formatter to all *.py files in the repo 2022-03-22 17:39:58 +01:00
utility.py Apply black formatter to all *.py files in the repo 2022-03-22 17:39:58 +01:00
wait_for_helpers.py test when merge canceled with s3 2023-05-03 10:39:03 +02:00
zookeeper_config.xml fix configs 2022-04-22 15:37:14 +02:00
zookeeper_secure_config.xml fix configs 2022-04-22 15:37:14 +02:00