ci: update CI pipelines and test dependencies
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Stefan Kalscheuer 2022-08-14 20:33:32 +02:00
parent ecf18881b9
commit 3fb8454711
Signed by: stefan
GPG Key ID: 3887EC2A53B55430
6 changed files with 23 additions and 23 deletions

View File

@ -3,7 +3,7 @@ name: default
steps:
- name: compile
image: maven:3-jdk-11
image: maven:3-openjdk-17
commands:
- mvn -B clean compile
when:
@ -14,7 +14,7 @@ steps:
- fix/*
- release/*
- name: unit-tests
image: maven:3-jdk-11
image: maven:3-openjdk-17
commands:
- mvn -B test
when:
@ -23,14 +23,14 @@ steps:
- feature/*
- fix/*
- name: unit-integration-tests
image: maven:3-jdk-11
image: maven:3-openjdk-17
environment:
VAULT_VERSION: 1.11.0
VAULT_VERSION: 1.11.2
commands:
- curl -s -o vault_1.11.0_linux_amd64.zip https://releases.hashicorp.com/vault/1.11.0/vault_1.11.0_linux_amd64.zip
- curl -s https://releases.hashicorp.com/vault/1.11.0/vault_1.11.0_SHA256SUMS | grep linux_amd64 | sha256sum -c
- unzip vault_1.11.0_linux_amd64.zip
- rm vault_1.11.0_linux_amd64.zip
- curl -s -o vault_$${VAULT_VERSION}_linux_amd64.zip https://releases.hashicorp.com/vault/$${VAULT_VERSION}/vault_$${VAULT_VERSION}_linux_amd64.zip
- curl -s https://releases.hashicorp.com/vault/$${VAULT_VERSION}/vault_$${VAULT_VERSION}_SHA256SUMS | grep linux_amd64 | sha256sum -c
- unzip vault_$${VAULT_VERSION}_linux_amd64.zip
- rm vault_$${VAULT_VERSION}_linux_amd64.zip
- mv vault /bin/
- mvn -B -P integration-test verify
when:

View File

@ -5,19 +5,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
jdk: [ 11, 17 ]
vault: [ '1.11.0' ]
jdk: [ 11, 17, 18 ]
vault: [ '1.11.2' ]
include:
- jdk: 11
vault: '1.11.0'
- jdk: 17
vault: '1.11.2'
analysis: true
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'

View File

@ -4,7 +4,7 @@
* Updated Jackson to 2.13.3
### Test
* Tested against Vault 1.11.0
* Tested against Vault 1.11.2
## 1.1.0 (2022-04-24)

View File

@ -32,7 +32,7 @@ Java Vault Connector is a connector library for [Vault](https://www.vaultproject
* SQL secret handling
* KV v1 and v2 support
* Connector Factory with builder pattern
* Tested against Vault 1.11.0
* Tested against Vault 1.11.2
## Maven Artifact

12
pom.xml
View File

@ -67,7 +67,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -84,12 +84,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<version>3.0.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -122,7 +122,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.8.2</version>
<version>5.9.0</version>
<scope>test</scope>
</dependency>
<dependency>
@ -152,7 +152,7 @@
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier</artifactId>
<version>3.10</version>
<version>3.10.1</version>
<scope>test</scope>
</dependency>
</dependencies>
@ -203,7 +203,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
<configuration>
<source>11</source>
</configuration>

View File

@ -49,7 +49,7 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
* @since 0.1
*/
class HTTPVaultConnectorIT {
private static String VAULT_VERSION = "1.11.0"; // The vault version this test is supposed to run against.
private static String VAULT_VERSION = "1.11.2"; // The vault version this test is supposed to run against.
private static final String KEY1 = "E38bkCm0VhUvpdCKGQpcohhD9XmcHJ/2hreOSY019Lho";
private static final String KEY2 = "O5OHwDleY3IiPdgw61cgHlhsrEm6tVJkrxhF6QAnILd1";
private static final String KEY3 = "mw7Bm3nbt/UWa/juDjjL2EPQ04kiJ0saC5JEXwJvXYsB";