[ckan-changes] commit/ckanext-solr: John Glover: Use Postgres for tests instead of sqllite, bug with sqllite when adding tables (try running test_package_search_synchronous_update.py with sqlite for example)

Bitbucket commits-noreply at bitbucket.org
Tue Aug 16 16:48:24 UTC 2011


1 new changeset in ckanext-solr:

http://bitbucket.org/okfn/ckanext-solr/changeset/64bcc4fc20cc/
changeset:   64bcc4fc20cc
user:        John Glover
date:        2011-08-16 18:48:22
summary:     Use Postgres for tests instead of sqllite, bug with sqllite when adding tables (try running test_package_search_synchronous_update.py with sqlite for example)
affected #:  1 file (893 bytes)

--- a/test.ini	Mon Aug 15 17:48:49 2011 +0100
+++ b/test.ini	Tue Aug 16 17:48:22 2011 +0100
@@ -9,27 +9,26 @@
 [app:main]
 use = egg:ckan
 
+sqlalchemy.url = postgresql://ckantest:pass@localhost/ckantest
 ckan.site_id = solr_test
 search_backend = solr
 solr_url = http://127.0.0.1:8983/solr
 
-# disable this so we can test all types of indexing
-ckan.build_search_index_synchronously = false
-
-# Here we hard-code the database and a flag to make default tests run fast.
-faster_db_test_hacks = True
-sqlalchemy.url = sqlite:///%(here)s/tests/test.db
-
 ckan.cache_validation_enabled = True
 ckan.cache_enabled = False
 ckan.cache.default_expires = 200
+ckan.tests.functional.test_cache.expires = 1800
+ckan.tests.functional.test_cache.TestCacheBasics.test_get_cache_expires.expires = 3600
 
+ckan.site_title = CKAN
+ckan.site_logo = /images/ckan_logo_fullname_long.png
+ckan.site_url = http://test.ckan.net
 package_form = standard
+licenses_group_url = 
 carrot_messaging_library = queue
-ckan.site_url = http://test.ckan.net
 package_new_return_url = http://localhost/package/<NAME>?test=new
 package_edit_return_url = http://localhost/package/<NAME>?test=edit
-
+rdf_packages = http://test.com/package/
 ckan.extra_resource_fields = alt_url
 
 # Add additional test specific configuration options as necessary.
@@ -41,10 +40,15 @@
 # use <strong> so we can check that html is *not* escaped
 ckan.template_footer_end = <strong>TEST TEMPLATE_FOOTER_END TEST</strong>
 
+# mailer
+test_smtp_server = localhost:6675
+ckan.mail_from = info at test.ckan.net
+
 full_stack = true
 cache_dir = %(here)s/data
 beaker.session.key = ckan
 beaker.session.secret = l5Y9J+JZsnXHLd+9Df+W+Inaf
+beaker.cache.type = file
 app_instance_uuid = {ba835a3e-76d8-4e0c-b71f-1baafb2d11dc}
 
 # repoze.who config
@@ -52,41 +56,10 @@
 who.log_level = warning
 who.log_file = %(cache_dir)s/who_log.ini
 
-# cache to persistent files
-beaker.cache.type = file
-
-# CKAN QoS monitoring
 ckan.enable_call_timing = false
 
-# Package form to use
-package_form = standard
-
-## Update the search index synchronously (i.e. in-process rather than
-## out-of-process as would be case if using AMQP framework)
-## Set to false to disable, true to enable
-## Default enabled (and enabled if option entirely absent)
-## NOTE this is mutually exclusive with ckan.async_notifier
-ckan.build_search_index_synchronously = true
-
-## Title of site (using in several places including templates and <title> tag
-ckan.site_title = CKAN
-
-## Logo image to use (replaces site_title string on front page if defined)
-ckan.site_logo = http://assets.okfn.org/p/ckan/img/ckan_logo_largetext.png
-
-## Site tagline / description (used on front page)
-ckan.site_description = 
-
-## Favicon (default is the CKAN software favicon)
-ckan.favicon = http://assets.okfn.org/p/ckan/img/ckan.ico
-
-# Directory for logs (produced by cron scripts associated with ckan)
 ckan.log_dir = %(here)s/log
-
-# Directory for JSON/CSV dumps (must match setting in apache config)
 ckan.dump_dir = %(here)s/dump
-
-# Directory for SQL database backups
 ckan.backup_dir = %(here)s/backup
 
 # Logging configuration
@@ -111,7 +84,7 @@
 [logger_sqlalchemy]
 handlers =
 qualname = sqlalchemy.engine
-level = WARN  
+level = WARN
 
 [handler_console]
 class = StreamHandler

Repository URL: https://bitbucket.org/okfn/ckanext-solr/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list