Fix users tests
This commit is contained in:
parent
d10538b47d
commit
1e904cde34
|
@ -87,8 +87,8 @@ import:
|
||||||
http:
|
http:
|
||||||
enabled: true
|
enabled: true
|
||||||
proxy:
|
proxy:
|
||||||
enabled: true
|
enabled: false
|
||||||
url: "http://188.165.225.149:7899"
|
url: ""
|
||||||
torrent:
|
torrent:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,7 @@ async function createUser (req: express.Request, res: express.Response) {
|
||||||
|
|
||||||
Hooks.runAction('action:api.user.created', { body, user, account, videoChannel })
|
Hooks.runAction('action:api.user.created', { body, user, account, videoChannel })
|
||||||
|
|
||||||
return res.status(201).json({
|
return res.json({
|
||||||
user: {
|
user: {
|
||||||
id: user.id,
|
id: user.id,
|
||||||
account: {
|
account: {
|
||||||
|
|
|
@ -29,7 +29,7 @@ function createUser (parameters: CreateUserArgs) {
|
||||||
videoQuota = 1000000,
|
videoQuota = 1000000,
|
||||||
videoQuotaDaily = -1,
|
videoQuotaDaily = -1,
|
||||||
role = UserRole.USER,
|
role = UserRole.USER,
|
||||||
specialStatus = 201
|
specialStatus = 200
|
||||||
} = parameters
|
} = parameters
|
||||||
|
|
||||||
const path = '/api/v1/users'
|
const path = '/api/v1/users'
|
||||||
|
|
|
@ -53,7 +53,7 @@ externalDocs:
|
||||||
tags:
|
tags:
|
||||||
- name: Accounts
|
- name: Accounts
|
||||||
description: >
|
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
|
and correspond to the main Actor, along with video channels a user can create, which
|
||||||
are also Actors.
|
are also Actors.
|
||||||
|
|
||||||
|
@ -484,7 +484,7 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- Users
|
- Users
|
||||||
responses:
|
responses:
|
||||||
'201':
|
'200':
|
||||||
description: user created
|
description: user created
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
@ -3879,11 +3879,11 @@ components:
|
||||||
files:
|
files:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/FileRedundancyInformation'
|
$ref: '#/components/schemas/FileRedundancyInformation'
|
||||||
streamingPlaylists:
|
streamingPlaylists:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/FileRedundancyInformation'
|
$ref: '#/components/schemas/FileRedundancyInformation'
|
||||||
VideoImportStateConstant:
|
VideoImportStateConstant:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
|
@ -5265,4 +5265,4 @@ components:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/VideoListResponse'
|
$ref: '#/components/schemas/VideoListResponse'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user