Add plugin API tests

This commit is contained in:
Chocobozzz 2019-07-19 14:36:04 +02:00 committed by Chocobozzz
parent 9b474844e8
commit 09071200c7
19 changed files with 481 additions and 79 deletions

View file

@ -127,6 +127,9 @@ const listAvailablePluginsValidator = [
query('pluginType')
.optional()
.custom(isPluginTypeValid).withMessage('Should have a valid plugin type'),
query('currentPeerTubeEngine')
.optional()
.custom(isPluginVersionValid).withMessage('Should have a valid current peertube engine'),
(req: express.Request, res: express.Response, next: express.NextFunction) => {
logger.debug('Checking enabledPluginValidator parameters', { parameters: req.query })