Buck: Make acceptance tests valid java class names
This is a preparation change to support Bazel build for Gerrit. In Bazel we need to generate Test Suite class per java_test rule instance. For that the name of java_test rule must be valid java class name. Harmonize the naming convention for Buck too. Change-Id: I7da30469487d1bc0335800070e0ab488236c5357
This commit is contained in:
committed by
David Pursehouse
parent
473e2acc8d
commit
732217232d
@@ -1,7 +1,7 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'api-account',
|
||||
group = 'api_account',
|
||||
srcs = glob(['*IT.java']),
|
||||
labels = ['api'],
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'api-change',
|
||||
group = 'api_change',
|
||||
srcs = glob(['*IT.java']),
|
||||
labels = ['api'],
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'api-config',
|
||||
group = 'api_config',
|
||||
srcs = glob(['*IT.java']),
|
||||
labels = ['api'],
|
||||
)
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'api-group',
|
||||
group = 'api_group',
|
||||
srcs = glob(['*IT.java']),
|
||||
deps = [
|
||||
':util',
|
||||
'//gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/account:util',
|
||||
],
|
||||
labels = ['api']
|
||||
labels = ['api'],
|
||||
)
|
||||
|
||||
java_library(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'api-project',
|
||||
group = 'api_project',
|
||||
srcs = glob(['*IT.java']),
|
||||
labels = ['api'],
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'api-revision',
|
||||
group = 'api_revision',
|
||||
srcs = glob(['*IT.java']),
|
||||
labels = ['api'],
|
||||
)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'rest-account',
|
||||
group = 'rest_account',
|
||||
srcs = glob(['*IT.java']),
|
||||
deps = [':util'],
|
||||
labels = ['rest']
|
||||
labels = ['rest'],
|
||||
)
|
||||
|
||||
java_library(
|
||||
|
||||
@@ -9,7 +9,7 @@ SUBMIT_TESTS = glob(['Submit*IT.java'])
|
||||
OTHER_TESTS = glob(['*IT.java'], excludes = SUBMIT_TESTS)
|
||||
|
||||
acceptance_tests(
|
||||
group = 'rest-change-other',
|
||||
group = 'rest_change_other',
|
||||
srcs = OTHER_TESTS,
|
||||
deps = [
|
||||
':submit_util',
|
||||
@@ -19,7 +19,7 @@ acceptance_tests(
|
||||
)
|
||||
|
||||
acceptance_tests(
|
||||
group = 'rest-change-submit',
|
||||
group = 'rest_change_submit',
|
||||
srcs = SUBMIT_TESTS,
|
||||
deps = [
|
||||
':submit_util',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'rest-config',
|
||||
group = 'rest_config',
|
||||
srcs = glob(['*IT.java']),
|
||||
labels = ['rest']
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'rest-group',
|
||||
group = 'rest_group',
|
||||
srcs = glob(['*IT.java']),
|
||||
labels = ['rest']
|
||||
)
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'rest-project',
|
||||
group = 'rest_project',
|
||||
srcs = glob(['*IT.java']),
|
||||
deps = [
|
||||
':branch',
|
||||
':project',
|
||||
],
|
||||
labels = ['rest']
|
||||
labels = ['rest'],
|
||||
)
|
||||
|
||||
java_library(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'server-change',
|
||||
group = 'server_change',
|
||||
srcs = glob(['*IT.java']),
|
||||
labels = ['server'],
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'server-event',
|
||||
group = 'server_event',
|
||||
srcs = glob(['*IT.java']),
|
||||
labels = ['server'],
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
|
||||
acceptance_tests(
|
||||
group = 'server-notedb',
|
||||
group = 'server_notedb',
|
||||
srcs = glob(['*IT.java']),
|
||||
labels = ['notedb', 'server'],
|
||||
)
|
||||
|
||||
@@ -3,13 +3,13 @@ include_defs('//gerrit-acceptance-tests/tests.defs')
|
||||
FLAKY_TEST_CASES=['ProjectWatchIT.java']
|
||||
|
||||
acceptance_tests(
|
||||
group = 'server-project',
|
||||
group = 'server_project',
|
||||
srcs = glob(['*IT.java'], excludes=FLAKY_TEST_CASES),
|
||||
labels = ['server'],
|
||||
)
|
||||
|
||||
acceptance_tests(
|
||||
group = 'server-project-flaky',
|
||||
group = 'server_project_flaky',
|
||||
srcs = FLAKY_TEST_CASES,
|
||||
labels = ['server', 'flaky'],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user