diff options
author | Chocobozzz <me@florianbigard.com> | 2022-09-28 16:00:32 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-09-28 16:00:32 +0200 |
commit | c5f3ff39e5351ac911418c432dac235c5aefec9e (patch) | |
tree | 5b7cbcf7a4436f891515364e735d564948a4503d /server/tests/external-plugins/auth-ldap.ts | |
parent | 1f545e80b4db2aa371be48e3bce7de8f32d557d3 (diff) | |
download | PeerTube-c5f3ff39e5351ac911418c432dac235c5aefec9e.tar.gz PeerTube-c5f3ff39e5351ac911418c432dac235c5aefec9e.tar.zst PeerTube-c5f3ff39e5351ac911418c432dac235c5aefec9e.zip |
Ask password reset/email verif error handling
With a user that uses a plugin authentication
Diffstat (limited to 'server/tests/external-plugins/auth-ldap.ts')
-rw-r--r-- | server/tests/external-plugins/auth-ldap.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/tests/external-plugins/auth-ldap.ts b/server/tests/external-plugins/auth-ldap.ts index d7f155d2a..6f6a574a0 100644 --- a/server/tests/external-plugins/auth-ldap.ts +++ b/server/tests/external-plugins/auth-ldap.ts | |||
@@ -94,6 +94,14 @@ describe('Official plugin auth-ldap', function () { | |||
94 | await server.login.login({ user: { username: 'fry@planetexpress.com', password: 'fry' } }) | 94 | await server.login.login({ user: { username: 'fry@planetexpress.com', password: 'fry' } }) |
95 | }) | 95 | }) |
96 | 96 | ||
97 | it('Should not be able to ask password reset', async function () { | ||
98 | await server.users.askResetPassword({ email: 'fry@planetexpress.com', expectedStatus: HttpStatusCode.CONFLICT_409 }) | ||
99 | }) | ||
100 | |||
101 | it('Should not be able to ask email verification', async function () { | ||
102 | await server.users.askSendVerifyEmail({ email: 'fry@planetexpress.com', expectedStatus: HttpStatusCode.CONFLICT_409 }) | ||
103 | }) | ||
104 | |||
97 | it('Should not login if the plugin is uninstalled', async function () { | 105 | it('Should not login if the plugin is uninstalled', async function () { |
98 | await server.plugins.uninstall({ npmName: 'peertube-plugin-auth-ldap' }) | 106 | await server.plugins.uninstall({ npmName: 'peertube-plugin-auth-ldap' }) |
99 | 107 | ||