(2023-05-13) 1. 封装Python脚本:使用pymysql+sshtunnel,支持通过SSH隧道方式链接mysql数据库 2. 调整用例参数,支持数据库断言。可以通过assert_sql用例参数进行数据库断言

This commit is contained in:
floraachy
2023-05-18 08:52:20 +08:00
parent 950675b751
commit 476420d3f4
9 changed files with 345 additions and 94 deletions
+22
View File
@@ -68,4 +68,26 @@ ding_talk = {
# ------------------------------------ 企业微信相关配置 ----------------------------------------------------#
wechat = {
"webhook_url": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=********",
}
# ------------------------------------ 数据库相关配置 ----------------------------------------------------#
db_info = {
"test": {
"db_host": "xx.xx.xx.xx",
"db_port": 3306,
"db_user": "root",
"db_pwd": "**********",
"db_database": "test**********",
"ssh": True,
"ssh_host": "xx.xx.xx.xx",
"ssh_port": 3306,
"ssh_user": "root",
"ssh_pwd": "**********"
},
"live": {
}
}