You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Sergio Peña (JIRA)" <ji...@apache.org> on 2017/07/10 20:11:02 UTC
[jira] [Updated] (SENTRY-410) Some negative test cases do not check
for specific Sentry exceptions
[ https://issues.apache.org/jira/browse/SENTRY-410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergio Peña updated SENTRY-410:
-------------------------------
Fix Version/s: (was: 1.8.0)
2.0.0
Moving all unresolved jiras with fix version 1.8.0 to 2.0.0. Please change the fix version if you intend to make it into 1.8.0 release.
> Some negative test cases do not check for specific Sentry exceptions
> --------------------------------------------------------------------
>
> Key: SENTRY-410
> URL: https://issues.apache.org/jira/browse/SENTRY-410
> Project: Sentry
> Issue Type: Test
> Affects Versions: 1.4.0
> Reporter: Sravya Tirukkovalur
> Fix For: 2.0.0
>
>
> in Context.java:
> {noformat}
> // verify that the sqlexception is due to authorization failure
> public void verifyAuthzException(SQLException sqlException) throws SQLException{
> verifyAuthzExceptionForState(sqlException, AUTHZ_EXCEPTION_SQL_STATE);
> }
> {noformat}
> This just checks for status 42000, which would also be the case for other failures other than SemanticExceptions. We need to make stronger checks in the tests.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)