Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
MeneDev committed Nov 28, 2024
1 parent 7ae82ad commit cad40eb
Showing 1 changed file with 103 additions and 0 deletions.
103 changes: 103 additions & 0 deletions tests/e2e/manifests/chi/test-016-settings-07.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
apiVersion: "clickhouse.altinity.com/v1"
kind: "ClickHouseInstallation"

metadata:
name: test-016-settings

spec:
useTemplates:
- name: clickhouse-version
configuration:
clusters:
- name: default
layout:
shardsCount: 1
profiles:
default/max_memory_usage: 7000000000 # test for big value
users:
user2/profile: default
user2/quota: default
user2/password: l%XubpKqz2y!QsKlsynEEE6#Thknj&fG
user2/networks/ip: "::/0"
settings:
macros/layer: "03"
query_log: _removed_
# should not cause a restart
dictionaries_config: config.d/dic*.xml
logger/level: information
max_server_memory_usage_to_ram_ratio: 0.8
max_table_size_to_drop: 1000000000
max_concurrent_queries: 200
models_config: /var/lib/clickhouse/user_data/models/*.xml
user_defined_executable_functions_config: /var/lib/clickhouse/user_data/udf/*.xml
files:
custom.xml: |
<yandex>
<macros>
<test>test-changed</test>
</macros>
</yandex>
config.d/custom4.xml: |
<yandex>
<macros>
<test-custom4>test-custom4</test-custom4>
</macros>
</yandex>
users.d/my_users.xml:
<yandex>
<users>
<test_usersd>
<password></password>
<profile>default</profile>
<quota>default</quota>
</test_usersd>
<test_norestart>
<password></password>
<profile>default</profile>
<quota>default</quota>
</test_norestart>
</users>
</yandex>
config.d/remote_servers.xml:
<yandex>
<remote_servers>
<custom>
<shard>
<internal_replication>false</internal_replication>
<replica>
<host>chi-test-016-settings-default-0-0</host>
<port>9000</port>
</replica>
</shard>
</custom>
</remote_servers>
</yandex>
config.d/dict_three.xml: |
<yandex>
<dictionary>
<name>three</name>
<source>
<clickhouse>
<host>localhost</host>
<port>9000</port>
<user>default</user>
<password/>
<db>system</db>
<table>one</table>
</clickhouse>
</source>
<lifetime>60</lifetime>
<layout><flat/></layout>
<structure>
<id>
<name>dummy</name>
</id>
<attribute>
<name>three</name>
<expression>dummy</expression>
<type>UInt8</type>
<null_value>0</null_value>
</attribute>
</structure>
</dictionary>
</yandex>

0 comments on commit cad40eb

Please sign in to comment.