Commits

Anonymous committed b701d09

Skipping throughput tests for non-enabled configurations.

Comments (0)

Files changed (2)

ckan/config/deployment.ini_tmpl

 ckan.controllers.apiv2.package.list.expires = 900
 ckan.controllers.apiv2.package.show.expires = 900
 
+# CKAN QoS monitoring
+# any non-empty value enables it
+enable_call_timing =
+
 # Location of RDF versions of packages
 # e.g. rdf_packages = http://semantic.ckan.net/data/
 rdf_packages =

ckan/tests/functional/api/test_model.py

 class QosApiTestCase(ApiControllerTestCase):
 
     def test_throughput(self):
+        if not config.get('ckan.enable_call_timing', None):
+            raise SkipTest
         # Create some throughput.
         import datetime
         start = datetime.datetime.now()