Files
apiautotest/interface/gitlink/projects/pull_request/test_pull_request.yaml
2024-01-05 16:20:43 +08:00

43 lines
1.1 KiB
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: get_oauth_token
case_info:
-
id: gitlink_repo__pull_request_001
title: 获取合并请求列表
severity:
run: True
url: /api/v1/${env_project_url}/pulls.json
method: GET
headers:
Content-Type: application/json; charset=utf-8;
Authorization: ${token_type} ${access_token}
cookies:
request_type: params
payload:
assign_user_id: # 指派人员ID
issue_tag_id: # 标记ID
keyword: # 搜索关键词
priority_id: # 优先级ID
reviewer_id: # 审查人员ID
sort_by: # 排序字段updated_at 更新时间 created_at 创建时间
sort_direction: # 排序类型。desc 倒序 asc 正序
status: # 合并请求类型0 开启的 1 合并的 2 关闭,不传为全部
version_id: # 里程碑ID
files:
assert_response:
status_code: 200
assertField:
message: 断言接口存在字段total_count
expect_value: total_count
assert_type: contains
assert_sql:
extract: