diff --git a/indexer-core/src/main/resources/application.properties b/indexer-core/src/main/resources/application.properties new file mode 100644 index 0000000000000000000000000000000000000000..022eb7a152b67af759503f5755c8b7a4440b3fe5 --- /dev/null +++ b/indexer-core/src/main/resources/application.properties @@ -0,0 +1,26 @@ +##server.servlet.contextPath=/api/indexer/v2 +#logging.level.org.springframework.web=DEBUG +#server.port=8080 +#JAVA_HEAP_OPTS=-Xms4096M -Xmx4096M +#JAVA_GC_OPTS=-XX:+UseG1GC -XX:+UseStringDeduplication -XX:InitiatingHeapOccupancyPercent=45 +#PUBSUB_SEARCH_TOPIC=records-changed +#AUTHORIZE_API=https://entitlements-dot-opendes.appspot.com/entitlements/v1 +#STORAGE_HOSTNAME=os-storage-dot-opendes.appspot.com +#GOOGLE_AUDIENCES=245464679631-ktfdfpl147m1mjpbutl00b3cmffissgq.apps.googleusercontent.com +# +## must update redis hosts at runtime appropriate to deployment environment +#REDIS_GROUP_HOST=REDIS-GROUP-HOST +#REDIS_SEARCH_HOST=REDIS-SEARCH-HOST +# +## use 127.0.0.1 for local run/debug mode +##REDIS_GROUP_HOST=127.0.0.1 +##REDIS_STORAGE_HOST=127.0.0.1 +# +## use below values for gcp: opendes +##REDIS_GROUP_HOST=10.0.16.28 +##REDIS_STORAGE_HOST=10.0.16.12 +# +#REDIS_GROUP_PORT=6379 +#REDIS_SEARCH_PORT=6379 +#DEFAULT_DATA_COUNTRY=US + diff --git a/provider/indexer-azure/src/main/resources/application.properties b/provider/indexer-azure/src/main/resources/application.properties new file mode 100644 index 0000000000000000000000000000000000000000..a79e32ddcde40517593b25bcef9d90b778ce2c65 --- /dev/null +++ b/provider/indexer-azure/src/main/resources/application.properties @@ -0,0 +1,86 @@ +#server.servlet.contextPath=/api/indexer/v2/ +logging.level.org.springframework.web=DEBUG +server.port=8080 +JAVA_HEAP_OPTS=-Xms4096M -Xmx4096M +JAVA_GC_OPTS=-XX:+UseG1GC -XX:+UseStringDeduplication -XX:InitiatingHeapOccupancyPercent=45 + +DEFAULT_DATA_COUNTRY=US + +AUTHORIZE_API=https://opendesproxy.azurewebsites.net/entitlements/v1 +AUTHORIZE_API_KEY=dummy +LEGALTAG_API=https://opendesproxy.azurewebsites.net/legal/v1 +LEGALTAG_API_KEY=dummy +CRS_API=https://opendesproxy.azurewebsites.net/crs/v1 +CRS_API_KEY=dummy + +#Default Cache Settings +SCHEMA_CACHE_EXPIRATION=60 +INDEX_CACHE_EXPIRATION=60 +ELASTIC_CACHE_EXPIRATION=1440 +CURSOR_CACHE_EXPIRATION=60 +# Kinds Cache expiration 2*24*60 +KINDS_CACHE_EXPIRATION=2880 +# Attributes Cache expiration 2*24*60 +ATTRIBUTES_CACHE_EXPIRATION=2880 +# Maximum size of cache value +MAX_CACHE_VALUE_SIZE=1000 + +KINDS_REDIS_DATABASE=1 +CRON_INDEX_CLEANUP_THRESHOLD_DAYS=3 +CRON_EMPTY_INDEX_CLEANUP_THRESHOLD_DAYS=7 + +STORAGE_SCHEMA_HOST=https://opendesmvp.azurewebsites.net/schemas +STORAGE_QUERY_RECORD_HOST=https://opendesmvp.azurewebsites.net/query/records +STORAGE_QUERY_RECORD_FOR_CONVERSION_HOST=https://opendesmvp.azurewebsites.net/query/records:batch +STORAGE_RECORDS_BATCH_SIZE=20 + +INDEXER_QUEUE_HOST=https://requeuefunction-cd1.azurewebsites.net/api/re-enqueue + +#MSAL AAD +aad.authority=https://login.microsoftonline.com/1668106e-2ae0-456a-bb7d-64b52104db99/oauth2/token +aad.clientId=b70451c6-936f-4430-8680-0985817ac751 +aad.secretKey=b5GZtbS.bB7iSzLTb+Nb-AOb9G@1@LZo +aad.oboApi=api://ffb32b1a-c6fe-4ed0-819b-6ca483de3640 + +spring.security.oauth2.client.registration.azure.client-id=b70451c6-936f-4430-8680-0985817ac751 +spring.security.oauth2.client.registration.azure.client-secret=b5GZtbS.bB7iSzLTb+Nb-AOb9G@1@LZo +spring.security.oauth2.client.registration.azure.client-name=Azure + + +#spring.security.user.name=opendes@byoc.local +#spring.security.user.password=123 +#spring.security.user.roles=service.indexer.admin + + +# Azure AD configuration +azure.activedirectory.client-id=ffb32b1a-c6fe-4ed0-819b-6ca483de3640 +azure.activedirectory.tenant-id=1668106e-2ae0-456a-bb7d-64b52104db99 +azure.activedirectory.AppIdUri=api://${azure.activedirectory.client-id} +azure.activedirectory.session-stateless=true + +#azure.activedirectory.active-directory-groups=ADMIN, VIEWER + +# Azure CosmosDB configuration +azure.cosmosdb.uri=https://opendescosmosdb.documents.azure.com:443/ +azure.cosmosdb.key=AQK0VbnMGn76h9Ypw5aoirKMwoAYJBRY2XENn1dAYypoea83weVyjYcGaRDeEX7HqXIVggaDuFAhQ4Y1Y9lKDQ== +azure.cosmosdb.database=opendesdb + + +# Azure Service Bus configuration +azure.servicebus.connection-string=Endpoint=sb://pliuopendes.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=km8Nscc0gf299Ck6npmM3D14VU5Tx1lJYRdlHcExIvY= +azure.servicebus.topic-name=recordstopic + +#Indexer-Queue-header +indexer.queue.key=abcd + +REDIS_GROUP_HOST=127.0.0.1 +REDIS_GROUP_PORT=6379 +REDIS_SEARCH_HOST=localhost +REDIS_SEARCH_PORT=6379 + +ELASTIC_DATASTORE_KIND=SearchSettings +ELASTIC_DATASTORE_ID=indexer-service + +GAE_SERVICE=indexer + +DEPLOYMENT_ENVIRONMENT=CLOUD \ No newline at end of file diff --git a/provider/indexer-gcp/src/main/resources/application.properties b/provider/indexer-gcp/src/main/resources/application.properties new file mode 100644 index 0000000000000000000000000000000000000000..8426754d9e2845a948fcae463c27541c0a68bf99 --- /dev/null +++ b/provider/indexer-gcp/src/main/resources/application.properties @@ -0,0 +1,61 @@ +server.servlet.contextPath=/api/indexer/v2 +logging.level.org.springframework.web=DEBUG +server.port=8080 +#spring.cloud.gcp.project-id=opendes +#spring.security.user.roles=service.search.admin +JAVA_OPTS=-Xms3072m -Xmx3072m +JAVA_GC_OPTS=-XX:+UseG1GC -XX:+UseStringDeduplication -XX:InitiatingHeapOccupancyPercent=45 + +GOOGLE_AUDIENCES=245464679631-ktfdfpl147m1mjpbutl00b3cmffissgq.apps.googleusercontent.com + +## use below values for gcp: local +#REDIS_GROUP_HOST=127.0.0.1 +#REDIS_SEARCH_HOST=localhost +#DEPLOYMENT_ENVIRONMENT=LOCAL + +## use below values for gcp: opendes +REDIS_GROUP_HOST=10.0.16.28 +REDIS_SEARCH_HOST=10.0.16.20 +DEPLOYMENT_ENVIRONMENT=CLOUD + +REDIS_GROUP_PORT=6379 +REDIS_SEARCH_PORT=6379 +DEFAULT_DATA_COUNTRY=US + +AUTHORIZE_API=https://entitlements-dot-opendes.appspot.com/entitlements/v1 +LEGALTAG_API=https://legal-dot-opendes.appspot.com/api/legal/v1 +CRS_API=https://crs-converter-dot-opendes.appspot.com/api/crs/v1 + + +#Default Cache Settings +SCHEMA_CACHE_EXPIRATION=60 +INDEX_CACHE_EXPIRATION=60 +ELASTIC_CACHE_EXPIRATION=1440 +CURSOR_CACHE_EXPIRATION=60 +# Kinds Cache expiration 2*24*60 +KINDS_CACHE_EXPIRATION=2880 +# Attributes Cache expiration 2*24*60 +ATTRIBUTES_CACHE_EXPIRATION=2880 + +KINDS_REDIS_DATABASE=1 +CRON_INDEX_CLEANUP_THRESHOLD_DAYS=3 +CRON_EMPTY_INDEX_CLEANUP_THRESHOLD_DAYS=7 + +GOOGLE_CLOUD_PROJECT=opendes +GAE_SERVICE=indexer + +INDEXER_HOST=os-indexer-dot-opendes.appspot.com +STORAGE_HOSTNAME=os-storage-dot-opendes.appspot.com + +KEY_RING=csqp +KMS_KEY=searchService + +ELASTIC_DATASTORE_KIND=SearchSettings +ELASTIC_DATASTORE_ID=indexer-service + +STORAGE_SCHEMA_HOST=https://os-storage-dot-opendes.appspot.com/api/storage/v2/schemas +STORAGE_QUERY_RECORD_HOST=https://os-storage-dot-opendes.appspot.com/api/storage/v2/query/records +STORAGE_QUERY_RECORD_FOR_CONVERSION_HOST=https://os-storage-dot-opendes.appspot.com/api/storage/v2/query/records:batch +STORAGE_RECORDS_BATCH_SIZE=20 + +INDEXER_QUEUE_HOST=https://os-indexer-queue-dot-opendes.appspot.com/_dps/task-handlers/enqueue 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 8ac4bc2a3a378ed660e4f39f3ae82b5f17e65092..9dbfc60604e9f28e711b1c55c4949633bc91d603 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 @@ -89,10 +89,8 @@ public class RecordSteps extends TestsBase { public void i_ingest_records_with_the_for_a_given(String record, String dataGroup, String kind) { String actualKind = generateActualName(kind, timeStamp); - File resourcesDirectory = new File("src/test/resources"); try { - String fileContent = FileHandler.readFile( - String.format("%s/testData/%s", resourcesDirectory.getAbsolutePath(), String.format("%s.%s", record, "json"))); + String fileContent = FileHandler.readFile(String.format("%s.%s", record, "json")); records = new Gson().fromJson(fileContent, new TypeToken<List<Map<String, Object>>>() {}.getType()); for (Map<String, Object> testRecord : records) { diff --git a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/models/TestIndex.java b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/models/TestIndex.java index 7eb53519b98d0926f2ace54c62fec6a485fbed34..00ac7b1c9bd2fe9780c5d2f40baf761e8aa429c5 100644 --- a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/models/TestIndex.java +++ b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/models/TestIndex.java @@ -13,7 +13,6 @@ import org.opengroup.osdu.util.ElasticUtils; import org.opengroup.osdu.util.FileHandler; import org.opengroup.osdu.util.HTTPClient; -import java.io.File; import java.util.List; import java.util.Map; import java.util.logging.Logger; @@ -84,10 +83,8 @@ public class TestIndex { } private List<Map<String, Object>> getRecordsFromTestFile() { - File resourcesDirectory = new File("src/test/resources"); - try { - String fileContent = FileHandler.readFile( - String.format("%s/testData/%s", resourcesDirectory.getAbsolutePath(), getRecordFile())); + try { + String fileContent = FileHandler.readFile(getRecordFile()); List<Map<String, Object>> records = new Gson().fromJson( fileContent, new TypeToken<List<Map<String,Object>>>() {}.getType()); @@ -105,10 +102,8 @@ public class TestIndex { } private String getIndexMappingFromJson() { - File resourcesDirectory = new File("src/test/resources"); try { - String fileContent = FileHandler.readFile( - String.format("%s/testData/%s", resourcesDirectory.getAbsolutePath(), getMappingFile())); + String fileContent = FileHandler.readFile(getMappingFile()); JsonElement json = gson.fromJson(fileContent, JsonElement.class); return gson.toJson(json); } catch (Exception e) { @@ -117,10 +112,8 @@ public class TestIndex { } private String getStorageSchemaFromJson() { - File resourcesDirectory = new File("src/test/resources"); try { - String fileContent = FileHandler.readFile( - String.format("%s/testData/%s", resourcesDirectory.getAbsolutePath(), getSchemaFile())); + String fileContent = FileHandler.readFile(getSchemaFile()); fileContent = fileContent.replaceAll("KIND_VAL", this.kind); JsonElement json = gson.fromJson(fileContent, JsonElement.class); return gson.toJson(json); diff --git a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/util/FileHandler.java b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/util/FileHandler.java index a9aa4fe89349565742387f26e3de16c0837a8ec1..678cb91204d3f786437090737dc9a29d1e1acfc7 100644 --- a/testing/indexer-test-core/src/main/java/org/opengroup/osdu/util/FileHandler.java +++ b/testing/indexer-test-core/src/main/java/org/opengroup/osdu/util/FileHandler.java @@ -1,22 +1,24 @@ package org.opengroup.osdu.util; -import java.io.File; +import java.io.ByteArrayOutputStream; import java.io.IOException; -import java.util.Scanner; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; public class FileHandler { - public static String readFile(String pathname) throws IOException { - - File file = new File(pathname); - StringBuilder fileContents = new StringBuilder((int) file.length()); - String lineSeparator = System.getProperty("line.separator"); - - try (Scanner scanner = new Scanner(file)) { - while (scanner.hasNextLine()) { - fileContents.append(scanner.nextLine()).append(lineSeparator); - } - return fileContents.toString(); + public static String readFile(String fileName) throws IOException { + InputStream inputStream = FileHandler.class.getClass().getResourceAsStream(String.format("/testData/%s",fileName)); + if(inputStream == null) { + throw new IOException(); + } + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); + byte[] buffer = new byte[1024]; + int length; + while ((length = inputStream.read(buffer)) != -1) { + outputStream.write(buffer, 0, length); } + return outputStream.toString(StandardCharsets.UTF_8.toString()); } + } diff --git a/testing/indexer-test-gcp/src/test/resources/features/delete/Delete.feature b/testing/indexer-test-core/src/main/resources/features/delete/Delete.feature similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/features/delete/Delete.feature rename to testing/indexer-test-core/src/main/resources/features/delete/Delete.feature diff --git a/testing/indexer-test-gcp/src/test/resources/features/indexrecord/IndexRecord.feature b/testing/indexer-test-core/src/main/resources/features/indexrecord/IndexRecord.feature similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/features/indexrecord/IndexRecord.feature rename to testing/indexer-test-core/src/main/resources/features/indexrecord/IndexRecord.feature diff --git a/testing/indexer-test-gcp/src/test/resources/features/kindschema/KindSchema.feature b/testing/indexer-test-core/src/main/resources/features/kindschema/KindSchema.feature similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/features/kindschema/KindSchema.feature rename to testing/indexer-test-core/src/main/resources/features/kindschema/KindSchema.feature diff --git a/testing/indexer-test-gcp/src/test/resources/features/query/crosscluster/Query.feature b/testing/indexer-test-core/src/main/resources/features/query/crosscluster/Query.feature similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/features/query/crosscluster/Query.feature rename to testing/indexer-test-core/src/main/resources/features/query/crosscluster/Query.feature diff --git a/testing/indexer-test-gcp/src/test/resources/features/query/singlecluster/Query.feature b/testing/indexer-test-core/src/main/resources/features/query/singlecluster/Query.feature similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/features/query/singlecluster/Query.feature rename to testing/indexer-test-core/src/main/resources/features/query/singlecluster/Query.feature diff --git a/testing/indexer-test-gcp/src/test/resources/features/querybycursor/crosscluster/QueryByCursor.feature b/testing/indexer-test-core/src/main/resources/features/querybycursor/crosscluster/QueryByCursor.feature similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/features/querybycursor/crosscluster/QueryByCursor.feature rename to testing/indexer-test-core/src/main/resources/features/querybycursor/crosscluster/QueryByCursor.feature diff --git a/testing/indexer-test-gcp/src/test/resources/features/querybycursor/singlecluster/QueryByCursor.feature b/testing/indexer-test-core/src/main/resources/features/querybycursor/singlecluster/QueryByCursor.feature similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/features/querybycursor/singlecluster/QueryByCursor.feature rename to testing/indexer-test-core/src/main/resources/features/querybycursor/singlecluster/QueryByCursor.feature diff --git a/testing/indexer-test-gcp/src/test/resources/features/smart/parser/SmartParser.feature b/testing/indexer-test-core/src/main/resources/features/smart/parser/SmartParser.feature similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/features/smart/parser/SmartParser.feature rename to testing/indexer-test-core/src/main/resources/features/smart/parser/SmartParser.feature diff --git a/testing/indexer-test-gcp/src/test/resources/features/smart/search/Smart.feature b/testing/indexer-test-core/src/main/resources/features/smart/search/Smart.feature similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/features/smart/search/Smart.feature rename to testing/indexer-test-core/src/main/resources/features/smart/search/Smart.feature diff --git a/testing/indexer-test-gcp/src/test/resources/features/updateindex/UpdateIndexMapping.feature b/testing/indexer-test-core/src/main/resources/features/updateindex/UpdateIndexMapping.feature similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/features/updateindex/UpdateIndexMapping.feature rename to testing/indexer-test-core/src/main/resources/features/updateindex/UpdateIndexMapping.feature diff --git a/testing/indexer-test-gcp/src/test/resources/testData/index_records_1.json b/testing/indexer-test-core/src/main/resources/testData/index_records_1.json similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/testData/index_records_1.json rename to testing/indexer-test-core/src/main/resources/testData/index_records_1.json diff --git a/testing/indexer-test-gcp/src/test/resources/testData/index_records_1.schema b/testing/indexer-test-core/src/main/resources/testData/index_records_1.schema similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/testData/index_records_1.schema rename to testing/indexer-test-core/src/main/resources/testData/index_records_1.schema diff --git a/testing/indexer-test-gcp/src/test/resources/testData/index_records_2.json b/testing/indexer-test-core/src/main/resources/testData/index_records_2.json similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/testData/index_records_2.json rename to testing/indexer-test-core/src/main/resources/testData/index_records_2.json diff --git a/testing/indexer-test-gcp/src/test/resources/testData/index_records_2.schema b/testing/indexer-test-core/src/main/resources/testData/index_records_2.schema similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/testData/index_records_2.schema rename to testing/indexer-test-core/src/main/resources/testData/index_records_2.schema diff --git a/testing/indexer-test-gcp/src/test/resources/testData/records_1.json b/testing/indexer-test-core/src/main/resources/testData/records_1.json similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/testData/records_1.json rename to testing/indexer-test-core/src/main/resources/testData/records_1.json diff --git a/testing/indexer-test-gcp/src/test/resources/testData/records_1.mapping b/testing/indexer-test-core/src/main/resources/testData/records_1.mapping similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/testData/records_1.mapping rename to testing/indexer-test-core/src/main/resources/testData/records_1.mapping diff --git a/testing/indexer-test-gcp/src/test/resources/testData/records_2.json b/testing/indexer-test-core/src/main/resources/testData/records_2.json similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/testData/records_2.json rename to testing/indexer-test-core/src/main/resources/testData/records_2.json diff --git a/testing/indexer-test-gcp/src/test/resources/testData/records_2.mapping b/testing/indexer-test-core/src/main/resources/testData/records_2.mapping similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/testData/records_2.mapping rename to testing/indexer-test-core/src/main/resources/testData/records_2.mapping diff --git a/testing/indexer-test-gcp/src/test/resources/testData/records_3.json b/testing/indexer-test-core/src/main/resources/testData/records_3.json similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/testData/records_3.json rename to testing/indexer-test-core/src/main/resources/testData/records_3.json diff --git a/testing/indexer-test-gcp/src/test/resources/testData/records_3.mapping b/testing/indexer-test-core/src/main/resources/testData/records_3.mapping similarity index 100% rename from testing/indexer-test-gcp/src/test/resources/testData/records_3.mapping rename to testing/indexer-test-core/src/main/resources/testData/records_3.mapping diff --git a/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/deleteschema/RunTest.java b/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/deleteschema/RunTest.java index 55dbb6bf06ff23f0f433dfa0c8609972d9b53a8f..b04eb1b3079df08037ce32ada4f8f007c941e410 100644 --- a/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/deleteschema/RunTest.java +++ b/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/deleteschema/RunTest.java @@ -6,7 +6,7 @@ import org.junit.runner.RunWith; @RunWith(Cucumber.class) @CucumberOptions( - features = "src/test/resources/features/delete/Delete.feature", + features = "classpath:features/delete/Delete.feature", glue={"classpath:org.opengroup.osdu.step_definitions/index/deleteschema"}, format = {"pretty", "junit:target/cucumber-reports/TEST-deleteschema.xml"}) public class RunTest { diff --git a/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/getschema/RunTest.java b/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/getschema/RunTest.java index b6c70e297122c166fd751bf90fbc522f1c94db80..b60b4a1c581517f89f6e0b447738847cb2f75872 100644 --- a/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/getschema/RunTest.java +++ b/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/getschema/RunTest.java @@ -7,7 +7,7 @@ import org.junit.runner.RunWith; @RunWith(Cucumber.class) @CucumberOptions( - features = "src/test/resources/features/kindschema/KindSchema.feature", + features = "classpath:features/kindschema/KindSchema.feature", glue = {"classpath:org.opengroup.osdu.step_definitions/index/getschema"}, format = {"pretty", "junit:target/cucumber-reports/TEST-getschema.xml"}) public class RunTest { diff --git a/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/record/RunTest.java b/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/record/RunTest.java index dc9fbcd3af4da3b8babd3beb58a0f0fd4c04cb4f..4978ddfccad197628432d4ccb8b5985b4af5017e 100644 --- a/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/record/RunTest.java +++ b/testing/indexer-test-gcp/src/test/java/org/opengroup/osdu/step_definitions/index/record/RunTest.java @@ -6,7 +6,7 @@ import org.junit.runner.RunWith; @RunWith(Cucumber.class) @CucumberOptions( - features = "src/test/resources/features/indexrecord/IndexRecord.feature", + features = "classpath:features/indexrecord/IndexRecord.feature", glue = {"classpath:org.opengroup.osdu.step_definitions/index/record"}, plugin = {"pretty", "junit:target/cucumber-reports/TEST-indexrecord.xml"}) public class RunTest {