diff --git a/src/test/java/com/lilt/testCreateContent/TestCreateChars.java b/src/test/java/com/lilt/testCreateContent/TestCreateChars.java index be978f077..30cdea8db 100644 --- a/src/test/java/com/lilt/testCreateContent/TestCreateChars.java +++ b/src/test/java/com/lilt/testCreateContent/TestCreateChars.java @@ -25,6 +25,8 @@ public TestCreateChars(String charCase) { this.charCase = charCase; this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } diff --git a/src/test/java/com/lilt/testCreateContent/TestCreateSections.java b/src/test/java/com/lilt/testCreateContent/TestCreateSections.java index 1f5685518..afc7278e9 100644 --- a/src/test/java/com/lilt/testCreateContent/TestCreateSections.java +++ b/src/test/java/com/lilt/testCreateContent/TestCreateSections.java @@ -26,6 +26,8 @@ public TestCreateSections(String sectionCase) { this.sectionCase = sectionCase; this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } diff --git a/src/test/java/com/lilt/testCreateContent/TestSign.java b/src/test/java/com/lilt/testCreateContent/TestSign.java index 51d50c018..cd77bf356 100644 --- a/src/test/java/com/lilt/testCreateContent/TestSign.java +++ b/src/test/java/com/lilt/testCreateContent/TestSign.java @@ -24,6 +24,8 @@ public TestSign(boolean sign) { this.sign = sign; this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } diff --git a/src/test/java/com/lilt/testDataSource/TestCreateDataSource.java b/src/test/java/com/lilt/testDataSource/TestCreateDataSource.java index 16d18dcad..256a2dce8 100644 --- a/src/test/java/com/lilt/testDataSource/TestCreateDataSource.java +++ b/src/test/java/com/lilt/testDataSource/TestCreateDataSource.java @@ -25,6 +25,8 @@ public TestCreateDataSource(String dataSourceLanguages) { this.dataSourceLanguages = dataSourceLanguages; this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } diff --git a/src/test/java/com/lilt/testDataSource/TestUploadTMX.java b/src/test/java/com/lilt/testDataSource/TestUploadTMX.java index 509e8afc2..67ce0d3f0 100644 --- a/src/test/java/com/lilt/testDataSource/TestUploadTMX.java +++ b/src/test/java/com/lilt/testDataSource/TestUploadTMX.java @@ -28,6 +28,8 @@ public TestUploadTMX(String tmxFileCase) { this.tmxFileCase = tmxFileCase; this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } diff --git a/src/test/java/com/lilt/testInstantTranslate/TestInstantTranslate.java b/src/test/java/com/lilt/testInstantTranslate/TestInstantTranslate.java index 483787e1d..809c9ec1e 100644 --- a/src/test/java/com/lilt/testInstantTranslate/TestInstantTranslate.java +++ b/src/test/java/com/lilt/testInstantTranslate/TestInstantTranslate.java @@ -26,6 +26,8 @@ public class TestInstantTranslate { public TestInstantTranslate() { this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } diff --git a/src/test/java/com/lilt/testVerifiedTranslate/TestVerifiedTranslate.java b/src/test/java/com/lilt/testVerifiedTranslate/TestVerifiedTranslate.java index 8e6d12fed..061b619a9 100644 --- a/src/test/java/com/lilt/testVerifiedTranslate/TestVerifiedTranslate.java +++ b/src/test/java/com/lilt/testVerifiedTranslate/TestVerifiedTranslate.java @@ -34,6 +34,8 @@ public class TestVerifiedTranslate { public TestVerifiedTranslate() { this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); }