![Edwin Kempin](/assets/img/avatar_default.png)
Some operations fail if a change in the index is stale. E.g. the GetRelated REST endpoint fails with 500 Internal Server Error if the change in the index doesn't contain the latest patch set. To be able to test such situations AbstractDaemonTest provides new methods to disable/enable change index writes. A test can now create a stale change by disabling change index writes, updating the change without reindex and then re-enabling change index writes. Change-Id: Ia3b1904162c0ed5de6ecb6229d3995f31606d004 Signed-off-by: Edwin Kempin <ekempin@google.com>
62 lines
1.4 KiB
Python
62 lines
1.4 KiB
Python
load('//tools/bzl:java.bzl', 'java_library2')
|
|
|
|
SRCS = glob(['src/test/java/com/google/gerrit/acceptance/*.java'])
|
|
|
|
DEPS = [
|
|
'//gerrit-antlr:query_exception',
|
|
'//gerrit-gpg:gpg',
|
|
'//gerrit-launcher:launcher',
|
|
'//gerrit-openid:openid',
|
|
'//gerrit-pgm:daemon',
|
|
'//gerrit-pgm:http-jetty',
|
|
'//gerrit-pgm:util-nodep',
|
|
'//gerrit-server/src/main/prolog:common',
|
|
'//gerrit-server:testutil',
|
|
'//lib/auto:auto-value',
|
|
'//lib/httpcomponents:fluent-hc',
|
|
'//lib/httpcomponents:httpclient',
|
|
'//lib/httpcomponents:httpcore',
|
|
'//lib/jetty:servlet',
|
|
'//lib/jgit/org.eclipse.jgit.junit:junit',
|
|
'//lib/log:impl_log4j',
|
|
'//lib/log:log4j',
|
|
]
|
|
|
|
PROVIDED = [
|
|
'//gerrit-common:annotations',
|
|
'//gerrit-common:server',
|
|
'//gerrit-extension-api:api',
|
|
'//gerrit-httpd:httpd',
|
|
'//gerrit-lucene:lucene',
|
|
'//gerrit-pgm:init',
|
|
'//gerrit-reviewdb:server',
|
|
'//gerrit-server:server',
|
|
'//lib:gson',
|
|
'//lib:jsch',
|
|
'//lib/jgit/org.eclipse.jgit:jgit',
|
|
'//lib/mina:sshd',
|
|
'//lib:servlet-api-3_1',
|
|
]
|
|
|
|
java_binary(
|
|
name = 'acceptance-framework',
|
|
main_class = 'Dummy',
|
|
runtime_deps = [':lib'],
|
|
visibility = ['//visibility:public'],
|
|
)
|
|
|
|
java_library2(
|
|
name = 'lib',
|
|
srcs = SRCS,
|
|
exported_deps = DEPS + [
|
|
'//lib:truth',
|
|
],
|
|
deps = PROVIDED + [ # We want these deps to be exported_deps
|
|
'//lib:gwtorm',
|
|
'//lib/guice:guice',
|
|
'//lib/guice:guice-assistedinject',
|
|
'//lib/guice:guice-servlet',
|
|
],
|
|
visibility = ['//visibility:public'],
|
|
)
|