mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
split tests again and randomize user name to be able to parallel
This commit is contained in:
parent
f9b845486a
commit
7c766e7458
@ -47,18 +47,9 @@ Adding no_password, should fail
|
||||
SYNTAX_ERROR
|
||||
Replacing existing authentication methods in favor of no_password, should succeed
|
||||
localhost 9000 0 0 0
|
||||
CREATE USER u01_03174 IDENTIFIED WITH no_password
|
||||
Trying to auth with no pwd, should succeed
|
||||
1
|
||||
localhost 9000 0 0 0
|
||||
Create user with mix both implicit and explicit auth type, starting with with
|
||||
localhost 9000 0 0 0
|
||||
CREATE USER u01_03174 IDENTIFIED WITH plaintext_password, sha256_password, bcrypt_password, sha256_password
|
||||
localhost 9000 0 0 0
|
||||
Create user with mix both implicit and explicit auth type, starting with by
|
||||
localhost 9000 0 0 0
|
||||
CREATE USER u01_03174 IDENTIFIED WITH sha256_password, plaintext_password, bcrypt_password, sha256_password
|
||||
localhost 9000 0 0 0
|
||||
Use WITH without providing authentication type, should fail
|
||||
Syntax error
|
||||
Create user with ADD identification, should fail, add is not allowed for create query
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Tags: no-fasttest, no-parallel, no-replicated-database
|
||||
# Tags: no-fasttest, no-replicated-database
|
||||
# Tag no-replicated-database: https://s3.amazonaws.com/clickhouse-test-reports/65277/43e9a7ba4bbf7f20145531b384a31304895b55bc/stateless_tests__release__old_analyzer__s3__databasereplicated__[1_2].html and https://github.com/ClickHouse/ClickHouse/blob/011c694117845500c82f9563c65930429979982f/tests/queries/0_stateless/01175_distributed_ddl_output_mode_long.sh#L4
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
@ -31,7 +31,7 @@ function test_login_pwd_expect_error
|
||||
|
||||
function test
|
||||
{
|
||||
user="u01_03174"
|
||||
user="u01_03174$RANDOM"
|
||||
|
||||
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "DROP USER IF EXISTS ${user} $1"
|
||||
|
||||
@ -113,25 +113,12 @@ function test
|
||||
|
||||
echo "Replacing existing authentication methods in favor of no_password, should succeed"
|
||||
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "ALTER USER ${user} $1 IDENTIFIED WITH no_password"
|
||||
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "SHOW CREATE USER ${user}"
|
||||
|
||||
echo "Trying to auth with no pwd, should succeed"
|
||||
test_login_no_pwd ${user}
|
||||
|
||||
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "DROP USER IF EXISTS ${user} $1"
|
||||
|
||||
echo "Create user with mix both implicit and explicit auth type, starting with with"
|
||||
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "CREATE USER ${user} $1 IDENTIFIED WITH plaintext_password by '1', by '2', bcrypt_password by '3', by '4';"
|
||||
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "SHOW CREATE USER ${user}"
|
||||
|
||||
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "DROP USER IF EXISTS ${user} $1"
|
||||
|
||||
echo "Create user with mix both implicit and explicit auth type, starting with by"
|
||||
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "CREATE USER ${user} $1 IDENTIFIED by '1', plaintext_password by '2', bcrypt_password by '3', by '4';"
|
||||
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "SHOW CREATE USER ${user}"
|
||||
|
||||
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "DROP USER IF EXISTS ${user} $1"
|
||||
|
||||
echo "Use WITH without providing authentication type, should fail"
|
||||
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "CREATE USER ${user} $1 IDENTIFIED WITH BY '1';" 2>&1 | grep -m1 -o "Syntax error" | head -n 1
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
CREATE USER u_03174_multiple_auth_show_create IDENTIFIED WITH plaintext_password, sha256_password, bcrypt_password, sha256_password
|
||||
CREATE USER u_03174_multiple_auth_show_create IDENTIFIED WITH sha256_password, plaintext_password, bcrypt_password, sha256_password
|
@ -0,0 +1,13 @@
|
||||
-- Tags: no-fasttest, no-parallel
|
||||
|
||||
-- Create user with mix both implicit and explicit auth type, starting with with
|
||||
CREATE USER u_03174_multiple_auth_show_create IDENTIFIED WITH plaintext_password by '1', by '2', bcrypt_password by '3', by '4';
|
||||
SHOW CREATE USER u_03174_multiple_auth_show_create;
|
||||
|
||||
DROP USER IF EXISTS u_03174_multiple_auth_show_create;
|
||||
|
||||
-- Create user with mix both implicit and explicit auth type, starting with by
|
||||
CREATE USER u_03174_multiple_auth_show_create IDENTIFIED by '1', plaintext_password by '2', bcrypt_password by '3', by '4';
|
||||
SHOW CREATE USER u_03174_multiple_auth_show_create;
|
||||
|
||||
DROP USER IF EXISTS u_03174_multiple_auth_show_create;
|
Loading…
Reference in New Issue
Block a user