Skip to content

Commit

Permalink
Added integration test with different constants from remote.
Browse files Browse the repository at this point in the history
  • Loading branch information
KochetovNicolai committed Nov 9, 2019
1 parent 6f70125 commit 0ba523a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Empty file.
21 changes: 21 additions & 0 deletions dbms/tests/integration/test_replicating_constants/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import pytest

from helpers.cluster import ClickHouseCluster

cluster = ClickHouseCluster(__file__)

node1 = cluster.add_instance('node1', with_zookeeper=True)
node2 = cluster.add_instance('node2', with_zookeeper=True, image='yandex/clickhouse-server:19.1.14', with_installed_binary=True)

@pytest.fixture(scope="module")
def start_cluster():
try:
cluster.start()

yield cluster
finally:
cluster.shutdown()

def test_different_versions(start_cluster):

assert node1.query("SELECT uniqExact(x) FROM (SELECT version() as x from remote('node{1,2}', system.one))") == "2\n"

0 comments on commit 0ba523a

Please sign in to comment.