49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
case_common:
|
|
allure_epic: GitLink接口
|
|
allure_feature: 开源项目模块
|
|
allure_story: 项目
|
|
case_markers:
|
|
- pms
|
|
- pms_repo
|
|
- gitea
|
|
- new_repo
|
|
- usefixtures: gitlink_login
|
|
|
|
# 放置公共依赖 (仅yaml用例支持,excel用例不支持)
|
|
common_dependence:
|
|
teardown:
|
|
interface:
|
|
- gitlink_projects_delete_project_01
|
|
|
|
case_info:
|
|
-
|
|
id: pms_new_repo_01
|
|
title: 正确输入各项必填参数,新建公开项目成功
|
|
severity: critical
|
|
run: True
|
|
url: /api/projects.json
|
|
method: POST
|
|
headers:
|
|
Content-Type: application/json; charset=utf-8;
|
|
cookies: ${cookies}
|
|
cookies:
|
|
request_type: json
|
|
payload:
|
|
user_id: ${env_organization_id}
|
|
name: test_${generate_identifier()}_${generate_identifier()}
|
|
repository_name: ${generate_identifier()}_test
|
|
description:
|
|
files:
|
|
assert_response:
|
|
status_code: 200
|
|
login:
|
|
message: 断言接口返回的login
|
|
expect_value: ${env_enterprise_identifier}
|
|
assert_type: ==
|
|
type_jsonpath: $.login
|
|
assert_sql:
|
|
extract:
|
|
type_jsonpath:
|
|
repo_id: $.id # 项目id
|
|
case_dependence:
|