At first, there was no such amount of clusters in dist config, they
added when someone need to write some new cluster for tests.
So let's move them to the clusters.xml that is deployed only for tests,
and leave only default cluster.
And cleanup also some configs that had been copied from dist config in
the repo (about test_config_* integration tests, this should be OK,
since there are more_clusters.xml as well, that covers additional
cases).
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This PR formats all the `*.py` files found under the `tests/integration`
folder. It also reorders the imports and cleans up a bunch of unused
imports.
The formatting also takes care of other things like wrapping lines and
fixing spaces and indents such that the tests look more readable.
After first INSERT for disk2 there should not be created any per-shard
directory, so find(1) should report an error, like:
find: '/disk2/data/test/dist_foo/default@127%2E0%2E0%2E2:9000': No such file or directory"
But sometimes output can be fixed, and output of wc(1) will goes first
and python's int() will parse it and not fail, but if find(1) stderr
will goes first the int() will fail to parse.
And here is an example of such mixing:
$ docker run --name alpine --rm -it alpine top
$ docker exec alpine sh -c 'echo foo >&2 | wc -c'
foo
0
$ docker exec alpine sh -c 'echo foo >&2 | wc -c'
0
foo