-
Notifications
You must be signed in to change notification settings - Fork 52
/
.testenv
56 lines (55 loc) · 2.28 KB
/
.testenv
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
# This file is public. To override, make a new file named `.env.testing` and set
# override values there. Values will be processed as JSON, falling back to plain strings
FLASK_ENV=testing
FLASK_TESTING=true
FLASK_DEBUG_TB_ENABLED=false
# Disable Recaptcha
FLASK_RECAPTCHA_DISABLED=true
# Enable CSRF so tests reflect production use
FLASK_WTF_CSRF_ENABLED=true
# Use Redis cache so that rate limit validation tests work, with Redis db
FLASK_CACHE_TYPE=flask_caching.backends.RedisCache
REDIS_HOST=localhost
FLASK_RQ_REDIS_URL=redis://${REDIS_HOST}:6379/9
FLASK_RQ_DASHBOARD_REDIS_URL=redis://${REDIS_HOST}:6379/9
FLASK_CACHE_REDIS_URL=redis://${REDIS_HOST}:6379/9
# Disable logging in tests
FLASK_SQLALCHEMY_ECHO=false
FLASK_LOG_FILE=null
FLASK_LOG_EMAIL_TO='[]'
FLASK_LOG_TELEGRAM_CHATID=null
FLASK_LOG_TELEGRAM_APIKEY=null
FLASK_LOG_SLACK_WEBHOOKS='[]'
# Run RQ jobs inline in tests
FLASK_RQ_ASYNC=false
# Recaptcha keys from https://developers.google.com/recaptcha/docs/faq#id-like-to-run-automated-tests-with-recaptcha.-what-should-i-do
FLASK_RECAPTCHA_USE_SSL=true
FLASK_RECAPTCHA_PUBLIC_KEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
FLASK_RECAPTCHA_PRIVATE_KEY=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
FLASK_RECAPTCHA_OPTIONS=""
# Use hostaliases on supported platforms
HOSTALIASES=${PWD}/HOSTALIASES
# These settings should be customisable from a .env file (TODO)
FLASK_SECRET_KEYS='["testkey"]'
FLASK_LASTUSER_SECRET_KEYS='["testkey"]'
FLASK_LASTUSER_COOKIE_DOMAIN='.funnel.test:3002'
FLASK_SITE_TITLE='Test Hasgeek'
FLASK_SITE_SUPPORT_EMAIL='support@hasgeek.com'
FLASK_SITE_SUPPORT_PHONE='+917676332020'
FLASK_MAIL_DEFAULT_SENDER="Funnel <no-reply@funnel.test>"
DB_HOST=localhost
FLASK_SQLALCHEMY_DATABASE_URI=postgresql+psycopg://${DB_HOST}/funnel_testing
FLASK_SQLALCHEMY_BINDS__geoname=postgresql+psycopg://${DB_HOST}/geoname_testing
FLASK_TIMEZONE='Asia/Kolkata'
FLASK_BOXOFFICE_SERVER='http://boxoffice:6500/api/1/'
FLASK_IMGEE_HOST='http://imgee.test:4500'
FLASK_IMAGE_URL_DOMAINS='["images.example.com"]'
FLASK_IMAGE_URL_SCHEMES='["https"]'
FLASK_SES_NOTIFICATION_TOPICS=null
# Per app config
APP_FUNNEL_SITE_ID=hasgeek-test
APP_FUNNEL_SERVER_NAME=funnel.test:3002
APP_FUNNEL_SHORTLINK_DOMAIN=f.test:3002
APP_FUNNEL_DEFAULT_DOMAIN=funnel.test
APP_FUNNEL_UNSUBSCRIBE_DOMAIN=bye.test
APP_SHORTLINK_SITE_ID=shortlink-test