diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-23 11:36:50 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-05-04 16:21:39 +0200 |
commit | e1c5503114deef954731904695cd40dccfcef555 (patch) | |
tree | 72cec4ee691a3362a7d024dc830d215a6b2c800a /server/tests/fixtures/peertube-plugin-test-id-pass-auth-one | |
parent | 8dc8a34ee8428e7657414115d1c137592efa174d (diff) | |
download | PeerTube-e1c5503114deef954731904695cd40dccfcef555.tar.gz PeerTube-e1c5503114deef954731904695cd40dccfcef555.tar.zst PeerTube-e1c5503114deef954731904695cd40dccfcef555.zip |
Support logout and add id and pass tests
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-id-pass-auth-one')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-id-pass-auth-one/main.js | 8 |
1 files changed, 4 insertions, 4 deletions
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 ({ | |||
3 | peertubeHelpers | 3 | peertubeHelpers |
4 | }) { | 4 | }) { |
5 | registerIdAndPassAuth({ | 5 | registerIdAndPassAuth({ |
6 | type: 'id-and-pass', | 6 | authName: 'spyro-auth', |
7 | 7 | ||
8 | onLogout: () => { | 8 | onLogout: () => { |
9 | peertubeHelpers.logger.info('On logout for auth 1 - 1') | 9 | peertubeHelpers.logger.info('On logout for auth 1 - 1') |
@@ -16,7 +16,7 @@ async function register ({ | |||
16 | return Promise.resolve({ | 16 | return Promise.resolve({ |
17 | username: 'spyro', | 17 | username: 'spyro', |
18 | email: 'spyro@example.com', | 18 | email: 'spyro@example.com', |
19 | role: 0, | 19 | role: 2, |
20 | displayName: 'Spyro the Dragon' | 20 | displayName: 'Spyro the Dragon' |
21 | }) | 21 | }) |
22 | } | 22 | } |
@@ -26,7 +26,7 @@ async function register ({ | |||
26 | }) | 26 | }) |
27 | 27 | ||
28 | registerIdAndPassAuth({ | 28 | registerIdAndPassAuth({ |
29 | type: 'id-and-pass', | 29 | authName: 'crash-auth', |
30 | 30 | ||
31 | onLogout: () => { | 31 | onLogout: () => { |
32 | peertubeHelpers.logger.info('On logout for auth 1 - 2') | 32 | peertubeHelpers.logger.info('On logout for auth 1 - 2') |
@@ -39,7 +39,7 @@ async function register ({ | |||
39 | return Promise.resolve({ | 39 | return Promise.resolve({ |
40 | username: 'crash', | 40 | username: 'crash', |
41 | email: 'crash@example.com', | 41 | email: 'crash@example.com', |
42 | role: 2, | 42 | role: 1, |
43 | displayName: 'Crash Bandicoot' | 43 | displayName: 'Crash Bandicoot' |
44 | }) | 44 | }) |
45 | } | 45 | } |