mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Add test to parallel tests skip list
This commit is contained in:
parent
80fc675258
commit
0270d1b84d
@ -63,7 +63,6 @@ RUN apt-get update \
|
||||
software-properties-common \
|
||||
tzdata \
|
||||
unixodbc \
|
||||
postgresql-client \
|
||||
--yes --no-install-recommends
|
||||
|
||||
RUN pip3 install numpy scipy pandas
|
||||
|
@ -365,6 +365,9 @@ function run_tests
|
||||
|
||||
# JSON functions
|
||||
01666_blns
|
||||
|
||||
# Requires postgresql-client
|
||||
01802_test_postgresql_protocol_with_row_policy
|
||||
)
|
||||
|
||||
(time clickhouse-test --hung-check -j 8 --order=random --use-skip-list --no-long --testname --shard --zookeeper --skip "${TESTS_TO_SKIP[@]}" -- "$FASTTEST_FOCUS" 2>&1 ||:) | ts '%Y-%m-%d %H:%M:%S' | tee "$FASTTEST_OUTPUT/test_log.txt"
|
||||
|
@ -1,14 +1,18 @@
|
||||
before row policy
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
val
|
||||
-----
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
(10 rows)
|
||||
|
||||
|
||||
after row policy with no password
|
||||
val
|
||||
|
@ -5,7 +5,6 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. "$CUR_DIR"/../shell_config.sh
|
||||
|
||||
echo "
|
||||
DROP USER IF EXISTS postgresql_protocol_user;
|
||||
DROP TABLE IF EXISTS postgresql_protocol_with_row_policy;
|
||||
DROP ROW POLICY IF EXISTS test_policy ON postgresql_protocol_with_row_policy;
|
||||
|
||||
@ -13,29 +12,31 @@ CREATE TABLE postgresql_protocol_with_row_policy (val UInt32) ENGINE=MergeTree O
|
||||
INSERT INTO postgresql_protocol_with_row_policy SELECT number FROM numbers(10);
|
||||
|
||||
SELECT 'before row policy';
|
||||
SELECT * FROM postgresql_protocol_with_row_policy;
|
||||
SELECT '';
|
||||
" | $CLICKHOUSE_CLIENT -n
|
||||
|
||||
echo "
|
||||
CREATE USER postgresql_protocol_user HOST IP '127.0.0.1' IDENTIFIED WITH no_password;
|
||||
GRANT SELECT(val) ON postgresql_protocol_with_row_policy TO postgresql_protocol_user;
|
||||
CREATE ROW POLICY IF NOT EXISTS test_policy ON postgresql_protocol_with_row_policy FOR SELECT USING val = 2 TO postgresql_protocol_user;
|
||||
psql --host localhost --port 9005 default -c "SELECT * FROM postgresql_protocol_with_row_policy;"
|
||||
|
||||
echo "
|
||||
DROP USER IF EXISTS postgresql_protocol_user_1;
|
||||
CREATE USER postgresql_protocol_user_1 HOST IP '127.0.0.1' IDENTIFIED WITH no_password;
|
||||
GRANT SELECT(val) ON postgresql_protocol_with_row_policy TO postgresql_protocol_user_1;
|
||||
CREATE ROW POLICY IF NOT EXISTS test_policy ON postgresql_protocol_with_row_policy FOR SELECT USING val = 2 TO postgresql_protocol_user_1;
|
||||
|
||||
SELECT '';
|
||||
SELECT 'after row policy with no password';
|
||||
" | $CLICKHOUSE_CLIENT -n
|
||||
|
||||
psql --host localhost --port 9005 default --user postgresql_protocol_user -c "SELECT * FROM postgresql_protocol_with_row_policy;"
|
||||
psql --host localhost --port 9005 default --user postgresql_protocol_user_1 -c "SELECT * FROM postgresql_protocol_with_row_policy;"
|
||||
|
||||
echo "
|
||||
DROP USER IF EXISTS postgresql_protocol_user;
|
||||
DROP USER IF EXISTS postgresql_protocol_user_2;
|
||||
DROP ROW POLICY IF EXISTS test_policy ON postgresql_protocol_with_row_policy;
|
||||
CREATE USER postgresql_protocol_user HOST IP '127.0.0.1' IDENTIFIED WITH plaintext_password BY 'qwerty';
|
||||
GRANT SELECT(val) ON postgresql_protocol_with_row_policy TO postgresql_protocol_user;
|
||||
CREATE ROW POLICY IF NOT EXISTS test_policy ON postgresql_protocol_with_row_policy FOR SELECT USING val = 2 TO postgresql_protocol_user;
|
||||
CREATE USER postgresql_protocol_user_2 HOST IP '127.0.0.1' IDENTIFIED WITH plaintext_password BY 'qwerty';
|
||||
GRANT SELECT(val) ON postgresql_protocol_with_row_policy TO postgresql_protocol_user_2;
|
||||
CREATE ROW POLICY IF NOT EXISTS test_policy ON postgresql_protocol_with_row_policy FOR SELECT USING val = 2 TO postgresql_protocol_user_2;
|
||||
|
||||
SELECT 'after row policy with plaintext_password';
|
||||
" | $CLICKHOUSE_CLIENT -n
|
||||
|
||||
psql "postgresql://postgresql_protocol_user:qwerty@localhost:9005/default" -c "SELECT * FROM postgresql_protocol_with_row_policy;"
|
||||
psql "postgresql://postgresql_protocol_user_2:qwerty@localhost:9005/default" -c "SELECT * FROM postgresql_protocol_with_row_policy;"
|
||||
|
||||
|
@ -699,6 +699,7 @@
|
||||
"01760_polygon_dictionaries",
|
||||
"01778_hierarchical_dictionaries",
|
||||
"01780_clickhouse_dictionary_source_loop",
|
||||
"01785_dictionary_element_count"
|
||||
"01785_dictionary_element_count",
|
||||
"01802_test_postgresql_protocol_with_row_policy"
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user