Files
apiautotest/interface/gitlink/projects/test_unlike_project.yaml
2023-12-14 17:07:36 +08:00

46 lines
1.1 KiB
YAML

case_common:
allure_epic: GitLink接口
allure_feature: 开源项目模块
allure_story: 项目
case_markers:
- gitlink
- projects
- gitea
- unlike_project
- usefixtures: get_oauth_token
- skip: 需要有一个已点赞项目,暂时掠过,后续完善
case_info:
-
id: gitlink_projects_like_project_02
title: 取消点赞项目
severity: critical
run: true
url: /api/projects/${project_id}/praise_tread/unlike.json
method: POST
headers:
Content-Type: application/json; charset=utf-8;
Authorization: ${token_type} ${access_token}
cookies:
request_type: json
payload:
files:
assert_response:
status_code: 200
assertStatus:
message: 断言接口返回status=0
expect_value: 0
assert_type: ==
type_jsonpath: $.status
assertMessage:
message: 断言接口返回message
expect_value: success
assert_type: ==
type_jsonpath: $.message
assertPraised:
message: 断言接口返回praised=false
expect_value: false
assert_type: ==
type_jsonpath: $.praised
assert_sql:
extract: