diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-29 16:16:24 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-10 14:02:41 +0200 |
commit | 5fb2e2888ce032c638e4b75d07458642f0833e52 (patch) | |
tree | 8830d873569316889b8134027e9a43b198cca38f /server/tests/api | |
parent | 62e7be634bc189f942ae51cb4b080079ab503ff0 (diff) | |
download | PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.tar.gz PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.tar.zst PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.zip |
First implem global search
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) |