From e1c5503114deef954731904695cd40dccfcef555 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 23 Apr 2020 11:36:50 +0200 Subject: Support logout and add id and pass tests --- .../tests/fixtures/peertube-plugin-test-id-pass-auth-one/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/tests/fixtures/peertube-plugin-test-id-pass-auth-one') diff --git a/server/tests/fixtures/peertube-plugin-test-id-pass-auth-one/main.js b/server/tests/fixtures/peertube-plugin-test-id-pass-auth-one/main.js index 4755ed643..9fc12a3e3 100644 --- a/server/tests/fixtures/peertube-plugin-test-id-pass-auth-one/main.js +++ b/server/tests/fixtures/peertube-plugin-test-id-pass-auth-one/main.js @@ -3,7 +3,7 @@ async function register ({ peertubeHelpers }) { registerIdAndPassAuth({ - type: 'id-and-pass', + authName: 'spyro-auth', onLogout: () => { peertubeHelpers.logger.info('On logout for auth 1 - 1') @@ -16,7 +16,7 @@ async function register ({ return Promise.resolve({ username: 'spyro', email: 'spyro@example.com', - role: 0, + role: 2, displayName: 'Spyro the Dragon' }) } @@ -26,7 +26,7 @@ async function register ({ }) registerIdAndPassAuth({ - type: 'id-and-pass', + authName: 'crash-auth', onLogout: () => { peertubeHelpers.logger.info('On logout for auth 1 - 2') @@ -39,7 +39,7 @@ async function register ({ return Promise.resolve({ username: 'crash', email: 'crash@example.com', - role: 2, + role: 1, displayName: 'Crash Bandicoot' }) } -- cgit v1.2.3