-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix whitelisting of non-existing ks/table #14
Fix whitelisting of non-existing ks/table #14
Conversation
Pull Request Test Coverage Report for Build 58
💛 - Coveralls |
src/main/java/com/ericsson/bss/cassandra/ecaudit/AuditEntryBuilderFactory.java
Outdated
Show resolved
Hide resolved
@@ -531,6 +525,45 @@ public void testFailedStatementsAreLogged() | |||
.containsAll(expectedAttemptsAndFails(statements)); | |||
} | |||
|
|||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be missing it, but I'd like to see a test case for a failed batch statement which is not whitelisted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Known issue: #11
@@ -78,7 +79,7 @@ public Builder createEntryBuilder(String operation, ClientState state) | |||
CQLStatement statement = QueryProcessor.getStatement(operation, state).statement; | |||
return createEntryBuilder(statement); | |||
} | |||
catch (KeyspaceNotDefinedException e) | |||
catch (InvalidRequestException e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we throw an exception from within the catch clause here we would throw it through the stack. Should we have "catch (RunTimeException)" outside of this try/catch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.