Merge pull request #1002 from DataDog/mar-kolya/enable-tests-for-java13

Enable tests for java13
This commit is contained in:
Nikolay Martynov 2019-09-19 12:28:00 -04:00 committed by GitHub
commit 53b02fb333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -137,6 +137,11 @@ jobs:
environment:
- TEST_TASK: testJava12
test_13:
<<: *default_test_job
environment:
- TEST_TASK: testJava13
agent_integration_tests:
<<: *defaults
docker:
@ -314,6 +319,12 @@ workflows:
filters:
tags:
only: /.*/
- test_13:
requires:
- build
filters:
tags:
only: /.*/
- agent_integration_tests:
requires:
@ -348,6 +359,7 @@ workflows:
- test_11
- test_zulu11
- test_12
- test_13
- agent_integration_tests
- check
filters:
@ -368,6 +380,7 @@ workflows:
- test_11
- test_zulu11
- test_12
- test_13
- agent_integration_tests
- check
filters:

View File

@ -1,6 +1,13 @@
import datadog.trace.agent.test.log.injection.LogContextInjectionTestBase
import org.apache.log4j.MDC
import spock.lang.Requires
/**
It looks like log4j1 is broken for any java version that doesn't have '.' in version number
- it thinks it runs on ancient version. For example this happens for java13.
See {@link org.apache.log4j.helpers.Loader}.
*/
@Requires({ System.getProperty("java.version").contains(".") })
class Log4j1MDCTest extends LogContextInjectionTestBase {
@Override