Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / brag / server / ceph_brag / tests / config.py
1 # Server Specific Configurations
2 server = {
3     'port': '8080',
4     'host': '0.0.0.0'
5 }
6
7 # Pecan Application Configurations
8 app = {
9     'root': 'ceph_brag.controllers.root.RootController',
10     'modules': ['ceph_brag'],
11     'static_root': '%(confdir)s/public',
12     'template_path': '%(confdir)s/ceph_brag/templates',
13     'debug': True,
14     'errors': {
15         404: '/error/404',
16         '__force_dict__': True
17     }
18 }
19
20 logging = {
21     'loggers': {
22         'root': {'level': 'INFO', 'handlers': ['console']},
23         'ceph_brag': {'level': 'DEBUG', 'handlers': ['console']},
24         'py.warnings': {'handlers': ['console']},
25         '__force_dict__': True
26     },
27     'handlers': {
28         'console': {
29             'level': 'DEBUG',
30             'class': 'logging.StreamHandler',
31             'formatter': 'simple'
32         }
33     },
34     'formatters': {
35         'simple': {
36             'format': ('%(asctime)s %(levelname)-5.5s [%(name)s]'
37                        '[%(threadName)s] %(message)s')
38         }
39     }
40 }
41
42 sqlalchemy = {
43     'url'           : 'sqlite:////tmp/test.db',
44     'echo'          : False,
45     'encoding'      : 'utf-8'
46 }
47
48
49 # Custom Configurations must be in Python dictionary format::
50 #
51 # foo = {'bar':'baz'}
52 #
53 # All configurations are accessible at::
54 # pecan.conf