buildAbsoluteFixturePath,
cleanupTests,
CLICommand,
- doubleFollow,
createSingleServer,
- ImportsCommand,
+ doubleFollow,
+ FIXTURE_URLS,
PeerTubeServer,
setAccessTokensToServers,
testHelloWorldRegisteredSettings,
this.timeout(60000)
- const params = `--target-url ${ImportsCommand.getYoutubeVideoUrl()} --channel-name user_channel`
+ const params = `--target-url ${FIXTURE_URLS.youtube} --channel-name user_channel`
await cliCommand.execWithEnv(`${cmd} import ${params}`)
})
this.timeout(60000)
- const params = `--target-url ${ImportsCommand.getYoutubeVideoUrl()} ` +
+ const params = `--target-url ${FIXTURE_URLS.youtube} ` +
`--channel-name user_channel --video-name toto --nsfw --support support`
await cliCommand.execWithEnv(`${cmd} import ${params}`)
expect(res).to.not.contain('peertube-plugin-hello-world')
})
+
+ it('Should install a plugin in requested version', async function () {
+ this.timeout(60000)
+
+ await cliCommand.execWithEnv(`${cmd} plugins install --npm-name peertube-plugin-hello-world --plugin-version 0.0.17`)
+ })
+
+ it('Should list installed plugins, in correct version', async function () {
+ const res = await cliCommand.execWithEnv(`${cmd} plugins list`)
+
+ expect(res).to.contain('peertube-plugin-hello-world')
+ expect(res).to.contain('0.0.17')
+ })
+
+ it('Should uninstall the plugin again', async function () {
+ const res = await cliCommand.execWithEnv(`${cmd} plugins uninstall --npm-name peertube-plugin-hello-world`)
+
+ expect(res).to.not.contain('peertube-plugin-hello-world')
+ })
})
describe('Manage video redundancies', function () {