1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Introduce config command

This commit is contained in:
Chocobozzz 2021-07-07 11:51:09 +02:00
parent bc8090411d
commit 65e6e2602c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
36 changed files with 740 additions and 746 deletions

View file

@ -8,7 +8,6 @@ import {
createUser,
decodeQueryString,
flushAndRunServer,
getConfig,
getMyUserInformation,
loginUsingExternalToken,
logout,
@ -21,7 +20,7 @@ import {
wait,
waitUntilLog
} from '@shared/extra-utils'
import { ServerConfig, User, UserRole } from '@shared/models'
import { User, UserRole } from '@shared/models'
async function loginExternal (options: {
server: ServerInfo
@ -78,9 +77,7 @@ describe('Test external auth plugins', function () {
})
it('Should display the correct configuration', async function () {
const res = await getConfig(server.url)
const config: ServerConfig = res.body
const config = await server.configCommand.getConfig()
const auths = config.plugin.registeredExternalAuths
expect(auths).to.have.lengthOf(8)
@ -288,9 +285,7 @@ describe('Test external auth plugins', function () {
})
it('Should have disabled this auth', async function () {
const res = await getConfig(server.url)
const config: ServerConfig = res.body
const config = await server.configCommand.getConfig()
const auths = config.plugin.registeredExternalAuths
expect(auths).to.have.lengthOf(7)
@ -354,9 +349,7 @@ describe('Test external auth plugins', function () {
})
it('Should display the correct configuration', async function () {
const res = await getConfig(server.url)
const config: ServerConfig = res.body
const config = await server.configCommand.getConfig()
const auths = config.plugin.registeredExternalAuths
expect(auths).to.have.lengthOf(6)