diff --git a/testing/legal-test-gcp/pom.xml b/testing/legal-test-gcp/pom.xml index 03535c75e84ed733aa2e97995864ec9df7e2af76..a8c42dc0b3a6f4f93a8aeeac551536b1e3b43681 100644 --- a/testing/legal-test-gcp/pom.xml +++ b/testing/legal-test-gcp/pom.xml @@ -117,6 +117,12 @@ <artifactId>guava</artifactId> <version>27.1-jre</version> </dependency> + <dependency> + <groupId>org.projectlombok</groupId> + <artifactId>lombok</artifactId> + <version>1.18.2</version> + <scope>provided</scope> + </dependency> <!-- Tests --> <dependency> @@ -124,9 +130,22 @@ <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> - </dependency> + </dependency> + + <!--Logging--> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-to-slf4j</artifactId> + <version>2.11.2</version> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-jdk14</artifactId> + <version>1.8.0-beta4</version> + </dependency> </dependencies> + <!-- can remove this? --> <repositories> <repository> diff --git a/testing/legal-test-gcp/src/test/java/org/opengroup/osdu/legal/util/GCPLegalTagUtils.java b/testing/legal-test-gcp/src/test/java/org/opengroup/osdu/legal/util/GCPLegalTagUtils.java index b8202bb6342be4a0bed878f3c3938dd0ffe75267..c2b7d9be9220a9e63ae471b7d9a2da8a6ab22112 100644 --- a/testing/legal-test-gcp/src/test/java/org/opengroup/osdu/legal/util/GCPLegalTagUtils.java +++ b/testing/legal-test-gcp/src/test/java/org/opengroup/osdu/legal/util/GCPLegalTagUtils.java @@ -13,7 +13,9 @@ import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; import com.google.common.collect.Lists; import java.util.Objects; +import lombok.extern.java.Log; +@Log public class GCPLegalTagUtils extends LegalTagUtils { private static final String BUCKET_NAME = "legal-service-configuration"; private static final String FILE_NAME = "Legal_COO.json"; @@ -46,7 +48,7 @@ public class GCPLegalTagUtils extends LegalTagUtils { .toLowerCase(); String enableFullBucketName = System.getProperty("ENABLE_FULL_BUCKET_NAME", System.getenv("ENABLE_FULL_BUCKET_NAME")).toLowerCase(); - + log.info("ENABLE_FULL_BUCKET_NAME = " + enableFullBucketName); if (Objects.nonNull(enableFullBucketName) && Boolean.valueOf(enableFullBucketName)) { return projectName + "-" + tenantName + "-" + BUCKET_NAME; }