areHttpImportTestsDisabled,
buildAbsoluteFixturePath,
cleanupTests,
areHttpImportTestsDisabled,
buildAbsoluteFixturePath,
cleanupTests,
const args = { name: 'user_channel', displayName: 'User channel', support: 'super support text' }
await addVideoChannel(server.url, userAccessToken, args)
}
const args = { name: 'user_channel', displayName: 'User channel', support: 'super support text' }
await addVideoChannel(server.url, userAccessToken, args)
}
expect(stdout).to.contain('no instance selected')
})
it('Should add a user', async function () {
this.timeout(60000)
expect(stdout).to.contain('no instance selected')
})
it('Should add a user', async function () {
this.timeout(60000)
- const env = getEnvCli(server)
- let fullServerURL
- fullServerURL = server.url + '/'
- await execCLI(`${env} ${cmd} auth add -u ${fullServerURL} -U user_1 -p super_password`)
+ let fullServerURL = server.url + '/'
+
+ await cliCommand.execWithEnv(`${cmd} auth add -u ${fullServerURL} -U user_1 -p super_password`)
expect(stdout).to.contain(`instance ${server.url} selected`)
})
it('Should remember the user', async function () {
this.timeout(60000)
expect(stdout).to.contain(`instance ${server.url} selected`)
})
it('Should remember the user', async function () {
this.timeout(60000)
describe('Admin auth', function () {
it('Should remove the auth user', async function () {
describe('Admin auth', function () {
it('Should remove the auth user', async function () {
- const env = getEnvCli(server)
-
- await execCLI(`${env} ${cmd} auth del ${server.url}`)
-
- const stdout = await execCLI(`${env} ${cmd} --help`)
+ await cliCommand.execWithEnv(`${cmd} auth del ${server.url}`)
expect(stdout).to.contain('no instance selected')
})
it('Should add the admin user', async function () {
expect(stdout).to.contain('no instance selected')
})
it('Should add the admin user', async function () {
expect(res).to.contain('peertube-plugin-hello-world')
})
it('Should uninstall the plugin', async function () {
expect(res).to.contain('peertube-plugin-hello-world')
})
it('Should uninstall the plugin', async function () {