Skip to content
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

Merged
merged 5 commits into from
Sep 26, 2018

Conversation

eperott
Copy link
Collaborator

@eperott eperott commented Sep 25, 2018

No description provided.

@coveralls
Copy link

coveralls commented Sep 25, 2018

Pull Request Test Coverage Report for Build 58

  • 25 of 38 (65.79%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.6%) to 87.134%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/ericsson/bss/cassandra/ecaudit/AuditEntryBuilderFactory.java 25 38 65.79%
Files with Coverage Reduction New Missed Lines %
src/main/java/com/ericsson/bss/cassandra/ecaudit/AuditEntryBuilderFactory.java 1 80.69%
Totals Coverage Status
Change from base Build 53: -0.6%
Covered Lines: 684
Relevant Lines: 785

💛 - Coveralls

@@ -531,6 +525,45 @@ public void testFailedStatementsAreLogged()
.containsAll(expectedAttemptsAndFails(statements));
}

@Test
Copy link
Contributor

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.

Copy link
Collaborator Author

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)
Copy link
Contributor

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@emolsson emolsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eperott eperott merged commit 749401a into Ericsson:release/c3.0 Sep 26, 2018
@eperott eperott deleted the fix_whitelist_nonexisting branch September 27, 2018 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants