Files
apiautotest/interface/gitlink/organization/test_new_organization.yaml

44 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 公共参数
case_common:
allure_epic: GitLink接口
allure_feature: 开源项目模块
allure_story: 组织
case_markers:
- gitlink
- projects
- gitea
- new_organization
- usefixtures: get_oauth_token
- skip: 参数image还没处理好暂时略过
# 用例数据
case_info:
-
id: gitlink_projects_new_organization_01
title: 新建组织
severity: critical
run: True
url: /api/organizations.json
method: POST
headers:
Content-Type: application/json; charset=utf-8;
Authorization: ${token_type} ${access_token}
cookies:
request_type: json
payload:
name: ${generate_identifier()} # 组织标识
nickname: ${generate_words()} # 组织名称
description: ${generate_paragraph()} # 组织描述
location: ${generate_city(full=False)} # 组织地区
repo_admin_change_team_access: true # 项目管理员可以添加或移除团队的访问权限
image: ${} # 组织图片
visibility: common # 组织可见性默认值common
files:
assert_response:
status_code: 200
assert_id_in_response:
message: 断言响应数据中存在id字段
assert_type: contains
expect_value: id
assert_sql:
extract: