Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: optimize for uploading testcases to SQLAuto server #4667

Merged
merged 3 commits into from
Sep 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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