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

37 lines
831 B
YAML

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