Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Altinity/clickhouse-regression
Browse files Browse the repository at this point in the history
  • Loading branch information
alsugiliazova committed Nov 22, 2024
2 parents 3d573a9 + f193a95 commit a278c33
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion s3/tests/alter.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ def order_by(self):
exitcode=0,
)

with And("I check the number of rows on all nodes"):
for node in nodes:
retry(assert_row_count, **retry_args)(
node=node, table_name=table_name, rows=INSERT_SIZE
)


@TestScenario
def sample_by(self):
Expand All @@ -206,6 +212,12 @@ def sample_by(self):
exitcode=0,
)

with And("I check the number of rows on all nodes"):
for node in nodes:
retry(assert_row_count, **retry_args)(
node=node, table_name=table_name, rows=INSERT_SIZE
)


@TestScenario
def index(self):
Expand Down Expand Up @@ -251,6 +263,12 @@ def index(self):
exitcode=0,
)

with Then("I check the number of rows on all nodes"):
for node in nodes:
retry(assert_row_count, **retry_args)(
node=node, table_name=table_name, rows=INSERT_SIZE
)


@TestScenario
def projection(self):
Expand Down Expand Up @@ -292,6 +310,12 @@ def projection(self):
exitcode=0,
)

with And("I check the number of rows on all nodes"):
for node in nodes:
retry(assert_row_count, **retry_args)(
node=node, table_name=table_name, rows=INSERT_SIZE
)


@TestOutline(Scenario)
@Examples("partition", [[""], ["PARTITION 1"]])
Expand Down Expand Up @@ -797,7 +821,10 @@ def columns(self):
assert "column comment" not in r.output, error(r)

with And("The table should contain all rows"):
assert_row_count(node=nodes[2], table_name=table_name, rows=INSERT_SIZE)
for node in nodes:
retry(assert_row_count, **retry_args)(
node=node, table_name=table_name, rows=INSERT_SIZE
)


@TestFeature
Expand Down

0 comments on commit a278c33

Please sign in to comment.