Skip to content

Commit

Permalink
Merge branch 'release/c4.0' into release/c4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tommystendahl committed Oct 31, 2023
2 parents 122523d + 18b834b commit 112fab4
Show file tree
Hide file tree
Showing 5 changed files with 10 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.

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

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

## Version 2.12.0
## Version 3.1.0 (unreleased)

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

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

## Version 2.11.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public void testBasicStatement()

assertThat(getLogEntries()).containsOnly("client:'127.0.0.1'|user:'anonymous'|status:'ATTEMPT'|operation:'INSERT INTO school.students (key, value) VALUES (42, 'Kalle')'");
}

@Test
public void testPrepareStatement()
{
Expand All @@ -109,6 +110,7 @@ public void testPrepareStatement()
assertThat(getLogEntries()).containsOnly( "client:'127.0.0.1'|user:'anonymous'|status:'ATTEMPT'|operation:'Prepared: INSERT INTO school.students (key, value) VALUES (?, ?)'",
"client:'127.0.0.1'|user:'anonymous'|status:'ATTEMPT'|operation:'INSERT INTO school.students (key, value) VALUES (?, ?)[42, 'Kalle']'");
}

@Test
public void testFailedPrepareStatement()
{
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

0 comments on commit 112fab4

Please sign in to comment.