Statistics
| Branch: | Tag: | Revision:

root / snf-common / synnefo / settings / test.py @ f3787696

History | View | Annotate | Download (1 kB)

1
import os
2
os.environ['SYNNEFO_SETTINGS_DIR'] = '/etc/synnefo-test-settings'
3

    
4
from synnefo.settings import *
5

    
6
DEBUG = False
7
TEST = True
8

    
9
DATABASES = {
10
    'default': {
11
        #'ENGINE': 'django.db.backends.sqlite3',
12
        #'NAME': '/tmp/synnefo_test_db.sqlite',
13

    
14
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
15
        'NAME': 'pithos',
16
        'USER': 'postgres',
17
        'PORT': '5432',
18
    }
19
}
20

    
21
LOGGING_SETUP['handlers']['console']['level'] = \
22
    os.environ.get('SYNNEFO_TESTS_LOGGING_LEVEL', 'WARNING')
23

    
24
LOGIN_URL = 'http://host:port/'
25

    
26

    
27
SOUTH_TESTS_MIGRATE = bool(int(os.environ.get('SOUTH_TESTS_MIGRATE', True)))
28

    
29
ASTAKOS_IM_MODULES = ['local', 'shibboleth']
30

    
31
CYCLADES_PROXY_USER_SERVICES = False
32
PITHOS_PROXY_USER_SERVICES = False
33

    
34
ASTAKOS_BASE_URL = 'http://accounts.example.synnefo.org/astakos/'
35
COMPUTE_BASE_URL = 'http://compute.example.synnefo.org/cyclades/'
36
PITHOS_BASE_URL = 'http://storage.example.synnefo.org/pithos/'
37

    
38
CLOUDBAR_LOCATION = '/static/im/cloudbar/'
39
CLOUDBAR_SERVICES_URL = '/ui/get_services'
40
CLOUDBAR_MENU_URL = '/ui/get_menu'