-
Notifications
You must be signed in to change notification settings - Fork 5
/
test.properties
342 lines (258 loc) · 11.5 KB
/
test.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
#karaf.home=${project.build.testOutputDirectory}/KARAF_HOME
#karaf.home=${project.build.testOutputDirectory}
#karaf.home=${karaf.home}
processing.dir.base.path=${karaf.home}
ids.dir.path=${karaf.home}/siris-dropbox
########################################################################################
########################################################
#
# system.properties
#
########################################################
si.fedora.host=http://localhost:${dynamic.test.port}/trippi-sparql-fcrepo-webapp
si.fedora.user=fedoraAdmin
si.fedora.password=fc
# For Camera Trap routes
si.ct.owner=testCTUser
si.ct.namespace=test
si.ct.root=si:123456
workbench.server=<workbench_server>
workbench.host = http://${workbench.server}
si.fits.host=http://localhost:${dynamic.test.port}/fits
exiftool.path=/usr/local/bin/exiftool
fuseki.host = http://localhost:${dynamic.test.port}/jena-fuseki-war
fuseki.datastore.name = fedora3
si.fuseki.endpoint=${fuseki.host}/${fuseki.datastore.name}
#si.fuseki.endpoint=http://localhost:${dynamic.test.port}/jena-fuseki-war/fedora3
#
# Activemq configuration
#
activemq.port = 61616
activemq.host = localhost
activemq.url = tcp://${activemq.host}:${activemq.port}
# Default Test Broker
broker.url = vm://localhost?broker.persistent=false&broker.useJmx=false
#broker.url = tcp://localhost:61616
# MySQL database setup common properties
#db.driverClassName=com.mysql.jdbc.Driver
#db.url=jdbc:mysql://${request.db.host}:${request.db.port}/${request.db.name}?zeroDateTimeBehavior=convertToNull&autoReconnect=true
db.validationQuery=select 1 as dbcp_connections_test
db.testOnBarrow=true
db.testWhileIdle=true
db.host=localhost
db.port=3306
db.username=sa
db.password=
#Common Derby Embedded db for local tests
derby.db.driverClassName=org.apache.derby.jdbc.EmbeddedDriver
derby.db.url=jdbc:derby:memory:derbyTestDB;create=true
########################################################
#
# edu.si.sidora.karaf.cfg properties
#
########################################################
si.ct.uscbi.stage.dir.path=${karaf.home}/ProcessUnifiedAWS
si.ct.uscbi.process.dir.path=${karaf.home}/ProcessUnified
si.ct.uscbi.data.dir.path=${karaf.home}/UnifiedCameraTrapData
si.ct.uscbi.process.done.dir.path=${karaf.home}/Done
si.ct.uscbi.process.error.dir.path=${karaf.home}/Error_UnifiedCameraTrap
si.ct.uscbi.enableS3Routes=false
si.ct.uscbi.aws.accessKey=<no-AWS>
si.ct.uscbi.aws.secretKey=<no-AWS>
si.ct.uscbi.s3.approved.bucketName=<some_bucket_name_for_approved>
si.ct.uscbi.s3.ingested.bucketName=<some_bucket_name_for_ingested>
si.ct.uscbi.s3.rejected.bucketName=<some_bucket_name_for_rejected>
si.ct.external.upload.success.dir=s3_upload_success
si.ct.external.upload.error.dir= s3_upload_error
#onException redelivery delays
si.ct.connEx.redeliveryDelay=0
si.ct.FNF.redeliveryDelay=0
min.connectEx.redeliveries=5
min.socketEx.redeliveries=5
si.ct.inflight.redeliveryDelay=0
si.ct.checkConceptFromRI.period=100
si.ct.thread.wait.time=100
si.ct.file.pollDelay=100
si.ct.file.maxMessagesPerPoll=1
si.ct.uscbi.process.dir.threshold=10
# Queue for WI ct ingest processing
sidora.wi.ct.queue = wi.ct.update
########################################################
#
# edu.si.sidora.emammal.cfg
#
########################################################
# enable test url values so that we can create new edan records for testing
# ex. url = url_test_randomUUID
enable.edan.test = false
# enable parallel processing for camel split and aggregators
si.ct.edanIds.parallelProcessing = true
# number seda concurrent consumers (default seda concurrentConsumers is 20)
si.ct.edanIds.concurrentConsumers = 20
# seda timeout (default seda timeout = 30000ms)
si.ct.edanIds.seda.timeout = 0
# Pool size for ThreadPoolExecutor used for writing images to ids dropbox
si.ct.edanIds.corePoolSize = 1
si.ct.edanIds.maximumPoolSize = 5
# seda queue size for processing ct ingest jms messages
si.ct.edanIds.ct.deployment.queue.size = 5
########################################################
# si.ct.edanIds.xml2json.keepStrings
#
# If true, then values will not be coerced into boolean
# or numeric values and will instead be left as strings
# All values are converted as strings, for 1, 01, 29.0 will not be coerced to
# numbers but will instead be the exact value as seen in the XML document.
########################################################
si.ct.edanIds.xml2json.keepStrings = false
# number of records to send for edan api request
si.ct.edanIds.edan.bulk.size = 10
# completion timeout for edan bulk aggrigation
si.ct.edanIds.edan.bulk.completionTimeout = 6000
si.ct.edanIds.redeliveryDelay=0
min.edan.redeliveries=5
min.edan.http.redeliveries=5
si.ct.uscbi.appId=<edan_appId>
si.ct.uscbi.edanKey=<edan_key>
si.ct.uscbi.authType=1
# For testing edan requests using the edan-test-util bundle in SMX use
#si.ct.uscbi.server=http://localhost:${dynamic.test.port}/edan
#For production edan request use
si.ct.uscbi.server=<edan_host>
# Server used for testing against solr
edan.ids.solr.host=<edan_solr>
# For testing edan requests using the edan-test-util bundle in SMX use
#si.ct.uscbi.edanService=/addEdan
#For production edan request use
si.ct.uscbi.edanService = <edan_service>
si.ct.uscbi.edan_type=emammal_image
si.ct.uscbi.extra_property="source": "dev",
si.ct.uscbi.idsPushLocation=${ids.dir.path}/eMammalExports/
si.ct.edanids.speciesScientificName.filter = Bicycle, Blank, Calibration Photos, Camera Misfire, Camera Trapper, False trigger, Homo sapien, Homo sapiens, No Animal, Setup Pickup, Time Lapse, Vehicle
edanIds.queue = edanIds.apim.update.test
edanIds.ct.queue = edanIds.ct.update.test
edanIds.selector = (XPATH '/*[local-name()=''entry'']/*[local-name()=''author'']/*[local-name()=''name''] != ''{{si.fedora.user}}'' and /*[local-name()=''entry'']/*[local-name()=''category''][@scheme=''fedora-types:dsID'']/@term = ''OBJ'' and not(contains(/*[local-name()=''entry'']/*[local-name()=''category''][@scheme=''fedora-types:dsLabel'']/@term,''Observations''))' and methodName IN ('addDatastream','modifyDatastreamByValue','modifyDatastreamByReference','modifyObject','ingest') and pid LIKE '{{si.ct.namespace}}:%') or addEdanIds = 'true'
si.edu.idsAssetFilePrefix = ExportEmammal_emammal_image_
si.edu.idsAssetImagePrefix = emammal_image_
si.ct.wi.speciesScientificNameFaceBlur.filter = Bicycle, Calibration Photos, Camera Trapper, Homo sapien, Homo sapiens, Setup Pickup, Time Lapse, Vehicle
si.ct.wi.faceBlur.script = {{karaf.home}}/FaceBlurrer/FaceBlurrer.py
si.ct.wi.faceBlur.blur_value = 99
si.ct.wi.faceBlur.classifier = {{karaf.home}}/FaceBlurrer/haarcascades/haarcascade_frontalface_alt.xml
########################################################
#
# edu.si.sidora.batch.cfg
#
########################################################
edu.si.batch=edu.si.batch
# The fedora user must be different from the Camera Trap routes otherwise derivatives will not be made
si.fedora.batch.user=<camel_fedora_user>
# The REST endpoint for the Batch Process
sidora.batch.service.address=http://localhost:${dynamic.test.port}/sidora/batch
# MySQL database setup
mysql.host=localhost
mysql.port=3306
mysql.database=<db_name>
mysql.username=<db_user>
mysql.password=<db_password>
extract.mods.from.collection.xsl=${workbench.host}/sites/all/modules/islandora_xml_forms-7.x-1.7/builder/xml/extract_mods_from_collection.xsl
audio.thumbnail.png=${workbench.host}/sites/all/modules/islandora_solution_pack_audio-7.x-1.7/images/audio-TN.jpg
# Redelivery Policy for java.net.ConnectException. The following config retries for aprox 25min.
batch.net.redelivery.redeliveryDelay=0
batch.net.redelivery.maximumRedeliveries=10
batch.net.redelivery.backOffMultiplier=2
batch.net.redelivery.useExponentialBackOff=true
# Redelivery Policy for org.apache.camel.component.cxf.CxfOperationException. The following config retries for aprox 25min.
batch.cxf.redelivery.redeliveryDelay=0
batch.cxf.redelivery.maximumRedeliveries=10
batch.cxf.redelivery.backOffMultiplier=2
batch.cxf.redelivery.useExponentialBackOff=true
# Redelivery Policy for sql. The following config retries for aprox 25min.
batch.sql.redelivery.redeliveryDelay=0
batch.sql.redelivery.maximumRedeliveries=10
batch.sql.redelivery.backOffMultiplier=2
batch.sql.redelivery.useExponentialBackOff=true
########################################################
#
# edu.si.sidora.mci.cfg
#
########################################################
mci.default.owner.pid=<mci_owner_pid>
mci.default.owner.name=<mci_owner_name>
camel.workbench.login.url = ${workbench.host}/user
camel.workbench.create.research.project.url = ${workbench.host}/sidora/ajax_parts/create_ps
camel.workbench.clear.cache.url = ${workbench.host}/sidora/pid_expired
camel.workbench.user = <workbench_user>
camel.workbench.password = <workbench_password>
# The REST endpoint
sidora.mci.service.address=http://localhost:${dynamic.test.port}/sidora/mci
# Camel SQL Component Data Source configuration
#Common Driver to use
db.driverClassName=com.mysql.jdbc.Driver
#db.driverClassName=org.apache.derby.jdbc.EmbeddedDriver
# Drupal MySql database configuration for checking for valid users and getting there user pid
drupal.db.host=${workbench.server}
drupal.db.port=3306
drupal.db.name=<db_name>
drupal.db.username=<db_user_
drupal.db.password=<db_password>
drupal.db.url=jdbc:mysql://${drupal.db.host}:${drupal.db.port}/${drupal.db.name}?zeroDateTimeBehavior=convertToNull&autoReconnect=true
drupal.db.validationQuery=select 1 as dbcp_connections_test
drupal.db.testOnBarrow=true
drupal.db.testWhileIdle=true
# Sidora MySql database for persisting incoming http requests
request.db.host=localhost
request.db.port=3306
request.db.name=<db_name>
request.db.username=<db_user>
request.db.password=<db_password>
request.db.url=jdbc:mysql://${request.db.host}:${request.db.port}/${request.db.name}?zeroDateTimeBehavior=convertToNull&autoReconnect=true
request.db.validationQuery=select 1 as dbcp_connections_test
request.db.testOnBarrow=true
request.db.testWhileIdle=true
mci.redeliveryDelay=0
mci.maximumRedeliveries=10
mci.backOffMultiplier=2
mci.useExponentialBackOff=true
mci.retryAttemptedLogLevel=WARN
mci.retriesExhaustedLogLevel=ERROR
mci.logExhausted=true
########################################################
#
# edu.si.sidora.solr.cfg
#
########################################################
edu.si.solr=edu.si.solr
si.solr.password = sidora_solr_password
sidora.solr.batch.size = 10
sidora.solr.page.limit = 10
//1min = 60000
sidora.solr.batch.completionTimeout = 100
sidora.solr.createDoc.parallelProcessing = true
sidora.solr.endpoint = http://localhost:8091/solr
sidora.solr.default.index = gsearch_solr_test
sidora.sianct.default.index = gsearch_sianct_test
sidora.solr.service.address=http://localhost:${dynamic.test.port}/sidora/solr
#Queue used for indexing non CT fedora objects to gsearch_solr index
solr.apim.update.queue = solr.apim.update.test
# Queue for indexing CT objects only to gsearch_sianct index
sidoraCTSolr.queue = sidoraCTSolr.apim.update.test
#Common Driver to use
#mysql.solr.db.driverClassName=com.mysql.jdbc.Driver
mysql.solr.db.driverClassName=${derby.db.driverClassName}
# MySQL database setup
mysql.solr.host=localhost
mysql.solr.port=3306
mysql.solr.database=<fedora_db>
mysql.solr.username=<fedora_db_user>
mysql.solr.password=<fedora_db_pw>
mysql.solr.reindex.database=<db_name>
mysql.solr.reindex.username=<db_user>
mysql.solr.reindex.password=<db_password>
sidoraSolr.redeliveryDelay=0
sidoraSolr.maximumRedeliveries=5
sidoraSolr.backOffMultiplier=2
sidoraSolr.useExponentialBackOff=true
sidoraSolr.retryAttemptedLogLevel=WARN
sidoraSolr.retriesExhaustedLogLevel=ERROR
sidoraSolr.logExhausted=true
sidorasolr.max.http.redeliveries=5