updated zip file
[integration.git] / test / csit / scripts / vvp / clone_and_setup_vvp_data.sh
1 #!/bin/bash
2 #
3 # ============LICENSE_START=======================================================
4 # ONAP CLAMP
5 # ================================================================================
6 # Copyright (C) 2017 AT&T Intellectual Property. All rights
7 #                             reserved.
8 # ================================================================================
9 # Licensed under the Apache License, Version 2.0 (the "License");
10 # you may not use this file except in compliance with the License.
11 # You may obtain a copy of the License at
12 #
13 # http://www.apache.org/licenses/LICENSE-2.0
14 #
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20 # ============LICENSE_END============================================
21 # ===================================================================
22 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 #
24
25 echo "This is ${WORKSPACE}/test/csit/scripts/vvp/clone_and_setup_vvp_data.sh"
26
27 # Clone vvp enviroment template
28 mkdir -p ${WORKSPACE}/data/environments/
29 mkdir -p ${WORKSPACE}/data/clone/
30
31 cd ${WORKSPACE}/data/clone
32 git clone --depth 1 http://gerrit.onap.org/r/vvp/engagementmgr -b master
33
34 chmod -R 775 ${WORKSPACE}/data/
35
36 # copy settings file from tox environment infrastructure:
37 cp -rf ${WORKSPACE}/data/clone/engagementmgr/django/vvp/settings/tox_settings.py ${WORKSPACE}/data/clone/engagementmgr/django/vvp/settings/__init__.py
38 echo "# set enviroment variables
39 DJANGO_SETTINGS_MODULE='vvp.settings.tox_settings'
40 # export PYTHONPATH={pwd}
41 SECRET_KEY='6mo22&_gtjf#wktqf1#ve^7=w6kx)uq0u*4ksk^aq8lte&)yul'
42 ENVIRONMENT='development'
43 PROGRAM_NAME_URL_PREFIX='vvp'
44 EMAIL_HOST='localhost'
45 EMAIL_HOST_PASSWORD=''
46 EMAIL_HOST_USER=''
47 EMAIL_PORT='25'
48 PGDATABASE='icedb'
49 PGUSER='iceuser'
50 PGPASSWORD='Aa123456'
51 PGHOST='localhost'
52 PGPORT='5433'
53 SECRET_WEBHOOK_TOKEN='Aiwi8se4ien0foW6eimahch2zahshaGi'
54 SECRET_GITLAB_AUTH_TOKEN='ieNgathapoo4zohvee9a'
55 SECRET_JENKINS_PASSWORD='xaiyie0wuoqueuBu'
56 SECRET_CMS_APP_CLIENT_ID='MHmJo0ccDheVVsIiQHZnY6LXPAC6H6HAMzhCCM16'
57 SECRET_CMS_APP_CLIENT_SECRET='nI8QCFrKMpnw5nTs'
58 SLACK_API_TOKEN=''
59 S3_HOST='dev-s3.d2ice.att.io'
60 S3_PORT='443'
61 AWS_ACCESS_KEY_ID='FD21HBU2KRN3UVD1MWRN'
62 AWS_SECRET_ACCESS_KEY='TKoiwxziUWG9cTYUknUkFGmmyuQ27nP2lCiutEsD'
63 STATIC_ROOT='/app/htdocs'" > ${WORKSPACE}/data/environments/vvp_env
64
65 ifconfig
66
67 IP_ADDRESS=`ip route get 8.8.8.8 | awk '/src/{ print $7 }'`
68 export HOST_IP=$IP_ADDRESS