From f1271fda42af8439eaedbf6b5f594fb81b11dc9c Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Mon, 8 Mar 2021 12:20:14 -0800 Subject: [PATCH] chore: adding new output for each test so that the following issue won't occur :Output dir is in use by another batch translation job. output_uri_prefix: (#464) --- .../translate/BatchTranslateTextWithGlossaryAndModelTests.java | 2 +- .../example/translate/BatchTranslateTextWithGlossaryTests.java | 2 +- .../com/example/translate/BatchTranslateTextWithModelTests.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 2d763def273..b031a5ac04f 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -52,7 +52,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String MODEL_ID = "TRL2188848820815848149"; private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index b7a003384a0..d2b9ca1c210 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -51,7 +51,7 @@ public class BatchTranslateTextWithGlossaryTests { "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String GLOSSARY_ID = String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index ffa6c089342..e9f09b07916 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -46,7 +46,7 @@ public class BatchTranslateTextWithModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL2188848820815848149"; - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID());