Fix users tests

pull/2937/head
Chocobozzz 2020-07-02 14:23:50 +02:00
parent d10538b47d
commit 1e904cde34
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 9 additions and 9 deletions

View File

@ -87,8 +87,8 @@ import:
http:
enabled: true
proxy:
enabled: true
url: "http://188.165.225.149:7899"
enabled: false
url: ""
torrent:
enabled: true

View File

@ -205,7 +205,7 @@ async function createUser (req: express.Request, res: express.Response) {
Hooks.runAction('action:api.user.created', { body, user, account, videoChannel })
return res.status(201).json({
return res.json({
user: {
id: user.id,
account: {

View File

@ -29,7 +29,7 @@ function createUser (parameters: CreateUserArgs) {
videoQuota = 1000000,
videoQuotaDaily = -1,
role = UserRole.USER,
specialStatus = 201
specialStatus = 200
} = parameters
const path = '/api/v1/users'

View File

@ -53,7 +53,7 @@ externalDocs:
tags:
- name: Accounts
description: >
Accounts encompass remote accounts discovered across the federation,
Accounts encompass remote accounts discovered across the federation,
and correspond to the main Actor, along with video channels a user can create, which
are also Actors.
@ -484,7 +484,7 @@ paths:
tags:
- Users
responses:
'201':
'200':
description: user created
content:
application/json:
@ -3879,11 +3879,11 @@ components:
files:
type: array
items:
$ref: '#/components/schemas/FileRedundancyInformation'
$ref: '#/components/schemas/FileRedundancyInformation'
streamingPlaylists:
type: array
items:
$ref: '#/components/schemas/FileRedundancyInformation'
$ref: '#/components/schemas/FileRedundancyInformation'
VideoImportStateConstant:
properties:
id:
@ -5265,4 +5265,4 @@ components:
content:
application/json:
schema:
$ref: '#/components/schemas/VideoListResponse'
$ref: '#/components/schemas/VideoListResponse'