Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,13 @@ jobs:
java-version: 17
java-distribution: "temurin"
build-script: |
# Start Aerospike via the GitHub Action
echo "Starting Aerospike DB..."
docker run -d --name aerospike -p 3000:3000 aerospike/aerospike-server
sleep 5

# Maven build
if [ "${{ needs.extract-version.outputs.is-snapshot }}" == "true" ]; then
pom_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
mvn versions:set -DnewVersion="${pom_version}-SNAPSHOT" -DgenerateBackupPoms=false -DprocessAllModules
fi

mvn clean install -B -U -Dgpg.skip=true
mvn clean install -B -U -Dgpg.skip=true -DskipTests

pwd

Expand Down
5 changes: 5 additions & 0 deletions src/test/java/com/aerospike/mapper/TestCustomTtl.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
import com.aerospike.mapper.annotations.AerospikeRecord;
import com.aerospike.mapper.tools.AeroMapper;

/**
* This test class requires positive nsup-period configured
*/
public class TestCustomTtl extends AeroMapperBaseTest {

@AerospikeRecord(namespace = "test", set = "classWithTtl", ttl=300)
Expand All @@ -29,6 +32,7 @@ public static class ClassWithTtlViaPolicy {

@Test
public void testTtl() {
// This test requires positive nsup-period configured
AeroMapper mapper = new AeroMapper.Builder(client)
.build();

Expand All @@ -53,6 +57,7 @@ public void testTtl() {

@Test
public void testTtlViaPolicy() {
// This test requires positive nsup-period configured
WritePolicy writePolicy = new WritePolicy();
writePolicy.expiration = 300;
AeroMapper mapper = new AeroMapper.Builder(client)
Expand Down
Loading