新增/修改部分用例
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -6,7 +6,6 @@ case_common:
|
||||
- gitlink
|
||||
- repo
|
||||
- dataset
|
||||
- debug
|
||||
- usefixtures: gitlink_login
|
||||
|
||||
# 前提条件:当前存找一个仓库,仓库已经创建数据集
|
||||
|
||||
Reference in New Issue
Block a user