Skip to content

Commit

Permalink
Add tests for 4.1.2 and 4.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
emerkle826 committed Aug 30, 2024
1 parent 376e647 commit 2226e99
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,52 @@ jobs:
-Drun${{ matrix.cassandra-version }}testsUBI \
-Dit.test=${{ matrix.itTest }} -DfailIfNoTests=false
test-oss-41:
# This job is inetnded to run the various versiosn of Cassandra 4.1 where internal changes to OSS code
# require Java refelction tricks in the Agent code.
name: Run Cassandra ${{ matrix.itTest }} [${{ matrix.cassandra-version }}, ${{ matrix.base-platform }}]
needs: build-oss-docker-images
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 16
matrix:
cassandra-version: ['4.1']
base-platform: ['ubuntu', 'ubi8']
itTest : ['Lifecycle412IT', 'Lifecycle415IT']
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-oss-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
- name: Build with Maven and run tests
if: ${{ matrix.base-platform == 'ubuntu' }}
run: |
mvn -B -q install -Dskip.surefire.tests --file pom.xml \
-Drun${{ matrix.cassandra-version }}tests \
-Dit.test=${{ matrix.itTest }} -DfailIfNoTests=false
- name: Build with Maven and run tests
if: ${{ matrix.base-platform != 'ubuntu' }}
run: |
mvn -B -q install -Dskip.surefire.tests --file pom.xml \
-Drun${{ matrix.cassandra-version }}testsUBI \
-Dit.test=${{ matrix.itTest }} -DfailIfNoTests=false
test-dse:
name: Run DSE ${{ matrix.itTest }} [${{ matrix.dse-version }}, ${{ matrix.base-platform }}]
# if: github.repository_owner == 'k8ssandra'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright DataStax, Inc.
*
* Please see the included license file for details.
*/
package com.datastax.mgmtapi;

import java.io.IOException;
import java.util.ArrayList;

public class Lifecycle412IT extends LifecycleIT {

public Lifecycle412IT(String version) throws IOException {
super(version);
}
/**
* Override environment variables to specify the version of Cassandra to be used. For the test in
* here, we want Cassandra 4.1.2 to test pre-4.1.3 changes.
*
* @return A list of Docker build environment variables.
*/
@Override
protected ArrayList<String> getImageBuildArgs() {
ArrayList<String> list = super.getImageBuildArgs();
list.add("CASSANDRA_VERSION=4.1.2");
return list;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright DataStax, Inc.
*
* Please see the included license file for details.
*/
package com.datastax.mgmtapi;

import java.io.IOException;
import java.util.ArrayList;

public class Lifecycle415IT extends LifecycleIT {

public Lifecycle415IT(String version) throws IOException {
super(version);
}
/**
* Override environment variables to specify the version of Cassandra to be used. For the test in
* here, we want Cassandra 4.1.5 to test post-4.1.3 changes through pre-4.1.6 changes.
*
* @return A list of Docker build environment variables.
*/
@Override
protected ArrayList<String> getImageBuildArgs() {
ArrayList<String> list = super.getImageBuildArgs();
list.add("CASSANDRA_VERSION=4.1.5");
return list;
}
}

0 comments on commit 2226e99

Please sign in to comment.