nodebb/test
Julian Lam ccc6118d30
Testing suite integration for openapi spec ()
* feat: testing suite integration for openapi spec

The testing suite now takes the openapi spec into account. It will
check each route defined, make a call to it, and compare the
response with the defined schema. Any mismatches will cause the
test to fail.

* fix(openapi): removed debug stuff from tests

* fix(openapi): fixed some tests

* fix(openapi): added additional check to tests, test fixes

* fix(openapi): better tests, fixed spec errors

* fix(openapi): bad conditional in test

* fix: oops

* fix(openapi): more tests fixing

* fix(openapi): more tests

* fix(openapi): fix some more tests

* fix: verbose'd an info log

* fix: topic pagination route returns schema-optimized pagination block

* fix(openapi): more test/spec fixes

* fix(openapi): accidentally sending in authenticated jar for anon routes

* fix(openapi): more test/spec fixes

* fix(openapi): more spec fixes

* fix: timestampReadable Invalid Date

* fix(openapi): more tests... almost there

* fix(openapi): more tests fixing

* fix(openapi): finally all tests passing

* fix(openapi): added reverse test to compare response to spec

... and fixed all the tests that broke

* fix: remove tests related to group covers, as route is gone

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): object cache is not present for psql

* fix: tests

Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
..
database properly filter /unread /recent /popular /top ()
files Replace jimp with sharp ()
helpers fix: , broken site if no server-side session ()
mocks fix: , upgrade mkdirp to 1.0.x
.eslintrc ESlint no-unused-vars
api.js Testing suite integration for openapi spec ()
authentication.js Async refactor in place ()
batch.js Async refactor in place ()
blacklist.js fix(deps): update to eslint@6
build.js fix: , upgrade mkdirp to 1.0.x
categories.js Add privilege for accessing user information ()
controllers-admin.js fix: dont return flag data to client
controllers.js fix: tests
coverPhoto.js fix:
database.js fix: db info page
defer-logger.js upgrade to winston 3.1, closes ()
emailer.js fixed tests, closes
feeds.js use includes instead of indexOf
file.js refactor: async/await file
flags.js fix: dont return flag data to client
groups.js fix: remove tests related to group covers, as route is gone
image.js up deps
locale-detect.js fix: , autoLocale logic not playing nicely with no-refresh auths ()
messaging.js fix: , update deleted/restored messages
meta.js fix: return null if field does not exist
mocha.opts set cluster to false again
notifications.js fix: tests
pagination.js ESlint object-curly-spacing
plugins.js fix: , bubble errors from static hooks
posts.js feat: add test for change post owner
pubsub.js test pubsub cache
rewards.js fix: change params
search-admin.js style(eslint): match operator-linebreak preferences
search.js add searchonly option to searh api
settings.js more settings tests
socket.io.js fix: event tests
template-helpers.js fix: test
topics.js Testing suite integration for openapi spec ()
translator.js fix: ()
uploads.js fix: remove upload picture test (avatars)
user.js fix: , prevent account deletion
utils.js fix: lint