Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checking data in tests after reattaching #251

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 94 additions & 4 deletions tests/features/data_storage_group.feature
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,56 @@ Feature: chadmin data-store commands
"""
chadmin --format yaml data-store detect-broken-partitions --reattach
"""
When we execute queries on clickhouse01
When we execute query on clickhouse01
"""
SELECT * FROM test_db.table1 FORMAT Vertical;
"""
Then we get response
"""
Row 1:
──────
a: 3
b: 1
"""
When we execute query on clickhouse01
"""
SELECT * FROM test_db.table1;
SELECT * FROM test_db.table2;
"""
Then we get response contains
"""
"""
When we execute queries on clickhouse01
"""
INSERT INTO test_db.table1 SELECT 1, 10;
INSERT INTO test_db.table2 SELECT 1, 10;
"""
When we execute query on clickhouse01
"""
SELECT * FROM test_db.table1 ORDER BY a FORMAT Vertical;
"""
Then we get response
"""
Row 1:
──────
a: 1
b: 10

Row 2:
──────
a: 3
b: 1
"""
When we execute query on clickhouse01
"""
SELECT * FROM test_db.table2 ORDER BY a FORMAT Vertical;
"""
Then we get response contains
"""
Row 1:
──────
a: 1
b: 10
"""

@require_version_24.4
Examples:
Expand Down Expand Up @@ -203,11 +248,56 @@ Feature: chadmin data-store commands
"""
chadmin --format yaml data-store detect-broken-partitions --detach
"""
When we execute queries on clickhouse01
When we execute query on clickhouse01
"""
SELECT * FROM test_db.table1 FORMAT Vertical;
"""
Then we get response
"""
Row 1:
──────
a: 3
b: 1
"""
When we execute query on clickhouse01
"""
SELECT * FROM test_db.table1;
SELECT * FROM test_db.table2;
"""
Then we get response contains
"""
"""
When we execute queries on clickhouse01
"""
INSERT INTO test_db.table1 SELECT 1, 10;
INSERT INTO test_db.table2 SELECT 1, 10;
"""
When we execute query on clickhouse01
"""
SELECT * FROM test_db.table1 ORDER BY a FORMAT Vertical;
"""
Then we get response
"""
Row 1:
──────
a: 1
b: 10

Row 2:
──────
a: 3
b: 1
"""
When we execute query on clickhouse01
"""
SELECT * FROM test_db.table2 ORDER BY a FORMAT Vertical;
"""
Then we get response contains
"""
Row 1:
──────
a: 1
b: 10
"""

@require_version_24.4
Examples:
Expand Down
Loading