Skip to content

Commit

Permalink
Merge pull request #1 from MeneDev/escape-xml-values
Browse files Browse the repository at this point in the history
Escape xml values
  • Loading branch information
MeneDev authored Nov 28, 2024
2 parents e8a076b + ff06609 commit 89995e3
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions tests/e2e/manifests/chi/test-016-settings-06.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
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:
dictionaries_config: config.d/dict_*.xml
macros/layer: "03"
query_log: _removed_
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 89995e3

Please sign in to comment.