Fixed test codestyle

This commit is contained in:
millb 2019-10-06 18:01:05 +03:00
parent 5c272df15f
commit 31a422fdff
4 changed files with 8 additions and 5 deletions

View File

@ -1,7 +1,10 @@
<yandex>
<remote_url_allow_hosts>
<remote_url_allow_hosts>
<host>host:80</host>
<host_regexp>^[a-z]*\.ru$</host_regexp>
</remote_url_allow_hosts>
</yandex>

View File

@ -1,7 +1,9 @@
<yandex>
<remote_url_allow_hosts>
<host_regexp>^[a-z]*:80$</host_regexp>
<host_regexp>^[a-z]*\.ru$</host_regexp>
</remote_url_allow_hosts>
</yandex>

View File

@ -1,7 +1,6 @@
<yandex>
<remote_url_allow_hosts>
</remote_url_allow_hosts>
</remote_url_allow_hosts>
</yandex>

View File

@ -33,7 +33,6 @@ def test_config_with_only_primary_hosts(start_cluster):
assert "Unacceptable URL." in node2.query_and_get_error("CREATE TABLE table_test_2_5 (word String) Engine=URL('https://host:234', CSV)")
assert "Unacceptable URL." in node2.query_and_get_error("CREATE TABLE table_test_2_6 (word String) Engine=URL('https://yandex2.ru', CSV)")
def test_config_with_only_regexp_hosts(start_cluster):
assert node3.query("CREATE TABLE table_test_3_1 (word String) Engine=URL('https://host:80', CSV)") == ""
assert node3.query("CREATE TABLE table_test_3_2 (word String) Engine=URL('https://yandex.ru', CSV)") == ""