|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +# |
| 4 | +# Copyright (C) 2013-2014 TopCoder Inc., All Rights Reserved. |
| 5 | +# |
| 6 | +# Version: 1.2 |
| 7 | +# Author: vangavroche, isv |
| 8 | +# changes in 1.1: |
| 9 | +# - add JIRA_USERNAME and JIRA_PASSWORD |
| 10 | +# changes in 1.2: |
| 11 | +# - added RESET_PASSWORD_TOKEN_CACHE_EXPIRY environment variable |
| 12 | +# - added RESET_PASSWORD_TOKEN_EMAIL_SUBJECT environment variable |
| 13 | +# - added REDIS_HOST environment variable |
| 14 | +# - added REDIS_PORT environment variable |
| 15 | +# |
| 16 | + |
| 17 | +# tests rely on caching being off. But set this to a real value (or remove) while coding. |
| 18 | +export CACHE_EXPIRY=-1 |
| 19 | + |
| 20 | +VM_IP=env.topcoder.com |
| 21 | +if [ -n "$TC_VM_IP" ] |
| 22 | +then |
| 23 | +VM_IP=$TC_VM_IP |
| 24 | +fi |
| 25 | + |
| 26 | +export TC_DB_NAME=informixoltp_tcp |
| 27 | +export TC_DB_HOST=$VM_IP |
| 28 | +export TC_DB_PORT=2021 |
| 29 | +export TC_DB_USER=informix |
| 30 | +export TC_DB_PASSWORD=1nf0rm1x |
| 31 | + |
| 32 | +export TC_DW_NAME=informixoltp_tcp |
| 33 | +export TC_DW_HOST=$VM_IP |
| 34 | +export TC_DW_PORT=2021 |
| 35 | +export TC_DW_USER=informix |
| 36 | +export TC_DW_PASSWORD=1nf0rm1x |
| 37 | + |
| 38 | +# oauth provider |
| 39 | +export TC_API_HOST=env.topcoder.com |
| 40 | + |
| 41 | +# LDAP settings |
| 42 | +export TC_LDAP_HOST=$VM_IP |
| 43 | +export TC_LDAP_PORT=636 |
| 44 | +export TC_LDAP_PASSWORD=secret |
| 45 | +export TC_LDAP_MEMBER_BASE_DN="ou=members, dc=topcoder, dc=com" |
| 46 | +export TC_BIND_DN="cn=Manager,dc=topcoder,dc=com" |
| 47 | + |
| 48 | +# Mail settings |
| 49 | +export TC_EMAIL_HOST=smtp.gmail.com |
| 50 | +export TC_EMAIL_HOST_PORT=465 |
| 51 | +export TC_EMAIL_SECURED=true |
| 52 | +export TC_EMAIL_ACCOUNT=tc.ldap.test.1@gmail.com |
| 53 | +export TC_EMAIL_PASSWORD=tc_public_email |
| 54 | +export TC_EMAIL_FROM=tc.ldap.test.1@gmail.com |
| 55 | +export TC_EMAIL_TEMPLATE_DIR=mail_templates |
| 56 | + |
| 57 | +export TC_ACTIVATION_SERVER_NAME="https://www.topcoder.com" |
| 58 | +export TC_SOFTWARE_SERVER_NAME="https://software.topcoder.com" |
| 59 | +export TC_FORUMS_SERVER_NAME="http://apps.topcoder.com/forums" |
| 60 | + |
| 61 | +export PASSWORD_HASH_KEY="ciTHHTSMg6ixffIuPbB30A==" |
| 62 | +## JDBC connection pool environment variables - set for all databases |
| 63 | +export MINPOOL=1 |
| 64 | +export MAXPOOL=20 |
| 65 | +export MAXSIZE=0 |
| 66 | +export IDLETIMEOUT=3600 |
| 67 | +export TIMEOUT=30000 |
| 68 | + |
| 69 | +# Used in Jira soap service (Bugs API) |
| 70 | +export JIRA_USERNAME=api_test |
| 71 | +export JIRA_PASSWORD=8CDDp6BHLtUeUdD |
| 72 | + |
| 73 | +# Forum settings |
| 74 | +export STUDIO_FORUMS_SERVER_NAME="http://studio.topcoder.com/forums" |
| 75 | +export GRANT_FORUM_ACCESS=false |
| 76 | +export DEV_FORUM_JNDI=jnp://env.topcoder.com:1199 |
| 77 | + |
| 78 | +## The period for expiring the generated tokens for password resetting |
| 79 | +export RESET_PASSWORD_TOKEN_EMAIL_SUBJECT=TopCoder Account Password Reset |
| 80 | +# Set this to 180000 which is 3 mins. This will help saving time for test. |
| 81 | +export RESET_PASSWORD_TOKEN_CACHE_EXPIRY=180000 |
| 82 | + |
| 83 | +export REDIS_HOST=localhost |
| 84 | +export REDIS_PORT=6379 |
| 85 | + |
| 86 | +export DEVELOP_SUBMISSION_MAX_SIZE=6144 |
| 87 | + |
| 88 | +export WATERMARK_FILE_PATH=test/test_files/design_image_file_generator/studio_logo_watermark.png |
| 89 | + |
| 90 | +export TC_API_MAX_MEMORY=256m |
| 91 | +export DEV_FORUM_JNDI=jnp://env.topcoder.com:1199 |
| 92 | +export PORT=8081 |
| 93 | +export API_ENDPOINT=http://localhost:8081 |
| 94 | + |
0 commit comments