feat: error messages when connecting to mssql (#14171)

* database errors for mssql

* revisions
This commit is contained in:
AAfghahi
2021-04-16 12:43:42 -04:00
committed by GitHub
parent 8db7be16da
commit df04c3af21
6 changed files with 37 additions and 11 deletions

View File

@@ -15,7 +15,6 @@
# specific language governing permissions and limitations
# under the License.
from textwrap import dedent
from unittest import mock
from superset.db_engine_specs.redshift import RedshiftEngineSpec
from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
@@ -39,9 +38,14 @@ class TestRedshiftDbEngineSpec(TestDbEngineSpec):
"issue_codes": [
{
"code": 1014,
"message": "Issue 1014 - Either the username or "
"the password is wrong",
}
"message": "Issue 1014 - Either the username "
"or the password is wrong.",
},
{
"code": 1015,
"message": "Issue 1015 - Either the database is "
"spelled incorrectly or does not exist.",
},
],
},
)