Skip to content

Commit

Permalink
FMWK-453 Upgrade to aerospike-client-jdk8 version 8.1.2 (#22)
Browse files Browse the repository at this point in the history
* FMWK-453 Upgrade to aerospike-client-jdk8 version 8.1.2

* handle undefined security-severity in snyk-scan workflow
  • Loading branch information
reugn committed Jun 30, 2024
1 parent c8ed85a commit b2452ba
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/snyk-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
with:
args: --all-projects --sarif-file-output=snyk.sarif

- name: Handle undefined security-severity
run: |
sed -i 's/"security-severity": "undefined"/"security-severity": "0"/g' snyk.sarif
- name: Check output file
id: out-file
run: |
Expand All @@ -32,6 +36,6 @@ jobs:
- name: Upload result to GitHub Code Scanning
if: steps.out-file.outputs.exists == 'true'
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<name>aerospike-client-java-reactive</name>
<description>aerospike-client-java-reactive</description>
<url>https://github.com/aerospike/aerospike-client-java-reactive</url>
<version>7.1.0</version>
<version>8.1.2</version>
<packaging>pom</packaging>

<modules>
Expand All @@ -29,11 +29,11 @@
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>

<aerospike-client.version>7.1.0</aerospike-client.version>
<netty.version>4.1.97.Final</netty.version>
<aerospike-client.version>8.1.2</aerospike-client.version>
<netty.version>4.1.111.Final</netty.version>
<commons-cli.version>1.5.0</commons-cli.version>
<junit.version>4.13.2</junit.version>
<slf4j-api.version>2.0.7</slf4j-api.version>
<slf4j-api.version>2.0.13</slf4j-api.version>
</properties>

<licenses>
Expand Down Expand Up @@ -69,7 +69,7 @@
<dependencies>
<dependency>
<groupId>com.aerospike</groupId>
<artifactId>aerospike-client</artifactId>
<artifactId>aerospike-client-jdk8</artifactId>
<version>${aerospike-client.version}</version>
</dependency>

Expand Down
6 changes: 3 additions & 3 deletions reactor-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.aerospike</groupId>
<artifactId>aerospike-client-java-reactive</artifactId>
<version>7.1.0</version>
<version>8.1.2</version>
</parent>
<artifactId>aerospike-reactor-client</artifactId>
<packaging>jar</packaging>
Expand All @@ -19,7 +19,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<reactor.version>3.5.8</reactor.version>
<reactor.version>3.6.7</reactor.version>
<assertj.version>3.24.2</assertj.version>
<netcrusher.version>0.10</netcrusher.version>

Expand All @@ -30,7 +30,7 @@
<dependencies>
<dependency>
<groupId>com.aerospike</groupId>
<artifactId>aerospike-client</artifactId>
<artifactId>aerospike-client-jdk8</artifactId>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.aerospike.client.reactor;

import com.aerospike.client.AerospikeException;
import com.aerospike.client.reactor.util.Args;
import org.junit.Test;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;

public class ReactorInfoTest extends ReactorTest{
public class ReactorInfoTest extends ReactorTest {

public ReactorInfoTest(Args args) {
super(args);
Expand All @@ -28,9 +27,7 @@ public void shouldFailOnUnknownCommand() {
Mono<String> mono = reactorClient.info(null, null, "XXX");

StepVerifier.create(mono)
.expectErrorMatches(throwable -> throwable instanceof AerospikeException
&& throwable.getMessage().equals("Error -1: Unknown info command: [XXX]"))
.verify();
.expectNext("ERROR:4:unrecognized command")
.verifyComplete();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.aerospike.client.cdt.ListOperation;
import com.aerospike.client.cdt.ListReturnType;
import com.aerospike.client.policy.BatchPolicy;
import com.aerospike.client.policy.Policy;
import com.aerospike.client.query.IndexCollectionType;
import com.aerospike.client.query.IndexType;
import com.aerospike.client.query.Statement;
Expand Down Expand Up @@ -44,11 +45,11 @@ public class RetryTest {
public static final Operation[] OPS = new Operation[]{ListOperation.size(LIST_BIN), ListOperation.getByIndex(LIST_BIN, -1, ListReturnType.VALUE)};

public static final AerospikeException.Connection NO_CONNECTION = new AerospikeException.Connection(ResultCode.NO_MORE_CONNECTIONS, "1");
public static final AerospikeException.Timeout TIMEOUT = new AerospikeException.Timeout(1, false);
public static final AerospikeException.Timeout TIMEOUT = new AerospikeException.Timeout(new Policy(), false);

private IAerospikeReactorClient reactorClient = mock(IAerospikeReactorClient.class);
private final IAerospikeReactorClient reactorClient = mock(IAerospikeReactorClient.class);

private IAerospikeReactorClient retryClient = new AerospikeReactorRetryClient(reactorClient,
private final IAerospikeReactorClient retryClient = new AerospikeReactorRetryClient(reactorClient,
retryOnNoMoreConnections());

@Test
Expand Down

0 comments on commit b2452ba

Please sign in to comment.