0fcb6ac40b
Now the elasticsearch implementation is considered stable enough for experimental usage, and is mentioned as such in the 2.14 release notes, we should remove the "flaky" tag so that the tests get run on CI. Change-Id: I225a902b74730afbc763a0989b4ce7d7481fed42
69 lines
1.8 KiB
Python
69 lines
1.8 KiB
Python
java_library(
|
|
name = "elasticsearch",
|
|
srcs = glob(["src/main/java/**/*.java"]),
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//gerrit-antlr:query_exception",
|
|
"//gerrit-extension-api:api",
|
|
"//gerrit-reviewdb:client",
|
|
"//gerrit-reviewdb:server",
|
|
"//gerrit-server:server",
|
|
"//lib:gson",
|
|
"//lib:guava",
|
|
"//lib:gwtorm",
|
|
"//lib:protobuf",
|
|
"//lib/commons:codec",
|
|
"//lib/commons:lang",
|
|
"//lib/elasticsearch",
|
|
"//lib/elasticsearch:jest",
|
|
"//lib/elasticsearch:jest-common",
|
|
"//lib/guice",
|
|
"//lib/guice:guice-assistedinject",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
"//lib/joda:joda-time",
|
|
"//lib/log:api",
|
|
"//lib/lucene:lucene-analyzers-common",
|
|
"//lib/lucene:lucene-core",
|
|
],
|
|
)
|
|
|
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
|
|
|
java_library(
|
|
name = "elasticsearch_test_utils",
|
|
testonly = 1,
|
|
srcs = glob(["src/test/java/**/ElasticTestUtils.java"]),
|
|
deps = [
|
|
":elasticsearch",
|
|
"//gerrit-extension-api:api",
|
|
"//gerrit-reviewdb:client",
|
|
"//gerrit-server:server",
|
|
"//lib:gson",
|
|
"//lib:guava",
|
|
"//lib:junit",
|
|
"//lib:truth",
|
|
"//lib/elasticsearch",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
"//lib/jgit/org.eclipse.jgit.junit:junit",
|
|
],
|
|
)
|
|
|
|
junit_tests(
|
|
name = "elasticsearch_tests",
|
|
size = "large",
|
|
srcs = glob(["src/test/java/**/*Test.java"]),
|
|
tags = [
|
|
"elastic",
|
|
],
|
|
deps = [
|
|
":elasticsearch",
|
|
":elasticsearch_test_utils",
|
|
"//gerrit-server:query_tests_code",
|
|
"//gerrit-server:server",
|
|
"//gerrit-server:testutil",
|
|
"//lib/guice",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
"//lib/jgit/org.eclipse.jgit.junit:junit",
|
|
],
|
|
)
|