Files
apiautotest/interface/gitlink/projects/pull_request/test_refuse_merge.yaml
2024-01-09 13:49:07 +08:00

41 lines
968 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
case_common:
allure_epic: GitLink接口
allure_feature: 开源项目模块
allure_story: 合并请求
case_markers:
- gitlink
- pr
- gitea
- usefixtures: gitlink_login
- skip: 前提是有一个开启状态的PR暂时略过
case_info:
-
id: gitlink_repo_refuse_merge_001
title: 拒绝一个合并请求
severity:
run: True
url: /api/v1/${env_repo_owner}/${env_repo_identifier}/edit/${pr_id}/refuse_merge.json
method: POST
headers:
Content-Type: application/json; charset=utf-8;
cookies: ${cookies}
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: 已拒绝
assert_type: ==
type_jsonpath: $.message
assert_sql:
extract: