diff --git a/indexer-core/pom.xml b/indexer-core/pom.xml index 9242903c9118122c639d169c8ac4c5c62fdd9140..919ad21103a071122b569c0ca33c2215a6ecaff6 100644 --- a/indexer-core/pom.xml +++ b/indexer-core/pom.xml @@ -1,16 +1,15 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-service</artifactId> - <version>1.0.4-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>indexer-core</artifactId> - <version>1.0.6-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <name>indexer-core</name> <description>Indexer Service Core</description> <packaging>jar</packaging> diff --git a/pom.xml b/pom.xml index af837eb4e68da25419542c76461d32943e68cda3..d24aad221589fd26fd867d4c1b9d8bd03f4d2c24 100644 --- a/pom.xml +++ b/pom.xml @@ -1,20 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.18.RELEASE</version> - <relativePath/> + <relativePath /> </parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-service</artifactId> <packaging>pom</packaging> - <version>1.0.4-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <description>Indexer Service</description> <properties> diff --git a/provider/indexer-aws/pom.xml b/provider/indexer-aws/pom.xml index b8e13f22e2f628b220360494943833840cdcca1a..d6a11e333aba7bc1168209b4489d02d6648909e3 100644 --- a/provider/indexer-aws/pom.xml +++ b/provider/indexer-aws/pom.xml @@ -14,12 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. --> -<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-service</artifactId> - <version>1.0.4-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> @@ -27,7 +26,7 @@ <artifactId>indexer-aws</artifactId> <description>Storage service on AWS</description> <packaging>jar</packaging> - <version>${version.number}</version> + <version>0.6.0-SNAPSHOT</version> <properties> <aws.version>1.11.637</aws.version> @@ -44,7 +43,7 @@ <dependency> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-core</artifactId> - <version>1.0.6-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> </dependency> <dependency> <groupId>org.opengroup.osdu.core.aws</groupId> diff --git a/provider/indexer-azure/pom.xml b/provider/indexer-azure/pom.xml index 8a5f33513d0b6db572b7410418684c8afea0927f..f67a7fcbb3ab51a12eafb5120b8a56ffb4e64a16 100644 --- a/provider/indexer-azure/pom.xml +++ b/provider/indexer-azure/pom.xml @@ -15,33 +15,31 @@ limitations under the License. --> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-service</artifactId> - <version>1.0.4-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> <artifactId>indexer-azure</artifactId> - <version>1.0.4-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <name>indexer-azure</name> <description>Indexer Service Azure</description> <packaging>jar</packaging> <properties> <azure.version>2.1.7</azure.version> - <azure.appservice.resourcegroup></azure.appservice.resourcegroup> - <azure.appservice.plan></azure.appservice.plan> - <azure.appservice.appname></azure.appservice.appname> - <azure.appservice.subscription></azure.appservice.subscription> + <azure.appservice.resourcegroup /> + <azure.appservice.plan /> + <azure.appservice.appname /> + <azure.appservice.subscription /> <log4j.version>2.11.2</log4j.version> <nimbus-jose-jwt.version>8.2</nimbus-jose-jwt.version> - <indexer-core.version>1.0.6-SNAPSHOT</indexer-core.version> + <indexer-core.version>0.6.0-SNAPSHOT</indexer-core.version> <spring-security-jwt.version>1.1.1.RELEASE</spring-security-jwt.version> <osdu.corelibazure.version>0.0.42</osdu.corelibazure.version> <osdu.oscorecommon.version>0.3.12</osdu.oscorecommon.version> diff --git a/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/config/AzureBootstrapConfig.java b/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/config/AzureBootstrapConfig.java index 09f69ecde0f5d292026c9220ae1c7b89adc184fe..570b932a29f49f8ba849488ed55d9e2f61d440ce 100644 --- a/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/config/AzureBootstrapConfig.java +++ b/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/config/AzureBootstrapConfig.java @@ -16,6 +16,9 @@ package org.opengroup.osdu.indexer.azure.config; import com.azure.security.keyvault.secrets.SecretClient; import org.opengroup.osdu.azure.KeyVaultFacade; +import org.opengroup.osdu.core.common.entitlements.EntitlementsAPIConfig; +import org.opengroup.osdu.core.common.entitlements.EntitlementsFactory; +import org.opengroup.osdu.core.common.entitlements.IEntitlementsFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.stereotype.Component; @@ -37,6 +40,12 @@ public class AzureBootstrapConfig { @Value("${MAX_CACHE_VALUE_SIZE}") private Integer maxCacheValueSize; + @Value("${AUTHORIZE_API_KEY}") + private String entitlementsAPIKey; + + @Value("${AUTHORIZE_API}") + private String entitlementsAPIEndpoint; + @Bean @Named("KEY_VAULT_URL") public String getKeyVaultURL() { @@ -80,4 +89,13 @@ public class AzureBootstrapConfig { String tenant = KeyVaultFacade.getSecretWithValidation(sc, "app-dev-sp-tenant-id"); return String.format(urlFormat, tenant); } + + @Bean + public IEntitlementsFactory entitlementsFactory() { + EntitlementsAPIConfig apiConfig = EntitlementsAPIConfig.builder() + .apiKey(entitlementsAPIKey) + .rootUrl(entitlementsAPIEndpoint) + .build(); + return new EntitlementsFactory(apiConfig); + } } diff --git a/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/di/EntitlementsFactoryAzure.java b/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/di/EntitlementsFactoryAzure.java deleted file mode 100644 index 63e268a87015d69021db40de5daac634c027bdea..0000000000000000000000000000000000000000 --- a/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/di/EntitlementsFactoryAzure.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Microsoft Corporation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.opengroup.osdu.indexer.azure.di; - -import org.opengroup.osdu.core.common.model.http.DpsHeaders; -import org.opengroup.osdu.core.common.entitlements.IEntitlementsFactory; -import org.opengroup.osdu.core.common.entitlements.IEntitlementsService; -import org.springframework.context.annotation.Primary; -import org.springframework.stereotype.Component; - -@Component -@Primary -public class EntitlementsFactoryAzure implements IEntitlementsFactory { - @Override - public IEntitlementsService create(DpsHeaders dpsHeaders) { - return new EntitlementsServiceAzure(dpsHeaders); - } -} diff --git a/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/di/EntitlementsServiceAzure.java b/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/di/EntitlementsServiceAzure.java deleted file mode 100644 index 05370bd83eed7eba1c519ad48570149fb06cab6b..0000000000000000000000000000000000000000 --- a/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/di/EntitlementsServiceAzure.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright © Microsoft Corporation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.opengroup.osdu.indexer.azure.di; - -import com.microsoft.azure.spring.autoconfigure.aad.UserPrincipal; -import org.apache.http.HttpStatus; - -import org.opengroup.osdu.core.common.model.entitlements.*; -import org.opengroup.osdu.core.common.model.http.DpsHeaders; -import org.opengroup.osdu.core.common.entitlements.IEntitlementsService; -import org.opengroup.osdu.core.common.http.HttpResponse; -import org.springframework.security.core.Authentication; -import org.springframework.security.core.GrantedAuthority; -import org.springframework.security.core.context.SecurityContextHolder; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -public class EntitlementsServiceAzure implements IEntitlementsService { - //service principals don't have UPN or email - static final String INTEGRATION_TEST_ADMIN_ROLE = "data.test.admin@opendes.onmicrosoft.com"; - public static final String PREFIX = "ROLE_"; - DpsHeaders headers; - - public EntitlementsServiceAzure(DpsHeaders headers){ - this.headers = headers; - } - - @Override - public MemberInfo addMember(GroupEmail groupEmail, MemberInfo memberInfo) throws EntitlementsException { - return null; - } - - @Override - public Members getMembers(GroupEmail groupEmail, GetMembers getMembers) throws EntitlementsException { - return null; - } - - @Override - public Groups getGroups() throws EntitlementsException { - final Authentication auth = SecurityContextHolder.getContext().getAuthentication(); - final UserPrincipal current = (UserPrincipal) auth.getPrincipal(); - String email = current.getUpn(); - - List<GroupInfo> giList = new ArrayList(); - Collection<? extends GrantedAuthority> authorities = auth.getAuthorities(); - for(GrantedAuthority authority : authorities) - { - GroupInfo gi = new GroupInfo(); - String role = authority.getAuthority(); - if (role.startsWith(PREFIX)){ - role = role.substring(PREFIX.length()); - } - gi.setName(role); - if ((email == null || email.isEmpty()) && role.equalsIgnoreCase(INTEGRATION_TEST_ADMIN_ROLE)) { - email = INTEGRATION_TEST_ADMIN_ROLE; - gi.setEmail(email); - giList.add(0, gi); - } - else { - gi.setEmail(email); - giList.add(gi); - } - } - if (giList.size() > 0) - { - Groups groups = new Groups(); - groups.setGroups(giList); - groups.setDesId(email); - return groups; - } - - HttpResponse response = new HttpResponse(); - response.setResponseCode(HttpStatus.SC_INTERNAL_SERVER_ERROR); - throw new EntitlementsException("no authorities found", response); - } - - @Override - public GroupInfo createGroup(CreateGroup createGroup) throws EntitlementsException { - return null; - } - - @Override - public void deleteMember(String s, String s1) throws EntitlementsException { - - } - - @Override - public Groups authorizeAny(String... strings) throws EntitlementsException { - return null; - } - - @Override - public void authenticate() throws EntitlementsException { - - } -} diff --git a/provider/indexer-gcp/cloudbuild/Dockerfile.cloudbuild b/provider/indexer-gcp/cloudbuild/Dockerfile.cloudbuild index 59c9b5dafcf6824308be6cf80357a887ac75bd36..65a9b4197c4d29aaa0aae6c8dd8d6abd7d6c2dac 100644 --- a/provider/indexer-gcp/cloudbuild/Dockerfile.cloudbuild +++ b/provider/indexer-gcp/cloudbuild/Dockerfile.cloudbuild @@ -7,7 +7,7 @@ ENV PROVIDER_NAME $PROVIDER_NAME ARG PORT ENV PORT $PORT # Copy the jar to the production image from the builder stage. -COPY provider/indexer-${PROVIDER_NAME}/target/indexer-${PROVIDER_NAME}-*-SNAPSHOT-spring-boot.jar indexer-${PROVIDER_NAME}.jar +COPY provider/indexer-${PROVIDER_NAME}/target/indexer-${PROVIDER_NAME}-*-spring-boot.jar indexer-${PROVIDER_NAME}.jar # Run the web service on container startup. CMD java -Djava.security.egd=indexer:/dev/./urandom -Dserver.port=${PORT} -jar /app/indexer-${PROVIDER_NAME}.jar diff --git a/provider/indexer-gcp/pom.xml b/provider/indexer-gcp/pom.xml index 80d1d46e25c23f830a051c867c9c9e8653199ce5..bd7ee9b85f6dd24949f9ea4610d3d915bfe74bdd 100644 --- a/provider/indexer-gcp/pom.xml +++ b/provider/indexer-gcp/pom.xml @@ -1,18 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-service</artifactId> - <version>1.0.4-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> <artifactId>indexer-gcp</artifactId> - <version>1.0.4-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <name>indexer-gcp</name> <description>Indexer Service GCP App Engine</description> <packaging>jar</packaging> @@ -21,7 +19,7 @@ <dependency> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-core</artifactId> - <version>1.0.6-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> </dependency> <dependency> diff --git a/provider/indexer-ibm/pom.xml b/provider/indexer-ibm/pom.xml index af9c027d811b553ce5bb7ca4767ca486d6ea8c21..a8ef4cf4cb9bc3d439b114778adc2cad62fc4fc6 100644 --- a/provider/indexer-ibm/pom.xml +++ b/provider/indexer-ibm/pom.xml @@ -15,15 +15,13 @@ limitations under the License. --> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-service</artifactId> - <version>1.0.4-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> @@ -55,7 +53,7 @@ <dependency> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-core</artifactId> - <version>1.0.6-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> </dependency> <dependency> diff --git a/provider/indexer-reference/pom.xml b/provider/indexer-reference/pom.xml index 99d01082c723b55da8f969a693d301daf9378570..64212d38f47c19bfb2de3205a4b1fbf5617d84d5 100644 --- a/provider/indexer-reference/pom.xml +++ b/provider/indexer-reference/pom.xml @@ -16,20 +16,18 @@ ~ limitations under the License. --> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-service</artifactId> - <version>1.0.4-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> <artifactId>indexer-reference</artifactId> - <version>0.0.1-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <name>indexer-reference</name> <description>Indexer Service GCP Anthos</description> <packaging>jar</packaging> @@ -38,7 +36,7 @@ <dependency> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-core</artifactId> - <version>1.0.6-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> </dependency> <dependency> diff --git a/testing/indexer-test-aws/pom.xml b/testing/indexer-test-aws/pom.xml index d6547382b0486fa83b50353c3a36334d7edd1029..e8c2f455b1a331a3cff88dbb309e509e59b1cbb5 100644 --- a/testing/indexer-test-aws/pom.xml +++ b/testing/indexer-test-aws/pom.xml @@ -14,22 +14,20 @@ See the License for the specific language governing permissions and limitations under the License. --> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>indexer-test</artifactId> - <version>0.0.5-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-test-aws</artifactId> - <version>0.0.3-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <packaging>jar</packaging> <properties> @@ -44,7 +42,7 @@ <dependency> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-test-core</artifactId> - <version>0.0.3-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> </dependency> <!-- AWS specific packages --> diff --git a/testing/indexer-test-azure/pom.xml b/testing/indexer-test-azure/pom.xml index 8eefa89e1a76d71b13166b8a0c4b58b4e417464b..2a6703142879b538f3f01319953cb9aa18833633 100644 --- a/testing/indexer-test-azure/pom.xml +++ b/testing/indexer-test-azure/pom.xml @@ -14,22 +14,20 @@ See the License for the specific language governing permissions and limitations under the License. --> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>indexer-test</artifactId> - <version>0.0.5-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-test-azure</artifactId> - <version>0.0.3-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <packaging>jar</packaging> <properties> @@ -47,7 +45,7 @@ <dependency> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-test-core</artifactId> - <version>0.0.3-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> </dependency> <!-- Azure dependencies --> @@ -55,13 +53,6 @@ <groupId>org.opengroup.osdu</groupId> <artifactId>core-lib-azure</artifactId> <version>0.0.33</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>com.azure</groupId> - <artifactId>azure-core-http-netty</artifactId> - </exclusion> - </exclusions> </dependency> <dependency> @@ -176,6 +167,18 @@ <scope>test</scope> </dependency> <!--Added dependency for utilizing azure service principle class--> + <dependency> + <groupId>org.opengroup.osdu</groupId> + <artifactId>core-lib-azure</artifactId> + <version>0.0.33</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>com.azure</groupId> + <artifactId>azure-core-http-netty</artifactId> + </exclusion> + </exclusions> + </dependency> <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> diff --git a/testing/indexer-test-core/pom.xml b/testing/indexer-test-core/pom.xml index 8e93757346a0598208df29ab0f8e2dab9f1e8c56..37659e5ba08a4f640dc0d678e5e453128833ba1c 100644 --- a/testing/indexer-test-core/pom.xml +++ b/testing/indexer-test-core/pom.xml @@ -1,19 +1,17 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>indexer-test</artifactId> - <version>0.0.5-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-test-core</artifactId> - <version>0.0.3-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <properties> <maven.compiler.target>1.8</maven.compiler.target> diff --git a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/CleanupIndiciesSteps.java b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/CleanupIndiciesSteps.java index d15a6668d90540a862167070018333599feb1143..d348fd9d2a48fb4daaad6099f4609fea20882329 100644 --- a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/CleanupIndiciesSteps.java +++ b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/CleanupIndiciesSteps.java @@ -87,8 +87,8 @@ public class CleanupIndiciesSteps extends TestsBase { records = new Gson().fromJson(fileContent, new TypeToken<List<Map<String, Object>>>() {}.getType()); for (Map<String, Object> testRecord : records) { - testRecord.put("id", generateActualName(testRecord.get("id").toString(), timeStamp)); testRecord.put("kind", actualKind); + testRecord.put("id", generateActualId(testRecord.get("id").toString(), timeStamp, actualKind)); testRecord.put("legal", generateLegalTag()); String[] x_acl = {generateActualName(dataGroup,timeStamp)+"."+getEntitlementsDomain()}; Acl acl = Acl.builder().viewers(x_acl).owners(x_acl).build(); diff --git a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/RecordSteps.java b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/RecordSteps.java index 55b4413c0f997ef6f675b71385fbb430e7c4dceb..c6ebab631a5e46f0d47ae2814cd36e1d412d4b7c 100644 --- a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/RecordSteps.java +++ b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/RecordSteps.java @@ -96,8 +96,8 @@ public class RecordSteps extends TestsBase { records = new Gson().fromJson(fileContent, new TypeToken<List<Map<String, Object>>>() {}.getType()); for (Map<String, Object> testRecord : records) { - testRecord.put("id", generateRecordId(testRecord)); testRecord.put("kind", actualKind); + testRecord.put("id", generateRecordId(testRecord)); testRecord.put("legal", generateLegalTag()); String[] x_acl = {generateActualName(dataGroup,timeStamp)+"."+getEntitlementsDomain()}; Acl acl = Acl.builder().viewers(x_acl).owners(x_acl).build(); @@ -113,7 +113,7 @@ public class RecordSteps extends TestsBase { } protected String generateRecordId(Map<String, Object> testRecord) { - return generateActualName(testRecord.get("id").toString(), timeStamp); + return generateActualId(testRecord.get("id").toString(), timeStamp, testRecord.get("kind").toString()); } public void i_should_get_the_documents_for_the_in_the_Elastic_Search(int expectedCount, String index) throws Throwable { diff --git a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/SchemaServiceRecordSteps.java b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/SchemaServiceRecordSteps.java index fb7a03e1e3866ae034e6b4cd032d57ba530ac09e..993c26b25b545bcac741b7de314e31b6bd8ed984 100644 --- a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/SchemaServiceRecordSteps.java +++ b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/SchemaServiceRecordSteps.java @@ -39,7 +39,7 @@ public class SchemaServiceRecordSteps extends RecordSteps { @Override protected String generateRecordId(Map<String, Object> testRecord) { - return generateActualNameWithoutTs(testRecord.get("id").toString()); + return generateActualIdWithoutTs(testRecord.get("id").toString(), testRecord.get("kind").toString()); } @Override diff --git a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/TestsBase.java b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/TestsBase.java index 53f9e877ae2389457a187d9adc58675dad358d3d..e4d6322f715941c1bc18d5fc82ee9b33ce9e2c97 100644 --- a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/TestsBase.java +++ b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/TestsBase.java @@ -130,6 +130,17 @@ public abstract class TestsBase { return rawName.replaceAll("<timestamp>", timeStamp); } + protected String generateActualId(String rawName, String timeStamp, String kind) { + + rawName = generateActualName(rawName, timeStamp); + + String kindSubType = kind.split(":")[2]; + + return rawName.replaceAll("<kindSubType>", kindSubType); + + } + + public String generateActualNameWithoutTs(String rawName) { for (Map.Entry<String, String> tenant : tenantMap.entrySet()) { rawName = rawName.replaceAll(tenant.getKey(), tenant.getValue()); @@ -137,6 +148,14 @@ public abstract class TestsBase { return rawName.replaceAll("<timestamp>", ""); } + public String generateActualIdWithoutTs(String rawName, String kind) { + rawName = generateActualNameWithoutTs(rawName); + + String kindSubType = kind.split(":")[2]; + + return rawName.replaceAll("<kindSubType>", kindSubType); + } + protected Legal generateLegalTag() { Legal legal = new Legal(); Set<String> legalTags = new HashSet<>(); diff --git a/testing/indexer-test-core/src/main/resources/features/indexrecord/indexRecord-schema-service.feature b/testing/indexer-test-core/src/main/resources/features/indexrecord/indexRecord-schema-service.feature index 096f997f790e98f69559e074a549a77cb340d488..4152a53252458bd809ae9ffe5da447cf302060d7 100644 --- a/testing/indexer-test-core/src/main/resources/features/indexrecord/indexRecord-schema-service.feature +++ b/testing/indexer-test-core/src/main/resources/features/indexrecord/indexRecord-schema-service.feature @@ -14,9 +14,9 @@ Feature: Indexing of the documents Then I should get the elastic <mapping> for the <type> and <index> in the Elastic Search Examples: - | kind | recordFile | number | index | type | acl | mapping | - | "tenant1:indexer-int-test:sample-schema-1:1.0.4" | "index_records_schema_1" | 5 | "tenant1-indexer-int-test-sample-schema-1-1.0.4" | "sample-schema-1" | "data.default.viewers@tenant1" | "{"mappings":{"well":{"dynamic":"false","properties":{"acl":{"properties":{"owners":{"type":"keyword"},"viewers":{"type":"keyword"}}},"ancestry":{"properties":{"parents":{"type":"keyword"}}},"data":{"properties":{"Basin":{"type":"text"},"Country":{"type":"text"},"County":{"type":"text"},"EmptyAttribute":{"type":"text"},"Established":{"type":"date"},"Field":{"type":"text"},"Location":{"type":"geo_point"},"OriginalOperator":{"type":"text"},"Rank":{"type":"integer"},"Score":{"type":"integer"},"State":{"type":"text"},"WellName":{"type":"text"},"WellStatus":{"type":"text"},"WellType":{"type":"text"},"DblArray":{"type":"double"}}},"id":{"type":"keyword"},"index":{"properties":{"lastUpdateTime":{"type":"date"},"statusCode":{"type":"integer"},"trace":{"type":"text"}}},"kind":{"type":"keyword"},"legal":{"properties":{"legaltags":{"type":"keyword"},"otherRelevantDataCountries":{"type":"keyword"},"status":{"type":"keyword"}}},"namespace":{"type":"keyword"},"type":{"type":"keyword"},"version":{"type":"long"},"x-acl":{"type":"keyword"}}}}}" | - | "tenant1:indexer-int-test:sample-schema-3:1.0.4" | "index_records_schema_1" | 5 | "tenant1-indexer-int-test-sample-schema-3-1.0.4" | "sample-schema-3" | "data.default.viewers@tenant1" | "{"mappings":{"well":{"dynamic":"false","properties":{"acl":{"properties":{"owners":{"type":"keyword"},"viewers":{"type":"keyword"}}},"ancestry":{"properties":{"parents":{"type":"keyword"}}},"data":{"properties":{"Basin":{"type":"text"},"Country":{"type":"text"},"County":{"type":"text"},"EmptyAttribute":{"type":"text"},"Established":{"type":"date"},"Field":{"type":"text"},"Location":{"type":"geo_point"},"OriginalOperator":{"type":"text"},"Rank":{"type":"integer"},"Score":{"type":"integer"},"State":{"type":"text"},"WellName":{"type":"text"},"WellStatus":{"type":"text"},"WellType":{"type":"text"},"DblArray":{"type":"double"}}},"id":{"type":"keyword"},"index":{"properties":{"lastUpdateTime":{"type":"date"},"statusCode":{"type":"integer"},"trace":{"type":"text"}}},"kind":{"type":"keyword"},"legal":{"properties":{"legaltags":{"type":"keyword"},"otherRelevantDataCountries":{"type":"keyword"},"status":{"type":"keyword"}}},"namespace":{"type":"keyword"},"type":{"type":"keyword"},"version":{"type":"long"},"x-acl":{"type":"keyword"}}}}}" | + | kind | recordFile | number | index | type | acl | mapping | + | "tenant1:indexer-int-test:sample-schema-1:1.0.4" | "index_records_1" | 5 | "tenant1-indexer-int-test-sample-schema-1-1.0.4" | "sample-schema-1" | "data.default.viewers@tenant1" | "{"mappings":{"well":{"dynamic":"false","properties":{"acl":{"properties":{"owners":{"type":"keyword"},"viewers":{"type":"keyword"}}},"ancestry":{"properties":{"parents":{"type":"keyword"}}},"data":{"properties":{"Basin":{"type":"text"},"Country":{"type":"text"},"County":{"type":"text"},"EmptyAttribute":{"type":"text"},"Established":{"type":"date"},"Field":{"type":"text"},"Location":{"type":"geo_point"},"OriginalOperator":{"type":"text"},"Rank":{"type":"integer"},"Score":{"type":"integer"},"State":{"type":"text"},"WellName":{"type":"text"},"WellStatus":{"type":"text"},"WellType":{"type":"text"},"DblArray":{"type":"double"}}},"id":{"type":"keyword"},"index":{"properties":{"lastUpdateTime":{"type":"date"},"statusCode":{"type":"integer"},"trace":{"type":"text"}}},"kind":{"type":"keyword"},"legal":{"properties":{"legaltags":{"type":"keyword"},"otherRelevantDataCountries":{"type":"keyword"},"status":{"type":"keyword"}}},"namespace":{"type":"keyword"},"type":{"type":"keyword"},"version":{"type":"long"},"x-acl":{"type":"keyword"}}}}}" | + | "tenant1:indexer-int-test:sample-schema-3:1.0.4" | "index_records_1" | 5 | "tenant1-indexer-int-test-sample-schema-3-1.0.4" | "sample-schema-3" | "data.default.viewers@tenant1" | "{"mappings":{"well":{"dynamic":"false","properties":{"acl":{"properties":{"owners":{"type":"keyword"},"viewers":{"type":"keyword"}}},"ancestry":{"properties":{"parents":{"type":"keyword"}}},"data":{"properties":{"Basin":{"type":"text"},"Country":{"type":"text"},"County":{"type":"text"},"EmptyAttribute":{"type":"text"},"Established":{"type":"date"},"Field":{"type":"text"},"Location":{"type":"geo_point"},"OriginalOperator":{"type":"text"},"Rank":{"type":"integer"},"Score":{"type":"integer"},"State":{"type":"text"},"WellName":{"type":"text"},"WellStatus":{"type":"text"},"WellType":{"type":"text"},"DblArray":{"type":"double"}}},"id":{"type":"keyword"},"index":{"properties":{"lastUpdateTime":{"type":"date"},"statusCode":{"type":"integer"},"trace":{"type":"text"}}},"kind":{"type":"keyword"},"legal":{"properties":{"legaltags":{"type":"keyword"},"otherRelevantDataCountries":{"type":"keyword"},"status":{"type":"keyword"}}},"namespace":{"type":"keyword"},"type":{"type":"keyword"},"version":{"type":"long"},"x-acl":{"type":"keyword"}}}}}" | Scenario Outline: Ingest the record and Index in the Elastic Search with bad attribute When I ingest records with the <recordFile> with <acl> for a given <kind> diff --git a/testing/indexer-test-core/src/main/resources/testData/index_records_1.json b/testing/indexer-test-core/src/main/resources/testData/index_records_1.json index dca7c54fe5b38b566791744bb1f34e7bdec73937..dc83212c545f7478280566be828726f4b0558234 100644 --- a/testing/indexer-test-core/src/main/resources/testData/index_records_1.json +++ b/testing/indexer-test-core/src/main/resources/testData/index_records_1.json @@ -1,6 +1,6 @@ [ { - "id": "tenant1:ihs:testIngest2<timestamp>", + "id": "tenant1:<kindSubType>:testIngest2<timestamp>", "data": { "Field": "OSDU OFFICE - 2", "Location": { @@ -23,7 +23,7 @@ } }, { - "id": "tenant1:ihs:testIngest3<timestamp>", + "id": "tenant1:<kindSubType>:testIngest3<timestamp>", "data": { "Field": "OSDU OFFICE - 2", "Location": { @@ -46,7 +46,7 @@ } }, { - "id": "tenant1:ihs:testIngest4<timestamp>", + "id": "tenant1:<kindSubType>:testIngest4<timestamp>", "data": { "Field": "OSDU OFFICE - 2", "Location": { @@ -68,7 +68,7 @@ } }, { - "id": "tenant1:ihs:testIngest5<timestamp>", + "id": "tenant1:<kindSubType>:testIngest5<timestamp>", "data": { "Field": "OSDU OFFICE - 2", "Location": { @@ -90,7 +90,7 @@ } }, { - "id": "tenant1:ihs:testIngest6<timestamp>", + "id": "tenant1:<kindSubType>:testIngest6<timestamp>", "data": { "Field": "OSDU OFFICE - 2", "Location": { diff --git a/testing/indexer-test-core/src/main/resources/testData/index_records_2.json b/testing/indexer-test-core/src/main/resources/testData/index_records_2.json index 721bf64f92b951992e6735a097f76d8c0e82a59b..ef6634d9663cce67428f5009d64464eba62ec42f 100644 --- a/testing/indexer-test-core/src/main/resources/testData/index_records_2.json +++ b/testing/indexer-test-core/src/main/resources/testData/index_records_2.json @@ -1,6 +1,6 @@ [ { - "id": "tenant1:ihs:testIngest7<timestamp>", + "id": "tenant1:<kindSubType>:testIngest7<timestamp>", "data": { "Field": "OSDU OFFICE - 2", "Location": { @@ -22,7 +22,7 @@ } }, { - "id": "tenant1:ihs:testIngest8<timestamp>", + "id": "tenant1:<kindSubType>:testIngest8<timestamp>", "data": { "Field": "OSDU OFFICE - 2", "Location": { @@ -44,7 +44,7 @@ } }, { - "id": "tenant1:ihs:testIngest9<timestamp>", + "id": "tenant1:<kindSubType>:testIngest9<timestamp>", "data": { "Field": "OSDU OFFICE - 2", "Location": { @@ -66,7 +66,7 @@ } }, { - "id": "tenant1:ihs:testIngest10<timestamp>", + "id": "tenant1:<kindSubType>:testIngest10<timestamp>", "data": { "Field": "OSDU OFFICE - 2", "Location": { @@ -88,7 +88,7 @@ } }, { - "id": "tenant1:ihs:testIngest11<timestamp>", + "id": "tenant1:<kindSubType>:testIngest11<timestamp>", "data": { "Field": 1234, "Location": { diff --git a/testing/indexer-test-core/src/main/resources/testData/index_records_3.json b/testing/indexer-test-core/src/main/resources/testData/index_records_3.json index 84c5fcc11fcf96a68dba9c4d90ab06d9efa60c62..983e7bdb99dbe39246cc4ece07a9b3d434bddb5d 100644 --- a/testing/indexer-test-core/src/main/resources/testData/index_records_3.json +++ b/testing/indexer-test-core/src/main/resources/testData/index_records_3.json @@ -1,6 +1,6 @@ [ { - "id": "tenant1:ihs:testIngest51<timestamp>", + "id": "tenant1:<kindSubType>:testIngest51<timestamp>", "data": { "WellName": "Data Platform Services - 51", "GeoShape": { @@ -13,7 +13,7 @@ } }, { - "id": "tenant1:ihs:testIngest52<timestamp>", + "id": "tenant1:<kindSubType>:testIngest52<timestamp>", "data": { "WellName": "Data Platform Services - 52", "GeoShape": { @@ -32,7 +32,7 @@ } }, { - "id": "tenant1:ihs:testIngest53<timestamp>", + "id": "tenant1:<kindSubType>:testIngest53<timestamp>", "data": { "WellName": "Data Platform Services - 53", "GeoShape": { @@ -147,7 +147,7 @@ } }, { - "id": "tenant1:ihs:testIngest54<timestamp>", + "id": "tenant1:<kindSubType>:testIngest54<timestamp>", "data": { "WellName": "Data Platform Services - 54", "GeoShape": { @@ -238,7 +238,7 @@ } }, { - "id": "tenant1:ihs:testIngest55<timestamp>", + "id": "tenant1:<kindSubType>:testIngest55<timestamp>", "data": { "WellName": "Data Platform Services - 55", "GeoShape": { @@ -271,7 +271,7 @@ } }, { - "id": "tenant1:ihs:testIngest56<timestamp>", + "id": "tenant1:<kindSubType>:testIngest56<timestamp>", "data": { "WellName": "Data Platform Services - 56", "GeoShape": { @@ -330,7 +330,7 @@ } }, { - "id": "tenant1:ihs:testIngest57<timestamp>", + "id": "tenant1:<kindSubType>:testIngest57<timestamp>", "data": { "WellName": "Data Platform Services - 57", "GeoShape": { diff --git a/testing/indexer-test-core/src/main/resources/testData/records_1.json b/testing/indexer-test-core/src/main/resources/testData/records_1.json index 14d4b3c84ec863530213737e76cd8494501e825f..33c85b80d024481be7ae416ba9bf6865fef2aa4c 100644 --- a/testing/indexer-test-core/src/main/resources/testData/records_1.json +++ b/testing/indexer-test-core/src/main/resources/testData/records_1.json @@ -1,6 +1,6 @@ [ { - "id": "test:well:1.0.0:1", + "id": "tenant1:well:1.0.0:1", "kind": "<Kind>", "namespace": "tenant1:testdatasource", "type": "well", @@ -38,7 +38,7 @@ } }, { - "id": "test:well:1.0.0:2", + "id": "tenant1:well:1.0.0:2", "kind": "<Kind>", "namespace": "tenant1:testdatasource", "type": "well", @@ -77,7 +77,7 @@ } }, { - "id": "test:well:1.0.0:3", + "id": "tenant1:well:1.0.0:3", "kind": "<Kind>", "namespace": "tenant1:testdatasource", "type": "well", diff --git a/testing/indexer-test-core/src/main/resources/testData/records_2.json b/testing/indexer-test-core/src/main/resources/testData/records_2.json index 12f9ac646e579619b094aa19e571a863b8e23cac..9227d617e772aeb1d1fd0196b3540d04e9ca62ae 100644 --- a/testing/indexer-test-core/src/main/resources/testData/records_2.json +++ b/testing/indexer-test-core/src/main/resources/testData/records_2.json @@ -1,6 +1,6 @@ [ { - "id": "test:well:2.0.0:1", + "id": "tenant1:well:2.0.0:1", "kind": "<kind>", "acl": "{viewers=[<Data-Group>], owners=[<Data-Group>]}", "x-acl": [ @@ -37,7 +37,7 @@ } }, { - "id": "test:well:2.0.0:2", + "id": "tenant1:well:2.0.0:2", "kind": "<kind>", "acl": "{viewers=[<Data-Group>], owners=[<Data-Group>]}", "x-acl": [ @@ -74,7 +74,7 @@ } }, { - "id": "test:well:2.0.0:3", + "id": "tenant1:well:2.0.0:3", "kind": "<kind>", "acl": "{viewers=[<Data-Group>], owners=[<Data-Group>]}", "x-acl": [ diff --git a/testing/indexer-test-core/src/main/resources/testData/records_3.json b/testing/indexer-test-core/src/main/resources/testData/records_3.json index a159d885c7a108d19c6831502192c93667323f2e..697644cc7d20c7a768d3cc55183a9d4a788e99cb 100644 --- a/testing/indexer-test-core/src/main/resources/testData/records_3.json +++ b/testing/indexer-test-core/src/main/resources/testData/records_3.json @@ -1,6 +1,6 @@ [ { - "id": "test:well:1.0.0:1", + "id": "tenant1:well:1.0.0:1", "kind": "<Kind>", "namespace": "tenant1:testdatasource", "type": "well", @@ -39,7 +39,7 @@ } }, { - "id": "test:well:1.0.0:2", + "id": "tenant1:well:1.0.0:2", "kind": "<Kind>", "namespace": "tenant1:testdatasource", "type": "well", @@ -79,7 +79,7 @@ } }, { - "id": "test:well:1.0.0:3", + "id": "tenant1:well:1.0.0:3", "kind": "<Kind>", "namespace": "tenant1:testdatasource", "type": "well", diff --git a/testing/indexer-test-gcp/pom.xml b/testing/indexer-test-gcp/pom.xml index cc5b6f7b8126377ccac36c3f2293f14bfbec400d..74f56c7ace3750aa7165602b6e19c394229ed3a3 100644 --- a/testing/indexer-test-gcp/pom.xml +++ b/testing/indexer-test-gcp/pom.xml @@ -1,20 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>indexer-test</artifactId> - <version>0.0.5-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-test-gcp</artifactId> - <version>0.0.3-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <packaging>jar</packaging> <properties> @@ -39,7 +37,7 @@ <dependency> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-test-core</artifactId> - <version>0.0.3-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> </dependency> <!-- Cucumber --> diff --git a/testing/indexer-test-ibm/pom.xml b/testing/indexer-test-ibm/pom.xml index 0e24bc7e2eb03e9bf2c9c42a5d72839b96e79633..1d0ec6267671426190b4f425241b0993597c5f75 100644 --- a/testing/indexer-test-ibm/pom.xml +++ b/testing/indexer-test-ibm/pom.xml @@ -1,20 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>indexer-test</artifactId> - <version>0.0.5-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-test-ibm</artifactId> - <version>0.0.3</version> + <version>0.0.2</version> <packaging>jar</packaging> <properties> @@ -40,7 +38,7 @@ <dependency> <groupId>org.opengroup.osdu.indexer</groupId> <artifactId>indexer-test-core</artifactId> - <version>0.0.3-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> </dependency> <dependency> diff --git a/testing/pom.xml b/testing/pom.xml index 4edb18ba9f90b10b4a991c06a1629af6c19a8af9..530619057e5638534ea2c8cb7bc0608cf1b8de1e 100644 --- a/testing/pom.xml +++ b/testing/pom.xml @@ -14,12 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. --> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.opengroup.osdu</groupId> <artifactId>indexer-test</artifactId> - <version>0.0.5-SNAPSHOT</version> + <version>0.6.0-SNAPSHOT</version> <description>Indexer Service Integration Test Root Project</description> <properties> <spring.version>5.1.19.RELEASE</spring.version>