Skip to content

Commit

Permalink
Sqlauto (#4667)
Browse files Browse the repository at this point in the history
* feat: upload testcases to SQLAuto server

* fix: optimize for uploading testcases to SQLAuto server
  • Loading branch information
TommyLemon authored Sep 21, 2022
1 parent 5c20d8d commit 3d7ccd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def upload_2_sqlauto(ngql, resp, space_name=None):
"testAccountId": None,
"name": ngql if len(ngql) <= 20 else (ngql[:16] + "..."),
"type": "JSON",
"url": "/" + space_name,
"url": "/" + ("" if space_name is None else space_name),
"request": "{}",
"sqlauto": ngql,
"standard": None,
Expand All @@ -519,8 +519,8 @@ def upload_2_sqlauto(ngql, resp, space_name=None):
"randomId": 0,
"host": "jdbc:nebula://localhost:9669",
"testAccountId": None,
"response": ('{"code":200,msg:"success","list":' + json.dumps(resp.rows) + '}')
if resp.is_succeeded else ('{"code":' + resp.error_code + ',msg:' + resp.error_msg + '}'),
"response": ('{"code":200,"msg":"success","list":' + json.dumps(resp.rows) + '}')
if resp.is_succeeded else ('{"code":' + resp.error_code + ',"msg":' + resp.error_msg + '}'),
"standard": None
},
"tag": "Document" if is_doc else "TestRecord"
Expand Down

0 comments on commit 3d7ccd6

Please sign in to comment.