mirror of
https://github.com/google/nomulus.git
synced 2025-05-08 07:48:21 +02:00
This adds the scaffolding for a basic Spec11 pipeline- it gathers all domains from all time for a given project and counts how many there are. I've factored out a few common utilities for beam pipelines to avoid excessive duplication. Future CLs will: - Actually process domains via the SafeBrowsing API - Generate a real spec11 report - Template queries based on the input YearMonth - Abstract more commonalities across beam pipelines to reduce boilerplate when adding new pipelines. TESTED: FOSS test passed, and ran successfully on alpha ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205997741
35 lines
977 B
Text
35 lines
977 B
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 = "beam",
|
|
srcs = glob(["*.java"]),
|
|
deps = [
|
|
"//java/google/registry/beam",
|
|
"//javatests/google/registry/testing",
|
|
"@com_google_dagger",
|
|
"@com_google_guava",
|
|
"@com_google_truth",
|
|
"@com_google_truth_extensions_truth_java8_extension",
|
|
"@junit",
|
|
"@org_apache_avro",
|
|
"@org_apache_beam_runners_direct_java",
|
|
"@org_apache_beam_runners_google_cloud_dataflow_java",
|
|
"@org_apache_beam_sdks_java_core",
|
|
"@org_apache_beam_sdks_java_io_google_cloud_platform",
|
|
"@org_mockito_all",
|
|
],
|
|
)
|
|
|
|
GenTestRules(
|
|
name = "GeneratedTestRules",
|
|
default_test_size = "small",
|
|
test_files = glob(["*Test.java"]),
|
|
deps = [":beam"],
|
|
)
|