# This is the configuration for unit testing
[app:main]
use = egg:bodhi-server
acl_system = dummy
buildsystem = dummy
base_address = https://bodhi-dev.example.com/
fedora_announce_list = package-announce@lists.fedoraproject.org
fedora_test_announce_list = test@lists.fedoraproject.org
fedora_epel_announce_list = epel-package-announce@lists.fedoraproject.org
fedora_epel_test_announce_list = epel-devel@lists.fedoraproject.org
dogpile.cache.backend = dogpile.cache.memory
dogpile.cache.expiration_time = 0
fedora.mandatory_days_in_testing = 7
fedora_epel.mandatory_days_in_testing = 14
f7.status = post_beta
f7.post_beta.mandatory_days_in_testing = 7
f7.post_beta.min_karma = 2
f7.post_beta.critpath.mandatory_days_in_testing = 3
cors_origins_ro = *
cors_origins_rw = http://0.0.0.0:6543 http://bodhi-dev.example.com/ https://bodhi-dev.example.com/
cors_connect_src = http://0.0.0.0:6543 http://bodhi-dev.example.com/ https://bodhi-dev.example.com/ http://localhost:6543 https://*.fedoraproject.org/ wss://hub.fedoraproject.org:9939/
mako.directories = bodhi.server:templates
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pyramid.includes =
debugtoolbar.hosts = 127.0.0.1 ::1
authtkt.secret = changethisinproduction!
session.secret = sssshhhhhh
authtkt.secure = false
session.type = memory
session.data_dir = %(here)s/data/sessions/data
session.lock_dir = %(here)s/data/sessions/lock
session.key = testing
session.cookie_on_exception = true
cache.regions = default_term, second, short_term, long_term
cache.type = memory
cache.second.expire = 1
cache.short_term.expire = 60
cache.default_term.expire = 300
cache.long_term.expire = 3600
container.destination_registry = localhost:5000
# skopeo.extra_copy_flags = --dest-tls-verify=false
openid.provider = https://id.stg.fedoraproject.org/openid/
openid.url = https://id.stg.fedoraproject.org/
openid_template = {username}.id.fedoraproject.org
oidc.fedora.client_id = testing
oidc.fedora.client_secret = testing
oidc.fedora.server_metadata_url = https://ipsilon.tinystage.test/idp/openidc/.well-known/openid-configuration
system_users = bodhi autoqa
important_groups = proventesters provenpackager releng
admin_groups = bodhiadmin releng
admin_packager_groups = provenpackager
mandatory_packager_groups = packager
warm_cache_on_start = false
celery_config = %(here)s/../celeryconfig.py
compose_dir = /srv/composes/final
compose_stage_dir = /srv/composes/stage
createrepo_c_config = %(here)s/createrepo_c.ini
pungi.basepath = %(here)s/../../devel/ci/integration/bodhi/
pungi.cmd = /usr/bin/true
pungi.conf.rpm = pungi.rpm.conf.j2
pungi.conf.module = pungi.module.conf.j2
critpath_pkgs = kernel
bugtracker = dummy
stats_blacklist = bodhi autoqa
test_case_base_url = https://fedoraproject.org/wiki/
resultsdb_api_url = whatever
sqlalchemy.url = sqlite:///%(here)s/../bodhi-tests.sqlite
# waiverdb_api_url = http://bodhi_user:pass@localhost:6544/api/v1.0
# greenwave_api_url = http://localhost:6545/api/v1.0

[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
trusted_proxy = 127.0.0.1
trusted_proxy_count = 1
trusted_proxy_headers = x-forwarded-for x-forwarded-host x-forwarded-proto x-forwarded-port
clear_untrusted_proxy_headers = yes

[pshell]
m = bodhi.server.models
s = bodhi.server.Session

[loggers]
keys = root, bodhi, sqlalchemy, fedora_messaging, celery, celery_worker_job

[handlers]
keys = console

[formatters]
keys = generic

[logger_root]
level = INFO
handlers = console

[logger_bodhi]
level = DEBUG
handlers =
qualname = bodhi

[logger_fedora_messaging]
level = INFO
handlers = console
qualname = fedora_messaging

[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine

[logger_celery]
level = INFO
handlers =
qualname = celery

[logger_celery_worker_job]
level = ERROR
handlers =
qualname = celery.worker.job
propagate = 1

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic

[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
