Files
apiautotest/interface/gitlink/projects/issues/test_new_issue.yaml

54 lines
1.4 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: 疑修Issue
case_markers:
- gitlink
- project
- issue
- new_issue
- usefixtures: gitlink_login
- repeat(20)
case_info:
-
id: project_new_issue_001
title: 项目内新建疑修接口
run: True
severity: normal
url: /api/v1/${project_url}/issues
method: POST
headers: {"Content-Type": "application/json; charset=utf-8;"}
cookies: ${cookies}
request_type: json
payload:
subject: ${generate_company_name(lan='zh', fix='pre')}_${generate_words}
description: ${generate_paragraph}
branch_name: master
status_id: 1
priority_id: ${random.choice([1,2,3,4])}
milestone_id:
issue_tag_ids:
assigner_ids:
attachment_ids: # ["768f752b-2037-4b11-93e4-ccc8d72d2a54", "f5141121-6791-49b7-9334-79ebdbffeb3e"]
- ${attachment_id}
start_date: ${generate_today_date}
due_date: {generate_time_after_week}
receivers_login: []
files:
assert_response:
status_code: 200
assertId:
message: 断言接口响应数据存在id
assert_type: contains
expect_value: id
assert_sql:
extract:
type_jsonpath:
issue_index: $.project_issues_index
issue_title: $.subject
issue_desc: $.description
issue_files: $.attachments..title
case_dependence:
setup:
interface: gitlink_upload_file_01