Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ ENTRYPOINT ["/bin/sh", "-c", "java \
-XX:MaxRAMPercentage=${MAX_HEAP_PERCENTAGE} \
-Duser.timezone=UTC \
-Delasticsearch.index.name=${INDEX_NAME} \
-Delasticsearch.cloud_optimized_index.name=${CO_INDEX_NAME} \
-Delasticsearch.vocabs_index.name=${VOCABS_INDEX_NAME} \
-Dapi.host=${HOST}:${PORT} \
-Dserver.port=${PORT} \
Expand Down
2 changes: 0 additions & 2 deletions server/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ elasticsearch:
lightweightPageSize: 7000
vocabs_index:
name: vocabs_index
cloud_optimized_index:
name: es-coindexer-dev
serverUrl: http://localhost:9200
apiKey: <sample-api-key>
search_as_you_type:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,9 @@ public class BaseTestClass {
@Value("${elasticsearch.index.name}")
protected String record_index_name;

@Value("${elasticsearch.cloud_optimized_index.name}")
protected String co_data_index_name;

@Value("${elasticsearch.vocabs_index.name}")
protected String vocabs_index_name;

@Value("${elasticsearch.cloud_optimized_index.name}")
protected String data_index_name;

protected String getBasePath() {
return "http://localhost:" + port + "/api/v1/ogc";
}
Expand All @@ -79,8 +73,7 @@ protected String getExternalBasePath() {
public void initSchemas() {
schemas = List.of(
Map.of("name", record_index_name, "mapping", "portal_records_index_schema.json"),
Map.of("name", vocabs_index_name, "mapping", "vocabs_index_schema.json"),
Map.of("name", data_index_name, "mapping", "data_index_schema.json")
Map.of("name", vocabs_index_name, "mapping", "vocabs_index_schema.json")
);
}

Expand Down Expand Up @@ -252,10 +245,6 @@ protected void insertJsonToElasticRecordIndex(String... filenames) throws IOExce
this.insertJsonToElasticIndex(record_index_name, filenames);
}

protected void insertJsonToElasticCODataIndex(String... filenames) throws IOException {
this.insertJsonToElasticIndex(co_data_index_name, filenames);
}

protected Response getClusterHealth() throws IOException {
return transport.restClient().performRequest(new Request("GET", "/_cluster/health"));
}
Expand Down
Loading