新增/修改部分用例

This commit is contained in:
floraachy
2024-04-11 16:17:19 +08:00
parent f5fbe11446
commit 98a2994ad7
159 changed files with 4887 additions and 1265 deletions

View File

@@ -0,0 +1,42 @@
case_common:
allure_epic: GitLink接口
allure_feature: 开源项目模块
allure_story: 组织
case_markers:
- gitlink
- projects
- gitea
- organization
- usefixtures: gitlink_login
case_info:
-
id: gitlink_get_organization_detail_01
title: 获取组织详情,获取成功
severity: normal
run: True
url: /api/organizations/${org_identifier}.json
method: GET
headers:
Content-Type: application/json; charset=utf-8;
cookies: ${cookies}
cookies:
request_type: json
payload:
files:
assert_response:
status_code: 200
assert_id_in_response:
message: 断言接口返回的组织标识
assert_type: ==
expect_value: ${org_identifier}
type_jsonpath: $.name
assert_sql:
extract:
case_dependence:
setup:
# 新建组织
interface: gitlink_new_organization_01
teardown:
# 删除组织
interface: gitlink_delete_organization_01

View File

@@ -41,6 +41,9 @@ case_info:
extract:
type_jsonpath:
org_id: $.id
org_identifier: $.name
org_name: $.nickname
case_dependence:
teardown:
# 删除组织
interface: gitlink_delete_organization_01

View File

@@ -6,7 +6,6 @@ case_common:
- gitlink
- repo
- dataset
- debug
- usefixtures: gitlink_login
# 前提条件:当前存找一个仓库,仓库已经创建数据集