update tests

This commit is contained in:
Arthur Passos 2024-05-02 20:35:21 -03:00
parent f4da4f1eb0
commit 3269380869
3 changed files with 31 additions and 4 deletions

View File

@ -47,7 +47,6 @@ def cluster():
with_minio=True,
env_variables={
"https_proxy": "http://proxy1",
"no_proxy": "not_important_host,, minio1 ,"
},
instance_env_variables=True,
)
@ -74,6 +73,3 @@ def test_s3_with_https_remote_proxy(cluster):
def test_s3_with_https_env_proxy(cluster):
proxy_util.simple_test(cluster, ["proxy1"], "https", "env_node")
def test_s3_with_no_proxy(cluster):
proxy_util.simple_test_assert_no_proxy(cluster, ["proxy1"], "https", "env_node_no_proxy")

View File

@ -36,6 +36,16 @@ def cluster():
instance_env_variables=True,
)
cluster.add_instance(
"env_node_no_proxy",
with_minio=True,
env_variables={
"http_proxy": "http://proxy1",
"no_proxy": "not_important_host,, minio1 ,",
},
instance_env_variables=True,
)
logging.info("Starting cluster...")
cluster.start()
logging.info("Cluster started")
@ -58,3 +68,7 @@ def test_s3_with_http_remote_proxy(cluster):
def test_s3_with_http_env_proxy(cluster):
proxy_util.simple_test(cluster, ["proxy1"], "http", "env_node")
def test_s3_with_http_no_proxy(cluster):
proxy_util.simple_test_assert_no_proxy(cluster, ["proxy1"], "http", "env_node_no_proxy")

View File

@ -44,6 +44,19 @@ def cluster():
instance_env_variables=True,
)
cluster.add_instance(
"env_node_no_proxy",
main_configs=[
"configs/config.d/ssl.xml",
],
with_minio=True,
env_variables={
"https_proxy": "https://proxy1",
"no_proxy": "not_important_host,, minio1 ,",
},
instance_env_variables=True,
)
logging.info("Starting cluster...")
cluster.start()
logging.info("Cluster started")
@ -66,3 +79,7 @@ def test_s3_with_https_remote_proxy(cluster):
def test_s3_with_https_env_proxy(cluster):
proxy_util.simple_test(cluster, ["proxy1"], "https", "env_node")
def test_s3_with_https_no_proxy(cluster):
proxy_util.simple_test_assert_no_proxy(cluster, ["proxy1"], "https", "env_node_no_proxy")