Files
apiautotest/data/test_new_project.yaml
T

21 lines
570 B
YAML

- feature: 新建项目
title: 正确输入各项必填参数,新建项目成功
url: /api/projects.json
method: POST
headers: {"Content-Type": "application/json; charset=utf-8;"}
cookies:
pk: json
payload:
"user_id": ${user_id}
"name": ${faker.name().replace(" ", "").replace(".", "")}
"repository_name": ${faker.name().replace(" ", "").replace(".", "")}
files:
extract:
project_id: $.id
project_name: $.name
project_identifier: $.identifier
run: True
assert_response:
eq:
http_code: 200
$.login: ${login}