mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: invalid password error message (Postgres) (#14038)
This commit is contained in:
@@ -298,3 +298,14 @@ psql: error: could not connect to server: Operation timed out
|
||||
extra={"engine_name": "PostgreSQL"},
|
||||
)
|
||||
]
|
||||
|
||||
msg = 'FATAL: password authentication failed for user "postgres"'
|
||||
result = PostgresEngineSpec.extract_errors(Exception(msg))
|
||||
assert result == [
|
||||
SupersetError(
|
||||
error_type=SupersetErrorType.TEST_CONNECTION_INVALID_PASSWORD_ERROR,
|
||||
message=('The password provided for username "postgres" is incorrect.'),
|
||||
level=ErrorLevel.ERROR,
|
||||
extra={"engine_name": "PostgreSQL"},
|
||||
)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user