37 lines
828 B
YAML
37 lines
828 B
YAML
case_common:
|
|
allure_epic: GitLink接口
|
|
allure_feature: 开源项目模块
|
|
allure_story: 分支
|
|
case_markers:
|
|
- gitlink
|
|
- branches
|
|
- gitea
|
|
- usefixtures: get_oauth_token
|
|
- skip: 这个需要仓库管理员角色才能操作,暂时略过
|
|
|
|
case_info:
|
|
-
|
|
id: gitlink_repo_set_default_branch_001
|
|
title: 更新项目默认分支
|
|
severity:
|
|
run: True
|
|
url: /api/${project_url}.json
|
|
method: PUT
|
|
headers:
|
|
Content-Type: application/json; charset=utf-8;
|
|
Authorization: ${token_type} ${access_token}
|
|
cookies:
|
|
request_type: json
|
|
payload:
|
|
default_branch: master
|
|
files:
|
|
assert_response:
|
|
status_code: 200
|
|
assertProjectId:
|
|
message: 断言projectid
|
|
assert_type: ==
|
|
expect_value: ${project_id}
|
|
type_jsonpath: $.id
|
|
assert_sql:
|
|
extract:
|