Files
apiautotest/interface/gitlink/projects/branch/test_delete_branch.yaml

41 lines
940 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_delete_branch_001
title: 删除一个项目分支
severity:
run: True
url: /api/v1/${env_project_url}/branches/${branch}.json
method: DELETE
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: fork项目成功
assert_type: ==
type_jsonpath: $.message
assert_sql:
extract: