+ it('Should display plugin auth information in users list', async function () {
+ const res = await getUsersList(server.url, server.accessToken)
+
+ const users: User[] = res.body.data
+
+ const root = users.find(u => u.username === 'root')
+ const crash = users.find(u => u.username === 'crash')
+ const laguna = users.find(u => u.username === 'laguna')
+
+ expect(root.pluginAuth).to.be.null
+ expect(crash.pluginAuth).to.equal('peertube-plugin-test-id-pass-auth-one')
+ expect(laguna.pluginAuth).to.equal('peertube-plugin-test-id-pass-auth-two')
+ })
+