From b3586b70da4219f0c7611991e0282251b997820e Mon Sep 17 00:00:00 2001 From: Srdjan Stevanetic Date: Tue, 24 Oct 2023 14:31:09 +0200 Subject: [PATCH] google project id name for the tests changed --- .../service/google/GoogleTranslationServiceClientWrapper.java | 2 +- .../eu/europeana/api/translation/tests/BaseTranslationTest.java | 2 +- .../content/google/detect/lang_detect_google_request.txt | 2 +- .../content/google/translate/translate_google_request.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/translation-service-google/src/main/java/eu/europeana/api/translation/service/google/GoogleTranslationServiceClientWrapper.java b/translation-service-google/src/main/java/eu/europeana/api/translation/service/google/GoogleTranslationServiceClientWrapper.java index fb57273a..747144bb 100644 --- a/translation-service-google/src/main/java/eu/europeana/api/translation/service/google/GoogleTranslationServiceClientWrapper.java +++ b/translation-service-google/src/main/java/eu/europeana/api/translation/service/google/GoogleTranslationServiceClientWrapper.java @@ -15,7 +15,7 @@ */ public class GoogleTranslationServiceClientWrapper { - public static final String MOCK_CLIENT_PROJ_ID = "google-test"; + public static final String MOCK_CLIENT_PROJ_ID = "project-id-test"; private final Logger logger = LogManager.getLogger(getClass()); diff --git a/translation-tests/src/integration-test/java/eu/europeana/api/translation/tests/BaseTranslationTest.java b/translation-tests/src/integration-test/java/eu/europeana/api/translation/tests/BaseTranslationTest.java index 13a65f3f..b4b84592 100644 --- a/translation-tests/src/integration-test/java/eu/europeana/api/translation/tests/BaseTranslationTest.java +++ b/translation-tests/src/integration-test/java/eu/europeana/api/translation/tests/BaseTranslationTest.java @@ -123,7 +123,7 @@ static void setProperties(DynamicPropertyRegistry registry) { return pangeanicMockTranslate; }); - registry.add("translation.google.projectId", () -> "google-test"); + registry.add("translation.google.projectId", () -> "project-id-test"); registry.add("translation.google.usehttpclient", () -> "true"); } diff --git a/translation-tests/src/integration-test/resources/content/google/detect/lang_detect_google_request.txt b/translation-tests/src/integration-test/resources/content/google/detect/lang_detect_google_request.txt index 3bc61c4e..1eeb2890 100644 --- a/translation-tests/src/integration-test/resources/content/google/detect/lang_detect_google_request.txt +++ b/translation-tests/src/integration-test/resources/content/google/detect/lang_detect_google_request.txt @@ -1,3 +1,3 @@ content: "eine Textzeile auf Deutsch" mime_type: "text/plain" -parent: "projects/google-test/locations/global" \ No newline at end of file +parent: "projects/project-id-test/locations/global" \ No newline at end of file diff --git a/translation-tests/src/integration-test/resources/content/google/translate/translate_google_request.txt b/translation-tests/src/integration-test/resources/content/google/translate/translate_google_request.txt index e5411a9d..48472ded 100644 --- a/translation-tests/src/integration-test/resources/content/google/translate/translate_google_request.txt +++ b/translation-tests/src/integration-test/resources/content/google/translate/translate_google_request.txt @@ -3,4 +3,4 @@ contents: "eine zweite Textzeile auf Deutsch" mime_type: "text/plain" source_language_code: "de" target_language_code: "en" -parent: "projects/google-test/locations/global" \ No newline at end of file +parent: "projects/project-id-test/locations/global" \ No newline at end of file