addproject
This commit is contained in:
18
base_framework/base_config/config.ini
Normal file
18
base_framework/base_config/config.ini
Normal file
@@ -0,0 +1,18 @@
|
||||
# coding=utf-8
|
||||
|
||||
# QA环境
|
||||
[QA]
|
||||
zhyy = https://smart-management-api-dev.best-envision.com/admin-api
|
||||
zhyy_login = https://smart-management-api-dev.best-envision.com/admin-api/system/auth/login
|
||||
ZZYY = https://smart-management-api-dev.best-envision.com/admin-api
|
||||
|
||||
# uat环境
|
||||
[UAT]
|
||||
zhyy = https://smart-management-api-pre.best-envision.com/admin-api/
|
||||
zhyy_login = https://smart-management-api-pre.best-envision.com/admin-api/system/auth/login
|
||||
|
||||
|
||||
[team_user_list]
|
||||
ASTWB_owner = 18202810506
|
||||
谯新久 = 18202810506
|
||||
ASTWB_to_dd = 2079cb3e311ab6a37138a6d4671181661d211c12a1532c2012ae7e6b397996c3
|
||||
33
base_framework/base_config/config_hh_qa.ini
Normal file
33
base_framework/base_config/config_hh_qa.ini
Normal file
@@ -0,0 +1,33 @@
|
||||
# coding=utf-8
|
||||
[PostgreSQL]
|
||||
db_test_host = 39.170.26.156
|
||||
db_test_port = 8566
|
||||
db_test_dbname = smart_management_st
|
||||
db_test_user = sm_test_user
|
||||
db_test_password = Test@736141
|
||||
db_charset = utf8
|
||||
db_min_cached = 10
|
||||
db_max_cached = 20
|
||||
db_max_shared = 20
|
||||
db_max_connecyions = 100
|
||||
db_blocking = True
|
||||
db_max_usage = 5
|
||||
db_set_session = None
|
||||
|
||||
[jwadmin]
|
||||
tenant = 境外租户空间
|
||||
show_username = 超级管理员
|
||||
username = jwadmin
|
||||
password = 1qaz@WSX
|
||||
|
||||
[purchase]
|
||||
tenant = 境内组织
|
||||
show_username = 孙丽萍
|
||||
username = sunliping01
|
||||
password = 1qaz@WSX
|
||||
|
||||
[supply]
|
||||
tenant = 境内组织
|
||||
show_username = 东莞艾斯保健用品有限公司
|
||||
username = SU00014
|
||||
password = 1qaz#WSX
|
||||
19
base_framework/base_config/config_hh_sim.ini
Normal file
19
base_framework/base_config/config_hh_sim.ini
Normal file
@@ -0,0 +1,19 @@
|
||||
# coding=utf-8
|
||||
|
||||
[jwadmin]
|
||||
tenant = 境外租户空间
|
||||
show_username = 超级管理员
|
||||
username = jwadmin
|
||||
password = 1qaz@WSX
|
||||
|
||||
[purchase]
|
||||
tenant = 境内组织
|
||||
show_username = 孙丽萍
|
||||
username = sunliping01
|
||||
password = 1qaz@WSX
|
||||
|
||||
[supply]
|
||||
tenant = 境内组织
|
||||
show_username = 东莞艾斯保健用品有限公司
|
||||
username = SU00014
|
||||
password = 1qaz#WSX
|
||||
31
base_framework/base_config/current_pth.py
Normal file
31
base_framework/base_config/current_pth.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# coding=utf-8
|
||||
|
||||
import os
|
||||
import configparser
|
||||
|
||||
# 配置文件路径
|
||||
HERE = os.path.dirname(os.path.abspath(__file__))
|
||||
ROOT_PATH = os.path.abspath(os.path.join(HERE, '../../'))
|
||||
ASTWB_PATH = os.path.abspath(os.path.join(HERE, '../../ASTWB/library/Config/'))
|
||||
env_choose_path = os.path.join(HERE, 'env_choose.ini')
|
||||
config_choose_path = os.path.join(HERE, 'config.ini')
|
||||
la_config_path = os.path.join(HERE, '../platform_tools/jira_tools/la_config.ini')
|
||||
config_evn_path = os.path.join(HERE, 'current_pth.py')
|
||||
server_ip_path = os.path.join(HERE, 'server_ip.ini')
|
||||
log_path = os.path.join(ROOT_PATH, 'Log')
|
||||
# 根据启动参数来加载对应的配置文件
|
||||
cof = configparser.ConfigParser()
|
||||
cof.read(env_choose_path)
|
||||
current_business = cof['run_evn_name']['current_business'].lower()
|
||||
current_evn = cof['run_evn_name']['current_evn'].lower()
|
||||
config_file_path = os.path.join(HERE, 'config_{0}_{1}.ini'.format(current_business, current_evn))
|
||||
db_config_path = config_file_path
|
||||
|
||||
pz_all_server_ip_path = os.path.join(HERE, 'pz_all_server_ip.ini')
|
||||
swagger_choose_path = os.path.join(HERE, 'swagger_url.ini')
|
||||
astwb_config = os.path.join(ASTWB_PATH, 'team_config.ini')
|
||||
uat_config_path = os.path.abspath(os.path.join(HERE, 'uat_config'))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(config_file_path)
|
||||
45
base_framework/base_config/db_config.ini
Normal file
45
base_framework/base_config/db_config.ini
Normal file
@@ -0,0 +1,45 @@
|
||||
[Mysql]
|
||||
db_test_host = mysql.qa.huohua.cn
|
||||
db_all_school_test_host = qa-my-asc.mysql.rds.aliyuncs.com
|
||||
db_hhi_test_host = qa-my-hhi.mysql.rds.aliyuncs.com
|
||||
db_test_port = 3306
|
||||
db_test_dbname = crmthirdparty
|
||||
db_all_school_test_dbname = hulk_content_audit
|
||||
db_hhi_test_dbname = hhi_account
|
||||
db_test_user = qa-dev
|
||||
db_test_password = jaeg3SCQt0
|
||||
db_charset = utf8
|
||||
db_min_cached = 10
|
||||
db_max_cached = 20
|
||||
db_max_shared = 20
|
||||
db_max_connecyions = 100
|
||||
db_blocking = True
|
||||
db_max_usage = 5
|
||||
db_set_session = None
|
||||
|
||||
|
||||
|
||||
[MONGODB]
|
||||
mongo_host = 10.250.100.106
|
||||
mongo_port = 20007
|
||||
mongo_user = hulk_teach_marketing_rw
|
||||
mongo_passowrd = MmEzZmqatest
|
||||
|
||||
[PgSql]
|
||||
db_test_host = mysql.qa.huohua.cn
|
||||
db_all_school_test_host = qa-my-asc.mysql.rds.aliyuncs.com
|
||||
db_hhi_test_host = qa-my-hhi.mysql.rds.aliyuncs.com
|
||||
db_test_port = 3306
|
||||
db_test_dbname = crmthirdparty
|
||||
db_all_school_test_dbname = hulk_content_audit
|
||||
db_hhi_test_dbname = hhi_account
|
||||
db_test_user = qa-dev
|
||||
db_test_password = jaeg3SCQt0
|
||||
db_charset = utf8
|
||||
db_min_cached = 10
|
||||
db_max_cached = 20
|
||||
db_max_shared = 20
|
||||
db_max_connecyions = 100
|
||||
db_blocking = True
|
||||
db_max_usage = 5
|
||||
db_set_session = None
|
||||
14
base_framework/base_config/env_choose.ini
Normal file
14
base_framework/base_config/env_choose.ini
Normal file
@@ -0,0 +1,14 @@
|
||||
[run_evn_name]
|
||||
current_business = hh
|
||||
current_evn = qa
|
||||
current_team = ZZYY
|
||||
|
||||
[run_jira_id]
|
||||
huohua-podenv = qa
|
||||
|
||||
[is_ip_from_ini]
|
||||
is_ip_from_ini = false
|
||||
|
||||
[run_user_name]
|
||||
default_user = jwadmin
|
||||
|
||||
2
base_framework/base_config/swagger_url.ini
Normal file
2
base_framework/base_config/swagger_url.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[ZZYY]
|
||||
zhyy = http://39.170.26.156:8380/swagger-ui/index.html#/
|
||||
Reference in New Issue
Block a user