2021-01-06 06:37:38 +01:00
|
|
|
[DEFAULT]
|
|
|
|
debug = false
|
|
|
|
# Uncomment and replace with the address which should receive any error reports
|
|
|
|
#email_to = you@yourdomain.com
|
|
|
|
smtp_server = localhost
|
|
|
|
error_email_from = paste@localhost
|
|
|
|
|
|
|
|
[server:main]
|
|
|
|
use = egg:Paste#http
|
|
|
|
host = 0.0.0.0
|
|
|
|
port = 5000
|
|
|
|
|
|
|
|
|
|
|
|
[app:main]
|
2021-01-06 07:02:15 +01:00
|
|
|
use = config:../ckan/test-core.ini
|
2021-01-06 06:37:38 +01:00
|
|
|
ckan.legacy_templates = false
|
|
|
|
ckan.plugins = test_spatial_plugin harvest spatial_metadata spatial_query spatial_harvest_metadata_api gemini_csw_harvester gemini_doc_harvester gemini_waf_harvester
|
|
|
|
ckan.spatial.srid = 4326
|
|
|
|
ckan.spatial.default_map_extent=-6.88,49.74,0.50,59.2
|
|
|
|
ckan.spatial.testing = true
|
|
|
|
ckan.spatial.validator.profiles = iso19139,constraints,gemini2
|
|
|
|
ckan.harvest.mq.type = redis
|
|
|
|
|
|
|
|
# NB: other test configuration should go in test-core.ini, which is
|
|
|
|
# what the postgres tests use.
|
|
|
|
|
|
|
|
package_new_return_url = http://test.ckan.net/dataset/<NAME>?test=new
|
|
|
|
package_edit_return_url = http://test.ckan.net/dataset/<NAME>?test=edit
|
|
|
|
|
2021-01-06 07:02:15 +01:00
|
|
|
# copy from ckan/test-core-circle-ci.ini
|
|
|
|
ckan.datastore.write_url = postgresql://datastore_write:pass@ckan-postgres/datastore_test
|
|
|
|
ckan.datastore.read_url = postgresql://datastore_read:pass@ckan-postgres/datastore_test
|
|
|
|
|
|
|
|
ckan.redis.url = redis://ckan-redis:6379/1
|
|
|
|
|
|
|
|
sqlalchemy.url = postgresql://ckan_default:pass@ckan-postgres/ckan_test
|
|
|
|
|
|
|
|
solr_url = http://localhost:8080/solr
|
2021-01-06 06:37:38 +01:00
|
|
|
|
|
|
|
[loggers]
|
|
|
|
keys = root, ckan, sqlalchemy
|
|
|
|
|
|
|
|
[handlers]
|
|
|
|
keys = console
|
|
|
|
|
|
|
|
[formatters]
|
|
|
|
keys = generic
|
|
|
|
|
|
|
|
[logger_root]
|
|
|
|
level = WARN
|
|
|
|
handlers = console
|
|
|
|
|
|
|
|
[logger_ckan]
|
|
|
|
qualname = ckan
|
|
|
|
handlers =
|
|
|
|
level = INFO
|
|
|
|
|
|
|
|
[logger_sqlalchemy]
|
|
|
|
handlers =
|
|
|
|
qualname = sqlalchemy.engine
|
2021-01-06 07:02:15 +01:00
|
|
|
level = WARNING
|
|
|
|
# "level = INFO" logs SQL queries.
|
|
|
|
# "level = DEBUG" logs SQL queries and results.
|
|
|
|
# "level = WARNING" logs neither.
|
2021-01-06 06:37:38 +01:00
|
|
|
|
|
|
|
[handler_console]
|
|
|
|
class = StreamHandler
|
|
|
|
args = (sys.stdout,)
|
|
|
|
level = NOTSET
|
|
|
|
formatter = generic
|
|
|
|
|
|
|
|
[formatter_generic]
|
|
|
|
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
|