aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/redundancy.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/redundancy.ts')
-rw-r--r--server/tests/api/check-params/redundancy.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/redundancy.ts b/server/tests/api/check-params/redundancy.ts
index f45860e02..908407b9a 100644
--- a/server/tests/api/check-params/redundancy.ts
+++ b/server/tests/api/check-params/redundancy.ts
@@ -186,7 +186,7 @@ describe('Test server redundancy API validators', function () {
186 it('Should fail with an invalid token', async function () { 186 it('Should fail with an invalid token', async function () {
187 await makePutBodyRequest({ 187 await makePutBodyRequest({
188 url: servers[0].url, 188 url: servers[0].url,
189 path: path + '/localhost:' + servers[1].port, 189 path: path + '/' + servers[1].host,
190 fields: { redundancyAllowed: true }, 190 fields: { redundancyAllowed: true },
191 token: 'fake_token', 191 token: 'fake_token',
192 expectedStatus: HttpStatusCode.UNAUTHORIZED_401 192 expectedStatus: HttpStatusCode.UNAUTHORIZED_401
@@ -196,7 +196,7 @@ describe('Test server redundancy API validators', function () {
196 it('Should fail if the user is not an administrator', async function () { 196 it('Should fail if the user is not an administrator', async function () {
197 await makePutBodyRequest({ 197 await makePutBodyRequest({
198 url: servers[0].url, 198 url: servers[0].url,
199 path: path + '/localhost:' + servers[1].port, 199 path: path + '/' + servers[1].host,
200 fields: { redundancyAllowed: true }, 200 fields: { redundancyAllowed: true },
201 token: userAccessToken, 201 token: userAccessToken,
202 expectedStatus: HttpStatusCode.FORBIDDEN_403 202 expectedStatus: HttpStatusCode.FORBIDDEN_403
@@ -216,7 +216,7 @@ describe('Test server redundancy API validators', function () {
216 it('Should fail without de redundancyAllowed param', async function () { 216 it('Should fail without de redundancyAllowed param', async function () {
217 await makePutBodyRequest({ 217 await makePutBodyRequest({
218 url: servers[0].url, 218 url: servers[0].url,
219 path: path + '/localhost:' + servers[1].port, 219 path: path + '/' + servers[1].host,
220 fields: { blabla: true }, 220 fields: { blabla: true },
221 token: servers[0].accessToken, 221 token: servers[0].accessToken,
222 expectedStatus: HttpStatusCode.BAD_REQUEST_400 222 expectedStatus: HttpStatusCode.BAD_REQUEST_400
@@ -226,7 +226,7 @@ describe('Test server redundancy API validators', function () {
226 it('Should succeed with the correct parameters', async function () { 226 it('Should succeed with the correct parameters', async function () {
227 await makePutBodyRequest({ 227 await makePutBodyRequest({
228 url: servers[0].url, 228 url: servers[0].url,
229 path: path + '/localhost:' + servers[1].port, 229 path: path + '/' + servers[1].host,
230 fields: { redundancyAllowed: true }, 230 fields: { redundancyAllowed: true },
231 token: servers[0].accessToken, 231 token: servers[0].accessToken,
232 expectedStatus: HttpStatusCode.NO_CONTENT_204 232 expectedStatus: HttpStatusCode.NO_CONTENT_204