aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-07-03 10:28:19 +0200
committerRigel Kent <sendmemail@rigelk.eu>2020-07-03 10:29:03 +0200
commitea7337cfdee00894792762660fa3c3412aeccccb (patch)
tree24f2b062b2d21753070e574a6e0fb4f3a531c439 /server/tests
parent8491293b02ed2ec53eb0fa128161ea0b08d3def9 (diff)
downloadPeerTube-ea7337cfdee00894792762660fa3c3412aeccccb.tar.gz
PeerTube-ea7337cfdee00894792762660fa3c3412aeccccb.tar.zst
PeerTube-ea7337cfdee00894792762660fa3c3412aeccccb.zip
add check-params test for user list
fixes #2918
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/check-params/users.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts
index 74f0a2d3f..2fea2cbd5 100644
--- a/server/tests/api/check-params/users.ts
+++ b/server/tests/api/check-params/users.ts
@@ -155,6 +155,18 @@ describe('Test users API validators', function () {
155 await checkBadSortPagination(server.url, path, server.accessToken) 155 await checkBadSortPagination(server.url, path, server.accessToken)
156 }) 156 })
157 157
158 it('Should fail with a bad blocked/banned user filter', async function () {
159 await makeGetRequest({
160 url: server.url,
161 path,
162 query: {
163 blocked: 42
164 },
165 token: server.accessToken,
166 statusCodeExpected: 400
167 })
168 })
169
158 it('Should fail with a non authenticated user', async function () { 170 it('Should fail with a non authenticated user', async function () {
159 await makeGetRequest({ 171 await makeGetRequest({
160 url: server.url, 172 url: server.url,