Skip to content

Commit

Permalink
change 'index.d1node.baseURL'->'dataone.mn.baseURL'
Browse files Browse the repository at this point in the history
  • Loading branch information
artntek committed Mar 21, 2024
1 parent 4b26efd commit 3158ce5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion helm/config/dataone-indexer.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
index.d1node.baseURL={{ include "idxworker.mn.url" . }}
dataone.mn.baseURL={{ include "idxworker.mn.url" . }}
index.data.root.directory={{ .Values.idxworker.data_directory }}
index.document.root.directory={{ .Values.idxworker.document_directory }}
index.tdb.directory={{ .Values.idxworker.tripleDbDirectory }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class ObjectManager {
private static ObjectManager manager = null;
private static String dataRootDir = Settings.getConfiguration().getString("index.data.root.directory");
private static String documentRootDir = Settings.getConfiguration().getString("index.document.root.directory");
private static String nodeBaseURL = Settings.getConfiguration().getString("index.d1node.baseURL");
private static String nodeBaseURL = Settings.getConfiguration().getString("dataone.mn.baseURL");
private static String DataONEauthToken = null;
private static Logger logger = Logger.getLogger(ObjectManager.class);
private static final String TOKEN_VARIABLE_NAME = "DATAONE_AUTH_TOKEN";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#index.d1node.baseURL=https://dev.nceas.ucsb.edu/knb/d1/mn
index.d1node.baseURL=https://valley.duckdns.org/metacat/d1/mn
#dataone.mn.baseURL=https://dev.nceas.ucsb.edu/knb/d1/mn
dataone.mn.baseURL=https://valley.duckdns.org/metacat/d1/mn
index.data.root.directory=/var/metacat/data
index.document.root.directory=/var/metacat/documents

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/dataone/cn/indexer/IndexWorkerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void testLoadAdditionalPropertiesFile() throws Exception {
File defaultFile = new File (propertyFilePath);
//The one from the user specified location
assertTrue(IndexWorker.propertyFilePath.equals(propertyFilePath));
assertTrue(Settings.getConfiguration().getString("index.d1node.baseURL").
assertTrue(Settings.getConfiguration().getString("dataone.mn.baseURL").
equals("https://valley.duckdns.org/metacat/d1/mn"));
assertTrue(Settings.getConfiguration().
getString("index.data.root.directory").equals("/var/metacat/data"));
Expand All @@ -164,7 +164,7 @@ public void testLoadAdditionalPropertiesFile() throws Exception {
String propertyFilePath2 = "./src/test/resources/org/dataone/configuration/index-processor-2.properties";
IndexWorker.loadAdditionalPropertyFile(propertyFilePath2);
assertTrue(IndexWorker.propertyFilePath.equals(propertyFilePath));
assertTrue(Settings.getConfiguration().getString("index.d1node.baseURL").
assertTrue(Settings.getConfiguration().getString("dataone.mn.baseURL").
equals("https://valley.duckdns.org/metacat/d1/mn"));
assertTrue(Settings.getConfiguration().
getString("index.data.root.directory").equals("/objects"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#index.d1node.baseURL=https://dev.nceas.ucsb.edu/knb/d1/mn
index.d1node.baseURL=https://valley.duckdns.org/metacat/d1/mn
#dataone.mn.baseURL=https://dev.nceas.ucsb.edu/knb/d1/mn
dataone.mn.baseURL=https://valley.duckdns.org/metacat/d1/mn
index.data.root.directory=/objects
index.document.root.directory=/objects

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#index.d1node.baseURL=https://dev.nceas.ucsb.edu/knb/d1/mn
index.d1node.baseURL=https://valley.duckdns.org/metacat/d1/mn
#dataone.mn.baseURL=https://dev.nceas.ucsb.edu/knb/d1/mn
dataone.mn.baseURL=https://valley.duckdns.org/metacat/d1/mn
index.data.root.directory=/
index.document.root.directory=/

Expand Down

0 comments on commit 3158ce5

Please sign in to comment.