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
19 changes: 3 additions & 16 deletions quarkus/service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ dependencies {
tasks.withType(Test::class.java).configureEach {
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager")
addSparkJvmOptions()
}

tasks.named<Test>("test").configure {
if (System.getenv("AWS_REGION") == null) {
environment("AWS_REGION", "us-west-2")
}
Expand All @@ -158,21 +155,11 @@ tasks.named<Test>("test").configure {
// Need to allow a java security manager after Java 21, for Subject.getSubject to work
// "getSubject is supported only if a security manager is allowed".
systemProperty("java.security.manager", "allow")
maxParallelForks = 4
}

tasks.named<Test>("intTest").configure {
if (System.getenv("AWS_REGION") == null) {
environment("AWS_REGION", "us-west-2")
}
// Note: the test secrets are referenced in DropwizardServerManager
environment("POLARIS_BOOTSTRAP_CREDENTIALS", "POLARIS,root,test-admin,test-secret")
jvmArgs("--add-exports", "java.base/sun.nio.ch=ALL-UNNAMED")
// Need to allow a java security manager after Java 21, for Subject.getSubject to work
// "getSubject is supported only if a security manager is allowed".
systemProperty("java.security.manager", "allow")
maxParallelForks = 1
}
tasks.named<Test>("test").configure { maxParallelForks = 4 }

tasks.named<Test>("intTest").configure { maxParallelForks = 1 }

/**
* Adds the JPMS options required for Spark to run on Java 17, taken from the
Expand Down
3 changes: 3 additions & 0 deletions quarkus/service/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,6 @@ polaris.authentication.token-broker.max-token-generation=PT1H
%test.polaris.storage.aws.secret-key=secretKey
%test.polaris.storage.gcp.token=token
%test.polaris.storage.gcp.lifespan=PT1H
# Need to allow a java security manager after Java 21, for Subject.getSubject to work
# "getSubject is supported only if a security manager is allowed".
%test.quarkus.test.argLine=-Djava.security.manager=allow
Loading