-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a jar separate from the test framework to provide utilities for testing x-content related code. The first thing moved there is the base schema validation test case, which also pulls along the com.networknt dependency and jackson. For now these are direct dependencies, though we could consider shading them in the future so as not to expose downstream projects to them, which may have version conflicts.
- Loading branch information
Showing
23 changed files
with
119 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
apply plugin: 'elasticsearch.build' | ||
apply plugin: 'elasticsearch.publish' | ||
|
||
dependencies { | ||
api project(":test:framework") | ||
api project(":libs:elasticsearch-x-content") | ||
|
||
// json schema validation dependencies | ||
implementation "com.fasterxml.jackson.core:jackson-core:${versions.jackson}" | ||
implementation "com.networknt:json-schema-validator:${versions.networknt_json_schema_validator}" | ||
implementation "com.fasterxml.jackson.core:jackson-databind:${versions.jackson}" | ||
implementation "com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}" | ||
implementation "org.apache.commons:commons-compress:1.19" | ||
implementation "org.apache.commons:commons-lang3:${versions.commons_lang3}" | ||
} | ||
|
||
// the main files are actually test files, so use the appropriate forbidden api sigs | ||
tasks.named('forbiddenApisMain').configure { | ||
replaceSignatureFiles 'jdk-signatures', 'es-all-signatures', 'es-test-signatures' | ||
} | ||
|
||
// TODO: should we have licenses for our test deps? | ||
tasks.named("dependencyLicenses").configure { enabled = false } | ||
tasks.named("dependenciesInfo").configure { enabled = false } | ||
tasks.named("dependenciesGraph").configure { enabled = false } | ||
|
||
// no tests of the tests, yet | ||
tasks.named("testingConventions").configure { enabled = false } | ||
|
||
tasks.named("thirdPartyAudit").configure { | ||
ignoreMissingClasses( | ||
// classes are missing | ||
'com.github.luben.zstd.ZstdInputStream', | ||
'com.github.luben.zstd.ZstdOutputStream', | ||
'java.util.jar.Pack200', | ||
'java.util.jar.Pack200$Packer', | ||
'java.util.jar.Pack200$Unpacker', | ||
'org.brotli.dec.BrotliInputStream', | ||
'org.jcodings.specific.UTF8Encoding', | ||
'org.joni.Matcher', | ||
'org.joni.Regex', | ||
'org.joni.Syntax', | ||
'org.slf4j.Logger', | ||
'org.slf4j.LoggerFactory', | ||
'org.tukaani.xz.DeltaOptions', | ||
'org.tukaani.xz.FilterOptions', | ||
'org.tukaani.xz.LZMA2InputStream', | ||
'org.tukaani.xz.LZMA2Options', | ||
'org.tukaani.xz.LZMAInputStream', | ||
'org.tukaani.xz.LZMAOutputStream', | ||
'org.tukaani.xz.MemoryLimitException', | ||
'org.tukaani.xz.UnsupportedOptionsException', | ||
'org.tukaani.xz.XZ', | ||
'org.tukaani.xz.XZOutputStream', | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.