[e455b7]: / Allura / test.ini  Maximize  Restore  History

Download this file

136 lines (107 with data), 3.8 kB

  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
; Licensed to the Apache Software Foundation (ASF) under one
; or more contributor license agreements. See the NOTICE file
; distributed with this work for additional information
; regarding copyright ownership. The ASF licenses this file
; to you under the Apache License, Version 2.0 (the
; "License"); you may not use this file except in compliance
; with the License. You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing,
; software distributed under the License is distributed on an
; "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
; KIND, either express or implied. See the License for the
; specific language governing permissions and limitations
; under the License.
;
; Allura - testing configuration
;
;
;
; This inherits all the settings from development.ini
; and then overrides only settings needed for tests to work.
;
[app:main]
use = config:development.ini#main
; TurboGears will use controllers/basetest_project_root.py as root controller
override_root=basetest_project_root
disable_template_overrides = True
; Use in-memory MongoDB
ming.main.uri = mim:///allura
ming.project.uri = mim:///project-data
ming.task.uri = mim:///task
activitystream.master = mim://
solr.server =
smtp.mock = true
load_test_data = true
site_admin_project = test
; useful primarily for test suites, where we want to see the error right away
monq.raise_errors = true
; Required so that g.production_mode is True.
; may also be useful for other reasons during tests (e.g. not intercepting error handling)
debug = false
; if enabled during tests, TimerMiddleware will end up wrapping requests way too many times instead of just once
; not necessary anyway
stats.sample_rate = 0
base_url = http://localhost
; specify these without any build_key being included
ew.script_name = /nf/_ew_/
ew.url_base = /nf/_ew_/
static.script_name = /nf/_static_/
static.url_base = /nf/_static_/
; tests check for these values in output
scm.host.ro.git = git://git.localhost$path
scm.host.rw.git = ssh://$username@localhost:8022/scm-repo$path
scm.host.ro.svn = http://svn.localhost$path/
scm.host.rw.svn = svn+ssh://$username@localhost:8022/scm-repo$path/
scm.host.https.svn = https://$username@localhost:8022/scm-repo$path/
scm.host.ro.hg = http://hg.localhost$path
scm.host.rw.hg = ssh://$username@localhost:8022/scm-repo$path
scm.repos.root = /tmp
scm.repos.tarball.enable = true
scm.repos.tarball.root = /tmp/tarball
scm.repos.tarball.url_prefix = file://
support_tool_choices = wiki tickets discussion
; markdown text longer than max length will not be converted to html
; tests expect max length of 40000
markdown_render_max_length = 40000
; TODO: update tests and remove this setting override
auth.require_email_addr = false
forgemail.host = 127.0.0.1
forgemail.port = 8827
; Disable emailing authentication codes during tests
auth.email_auth_code.enabled = false
; Enable rejecting untracked user sessions
auth.reject_untracked_sessions = false
[app:task]
use = main
; TurboGears will use controllers/task.py as root controller
override_root = task
;
; Logging goes to a test.log file in current directory
;
[loggers]
keys = root, allura
[handlers]
keys = test
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = test
[logger_allura]
level = DEBUG
handlers =
qualname = allura
[handler_test]
class = FileHandler
args = ('test.log',)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S
[validation]
validate_html5 = false
validate_inlinejs = false