import { HttpStatusCode, UserAdminFlag, UserRole } from '@shared/models'
import {
cleanupTests,
+ ConfigCommand,
createSingleServer,
killallServers,
makeGetRequest,
await killallServers([ server ])
- const config = {
- smtp: {
- hostname: 'localhost',
- port: emailPort
- }
- }
- await server.run(config)
+ await server.run(ConfigCommand.getEmailOverrideConfig(emailPort))
const fields = {
...baseCorrectParams,
})
})
- it('Should fail without a videoQuota', async function () {
- const fields = omit(baseCorrectParams, [ 'videoQuota' ])
-
- await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields })
- })
-
- it('Should fail without a videoQuotaDaily', async function () {
- const fields = omit(baseCorrectParams, [ 'videoQuotaDaily' ])
-
- await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields })
- })
-
it('Should fail with an invalid videoQuota', async function () {
const fields = { ...baseCorrectParams, videoQuota: -5 }