+
+ {
+ const privacies = await server.videos.getPrivacies()
+
+ expect(privacies[1]).to.exist
+ expect(privacies[2]).to.exist
+ expect(privacies[3]).to.exist
+ expect(privacies[4]).to.exist
+ }
+
+ {
+ const playlistPrivacies = await server.playlists.getPrivacies()
+
+ expect(playlistPrivacies[1]).to.exist
+ expect(playlistPrivacies[2]).to.exist
+ expect(playlistPrivacies[3]).to.exist
+ }
+ })
+
+ it('Should be able to reset categories', async function () {
+ await server.plugins.install({ path: PluginsCommand.getPluginTestPath('-video-constants') })
+
+ {
+ const categories = await server.videos.getCategories()
+
+ expect(categories[1]).to.not.exist
+ expect(categories[2]).to.not.exist
+
+ expect(categories[42]).to.exist
+ expect(categories[43]).to.exist
+ }
+
+ await makeGetRequest({
+ url: server.url,
+ token: server.accessToken,
+ path: '/plugins/test-video-constants/router/reset-categories',
+ expectedStatus: HttpStatusCode.NO_CONTENT_204
+ })
+
+ {
+ const categories = await server.videos.getCategories()
+
+ expect(categories[1]).to.exist
+ expect(categories[2]).to.exist
+
+ expect(categories[42]).to.not.exist
+ expect(categories[43]).to.not.exist
+ }