diff options
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/check-params/config.ts | 12 | ||||
-rw-r--r-- | server/tests/api/server/config.ts | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index 7c96fa762..3f2708f94 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts | |||
@@ -139,6 +139,18 @@ describe('Test config API validators', function () { | |||
139 | dismissable: true, | 139 | dismissable: true, |
140 | message: 'super message', | 140 | message: 'super message', |
141 | level: 'warning' | 141 | level: 'warning' |
142 | }, | ||
143 | search: { | ||
144 | remoteUri: { | ||
145 | users: true, | ||
146 | anonymous: true | ||
147 | }, | ||
148 | searchIndex: { | ||
149 | enabled: true, | ||
150 | url: 'https://search.joinpeertube.org', | ||
151 | disableLocalSearch: true, | ||
152 | isDefaultSearch: true | ||
153 | } | ||
142 | } | 154 | } |
143 | } | 155 | } |
144 | 156 | ||
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index d18a93082..597233588 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts | |||
@@ -340,6 +340,18 @@ describe('Test config', function () { | |||
340 | level: 'error', | 340 | level: 'error', |
341 | message: 'super bad message', | 341 | message: 'super bad message', |
342 | dismissable: true | 342 | dismissable: true |
343 | }, | ||
344 | search: { | ||
345 | remoteUri: { | ||
346 | anonymous: true, | ||
347 | users: true | ||
348 | }, | ||
349 | searchIndex: { | ||
350 | enabled: true, | ||
351 | url: 'https://search.joinpeertube.org', | ||
352 | disableLocalSearch: true, | ||
353 | isDefaultSearch: true | ||
354 | } | ||
343 | } | 355 | } |
344 | } | 356 | } |
345 | await updateCustomConfig(server.url, server.accessToken, newCustomConfig) | 357 | await updateCustomConfig(server.url, server.accessToken, newCustomConfig) |