sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dapeng Sun (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SENTRY-410) Some negative test cases do not check for specific Sentry exceptions
Date Tue, 01 Sep 2015 05:50:52 GMT

     [ https://issues.apache.org/jira/browse/SENTRY-410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dapeng Sun updated SENTRY-410:
------------------------------
    Fix Version/s:     (was: 1.6.0)
                   1.7.0

> 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: 1.7.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.3.4#6332)

Mime
View raw message