Add test for systemd + /etc/default/clickhouse

This commit is contained in:
Mikhail f. Shiryaev 2023-08-16 00:51:44 +02:00
parent 790475385a
commit 3cd9fa395d
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -50,8 +50,11 @@ def prepare_test_scripts():
server_test = r"""#!/bin/bash
set -e
trap "bash -ex /packages/preserve_logs.sh" ERR
test_env='TEST_THE_DEFAULT_PARAMETER=15'
echo "$test_env" >> /etc/default/clickhouse
systemctl start clickhouse-server
clickhouse-client -q 'SELECT version()'"""
clickhouse-client -q 'SELECT version()'
grep "$test_env" /proc/$(cat /var/run/clickhouse-server/clickhouse-server.pid)/environ"""
keeper_test = r"""#!/bin/bash
set -e
trap "bash -ex /packages/preserve_logs.sh" ERR