feat: invalid password error message (Postgres) (#14038)

This commit is contained in:
Beto Dealmeida
2021-04-12 14:03:21 -07:00
committed by GitHub
parent c563ea091e
commit 786dadc836
5 changed files with 39 additions and 0 deletions

View File

@@ -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"},
)
]