mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 03:57:51 +02:00
The gcloud datastore cleanup-indexes command takes its input in index.yaml form instead of datastore-indexes.yaml form. This simple translation script allows us to generate one from the other. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=169260811
20 lines
536 B
Text
20 lines
536 B
Text
package(default_visibility = ["//java/google/registry:registry_project"])
|
|
|
|
licenses(["notice"]) # Apache 2.0
|
|
|
|
py_binary(
|
|
name = "xml_to_index_yaml_translator",
|
|
srcs = ["xml_to_index_yaml_translator.py"],
|
|
deps = ["//python:python_directory_import"],
|
|
)
|
|
|
|
py_test(
|
|
name = "xml_to_index_yaml_translator_test",
|
|
size = "small",
|
|
srcs = ["xml_to_index_yaml_translator_test.py"],
|
|
data = [
|
|
"testdata/datastore-indexes.xml",
|
|
"testdata/index.yaml",
|
|
],
|
|
deps = [":xml_to_index_yaml_translator"],
|
|
)
|