mirror of
https://github.com/google/nomulus.git
synced 2025-07-21 18:26:12 +02:00
Remove the GoogleInternal designator on the premium/reserved list tests, move the lists themselves under the config/files directory, and fix all of the surrounding infrastructure. The lists do not get exported. Only the "example.txt" list does, allowing the test to function on the open source build. TESTED: Verified that the gradle build works and that only the example.txt file is exported. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=229940659
55 lines
1.6 KiB
Text
55 lines
1.6 KiB
Text
package(
|
|
default_testonly = 1,
|
|
default_visibility = ["//java/google/registry:registry_project"],
|
|
)
|
|
|
|
licenses(["notice"]) # Apache 2.0
|
|
|
|
load("//java/com/google/testing/builddefs:GenTestRules.bzl", "GenTestRules")
|
|
|
|
java_library(
|
|
name = "model",
|
|
# There be circular dependencies down thar, so just have this
|
|
# BUILD file glob them in.
|
|
srcs = glob([
|
|
"*.java",
|
|
"**/*.java",
|
|
]),
|
|
resources = [
|
|
"//java/google/registry/config/files/premium:all_lists",
|
|
"//java/google/registry/config/files/reserved:all_lists",
|
|
] + glob(["**/testdata/*"]),
|
|
deps = [
|
|
"//java/google/registry/config",
|
|
"//java/google/registry/dns/writer",
|
|
"//java/google/registry/flows",
|
|
"//java/google/registry/model",
|
|
"//java/google/registry/util",
|
|
"//java/google/registry/xml",
|
|
"//javatests/google/registry/testing",
|
|
"//javatests/google/registry/xml",
|
|
"//third_party/objectify:objectify-v4_1",
|
|
"@com_google_appengine_api_1_0_sdk",
|
|
"@com_google_appengine_testing",
|
|
"@com_google_flogger",
|
|
"@com_google_flogger_system_backend",
|
|
"@com_google_guava",
|
|
"@com_google_monitoring_client_contrib",
|
|
"@com_google_truth",
|
|
"@com_google_truth_extensions_truth_java8_extension",
|
|
"@joda_time",
|
|
"@junit",
|
|
"@org_joda_money",
|
|
"@org_mockito_all",
|
|
],
|
|
)
|
|
|
|
GenTestRules(
|
|
name = "GeneratedTestRules",
|
|
medium_tests = ["registry/label/PremiumListTest"],
|
|
test_files = glob([
|
|
"*Test.java",
|
|
"**/*Test.java",
|
|
]),
|
|
deps = [":model"],
|
|
)
|