Skip to content

Commit

Permalink
Merge branch 'release/c4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
tommystendahl committed Oct 31, 2023
2 parents 0335c7d + 112fab4 commit a1b866b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ target/
.idea
*.iml
dependency-reduced-pom.xml
.idea/

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Changes

## Not released yet
## Version 3.1.0 (unreleased)
* Add Audit Prepare statements - #226
* Build with Cassandra 5.0-alpha1 (only flavor ecaudit_c5.0)

## Version 3.0.0
* Build with Cassandra 4.1.2 (only flavor ecaudit_c4.1)

## Version 2.12.0

* Test with java11 (only flavor ecaudit_c4.0) - #214
* Audit Prepare statements

## Version 2.11.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public void setup()
yamlFilter.setup();
roleFilter.setup();
}

@Override
public boolean shouldLogPrepareStatements()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void testFailedPrepareStatement()
assertThat(getLogEntries()).containsOnly( "client:'127.0.0.1'|user:'anonymous'|status:'ATTEMPT'|operation:'Prepared: INSERT INTO school.invalidestudents (key, value) VALUES (?, ?)'",
"client:'127.0.0.1'|user:'anonymous'|status:'FAILED'|operation:'Prepared: INSERT INTO school.invalidestudents (key, value) VALUES (?, ?)'");
}

private void givenTable(String keyspace, String table)
{
session.execute("CREATE KEYSPACE IF NOT EXISTS " + keyspace + " WITH REPLICATION = {'class' : 'SimpleStrategy', 'replication_factor' : 1} AND DURABLE_WRITES = false");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ private ClientInitializer()

public static void beforeClass()
{
// This method is used by multiple tests, so lenient() is required for tests that don't require the when statements
DatabaseDescriptor.clientInitialization(true);
DatabaseDescriptor.setAuthenticator(mock(IAuthenticator.class));
lenient().when(authorizerMock.bulkLoader()).thenReturn(Collections::emptyMap);
Expand Down

0 comments on commit a1b866b

Please sign in to comment.