ClickHouse/tests/testflows
2020-07-24 10:05:13 -04:00
..
example Fix small typo. 2020-07-02 21:02:15 +02:00
helpers Increasing shell default timeout to 120 sec. 2020-07-24 10:05:13 -04:00
ldap Fixing tests to support changing configuration via server restart. 2020-07-15 18:45:50 +02:00
README.md Adding a simple example of using TestFlows. 2020-07-02 17:58:13 +02:00
regression.py Adding ldap regression tests. 2020-07-08 00:05:34 +02:00
runner Hide nonzero error code on testflows runner 2020-07-08 13:10:53 +03:00

ClickHouse Tests in TestFlows

This directory contains integration tests written using TestFlows that involves several ClickHouse instances, custom configs, ZooKeeper, etc.

Supported environment

Prerequisites

Running tests locally

You can run tests locally by passing --local and --clickhouse-binary-path to the regression.py.

  • --local specifies that regression will be run locally
  • --clickhouse-binary-path specifies the path to the ClickHouse binary that will be used during the regression run

Note: you can pass -h or --help argument to the regression.py to see a help message.

python3 regression.py -h

Note: make sure that the ClickHouse binary has correct permissions. If you are using /usr/bin/clickhouse its owner and group is set to root:root by default and it needs to be changed to clickhouse:clickhouse. You can change the owner and the group using the following command.

sudo chown clickhouse:clickhouse /usr/bin/clickhouse

Using the default ClickHouse installation and its server binary at /usr/bin/clickhouse, you can run regressions locally using the following command.

python3 regression.py --local --clickhouse-binary-path "/usr/bin/clickhouse"

Output Verbosity

You can control verbosity of the output by specifying the output format with -o or --output option. See --help for more details.