diff options
author | Stefan Seelmann <mail@stefan-seelmann.de> | 2021-05-16 17:01:19 +0300 |
---|---|---|
committer | Stefan Seelmann <mail@stefan-seelmann.de> | 2021-05-16 17:01:19 +0300 |
commit | 4b7335cac568bdc8a9df8dda55c82e0745edaf87 (patch) | |
tree | fbc8723048626734aa98bb7f7e52074f9ffb5205 | |
parent | 738bc78cbb8b1f9a32008b2924d23accc3cc6f2a (diff) |
Build with Java 17-ea, disable ApacheDS related tests for Java 16+
3 files changed, 11 insertions, 5 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index c0bb33dd9..b00de7f11 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,7 +33,7 @@ pipeline { retry(2) } agent { - label 'ubuntu && !H28 && !H36 && !H40' + label 'ubuntu' } steps { script { @@ -60,7 +60,7 @@ pipeline { retry(2) } agent { - label 'ubuntu && !H28 && !H36 && !H40' + label 'ubuntu' } steps { script { @@ -81,19 +81,19 @@ pipeline { } } } - stage ('Linux Java 15') { + stage ('Linux Java 17') { options { timeout(time: 4, unit: 'HOURS') retry(2) } agent { - label 'ubuntu && !H28 && !H36 && !H40' + label 'ubuntu' } steps { script { docker.image('osixia/openldap:1.3.0').withRun('-e LDAP_TLS_VERIFY_CLIENT=never') { openldap -> docker.image('389ds/dirsrv').withRun('-e DS_DM_PASSWORD=admin', 'bash -c "set -m; /usr/lib/dirsrv/dscontainer -r & while ! /usr/lib/dirsrv/dscontainer -H; do sleep 5; done; sleep 5; /usr/sbin/dsconf localhost backend create --suffix dc=example,dc=org --be-name example; fg"') { fedora389ds -> - docker.image('apachedirectory/maven-build:jdk-15').inside("--link=${openldap.id}:openldap -e OPENLDAP_HOST=openldap -e OPENLDAP_PORT=389 -e OPENLDAP_PORT_SSL=636 --link=${fedora389ds.id}:fedora389ds -e FEDORA_389DS_HOST=fedora389ds -e FEDORA_389DS_PORT=3389 -e FEDORA_389DS_PORT_SSL=3636") { + docker.image('apachedirectory/maven-build:jdk-17').inside("--link=${openldap.id}:openldap -e OPENLDAP_HOST=openldap -e OPENLDAP_PORT=389 -e OPENLDAP_PORT_SSL=636 --link=${fedora389ds.id}:fedora389ds -e FEDORA_389DS_HOST=fedora389ds -e FEDORA_389DS_PORT=3389 -e FEDORA_389DS_PORT_SSL=3636") { sh 'export DISPLAY=:99; mvn -V -U -f pom-first.xml clean install && mvn -V clean install -Dorg.eclipse.swtbot.search.timeout=20000 -Denable-ui-tests' } } diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ApacheDSPluginTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ApacheDSPluginTest.java index 6b627c8cb..00f419a28 100644 --- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ApacheDSPluginTest.java +++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ApacheDSPluginTest.java @@ -43,6 +43,8 @@ import org.apache.directory.studio.test.integration.ui.bots.NewApacheDSServerWiz import org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledForJreRange; +import org.junit.jupiter.api.condition.JRE; /** @@ -51,6 +53,7 @@ import org.junit.jupiter.api.Test; * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> * @version $Rev$, $Date$ */ +@DisabledForJreRange(min = JRE.JAVA_16) public class ApacheDSPluginTest extends AbstractTestBase { protected ConsoleViewBot consoleViewBot; diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/GssApiTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/GssApiTest.java index 35dc1dd1c..8d91121a1 100644 --- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/GssApiTest.java +++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/GssApiTest.java @@ -49,6 +49,8 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInfo; +import org.junit.jupiter.api.condition.DisabledForJreRange; +import org.junit.jupiter.api.condition.JRE; /** @@ -57,6 +59,7 @@ import org.junit.jupiter.api.TestInfo; * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> * @version $Rev$, $Date$ */ +@DisabledForJreRange(min = JRE.JAVA_16) public class GssApiTest extends AbstractTestBase { private static final String serverName = "GssApiTest"; |