aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/plugins.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-07 11:51:09 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commit65e6e2602c0d5521f3a6740f7469bb92830ecb53 (patch)
treef89024ffff1dafb0281ee2fe028e89b95101bd44 /server/tests/cli/plugins.ts
parentbc8090411ddaa8d742ce4de3c83f9dba7bc18e2a (diff)
downloadPeerTube-65e6e2602c0d5521f3a6740f7469bb92830ecb53.tar.gz
PeerTube-65e6e2602c0d5521f3a6740f7469bb92830ecb53.tar.zst
PeerTube-65e6e2602c0d5521f3a6740f7469bb92830ecb53.zip
Introduce config command
Diffstat (limited to 'server/tests/cli/plugins.ts')
-rw-r--r--server/tests/cli/plugins.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/server/tests/cli/plugins.ts b/server/tests/cli/plugins.ts
index 7b8746a5d..e5efae36b 100644
--- a/server/tests/cli/plugins.ts
+++ b/server/tests/cli/plugins.ts
@@ -5,14 +5,12 @@ import { expect } from 'chai'
5import { 5import {
6 cleanupTests, 6 cleanupTests,
7 flushAndRunServer, 7 flushAndRunServer,
8 getConfig,
9 killallServers, 8 killallServers,
10 PluginsCommand, 9 PluginsCommand,
11 reRunServer, 10 reRunServer,
12 ServerInfo, 11 ServerInfo,
13 setAccessTokensToServers 12 setAccessTokensToServers
14} from '../../../shared/extra-utils' 13} from '../../../shared/extra-utils'
15import { ServerConfig } from '../../../shared/models/server'
16 14
17describe('Test plugin scripts', function () { 15describe('Test plugin scripts', function () {
18 let server: ServerInfo 16 let server: ServerInfo
@@ -44,8 +42,7 @@ describe('Test plugin scripts', function () {
44 killallServers([ server ]) 42 killallServers([ server ])
45 await reRunServer(server) 43 await reRunServer(server)
46 44
47 const res = await getConfig(server.url) 45 const config = await server.configCommand.getConfig()
48 const config: ServerConfig = res.body
49 46
50 const plugin = config.plugin.registered 47 const plugin = config.plugin.registered
51 .find(p => p.name === 'test') 48 .find(p => p.name === 'test')
@@ -68,8 +65,7 @@ describe('Test plugin scripts', function () {
68 killallServers([ server ]) 65 killallServers([ server ])
69 await reRunServer(server) 66 await reRunServer(server)
70 67
71 const res = await getConfig(server.url) 68 const config = await server.configCommand.getConfig()
72 const config: ServerConfig = res.body
73 69
74 const plugin = config.plugin.registered 70 const plugin = config.plugin.registered
75 .find(p => p.name === 'test') 71 .find(p => p.name === 'test')