You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Julian Lam ccc6118d30
Testing suite integration for openapi spec (#8263)
* 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>
5 years ago
..
admin refactor: change to const/let 5 years ago
categories feat: #7964, change all categories at once 6 years ago
cli fix(deps): bump dependencies (#8239) 5 years ago
controllers Testing suite integration for openapi spec (#8263) 5 years ago
database Testing suite integration for openapi spec (#8263) 5 years ago
groups fix: lint 5 years ago
messaging Testing suite integration for openapi spec (#8263) 5 years ago
meta fix: path.resolve to logs file 5 years ago
middleware fix: lint 5 years ago
navigation Testing suite integration for openapi spec (#8263) 5 years ago
plugins Support package manager: cnpm and pnpm (#8222) 5 years ago
posts Testing suite integration for openapi spec (#8263) 5 years ago
privileges feat: add 2 hooks for modifying privileges 5 years ago
rewards fix: #7958, give rewards one by one 6 years ago
routes fix: remove dead picture upload code #8260 5 years ago
socket.io fix: #8249, don't send move notifications for deleted posts/topics 5 years ago
topics Testing suite integration for openapi spec (#8263) 5 years ago
upgrades fix: don't touch objects that don't have the required fields 6 years ago
user Testing suite integration for openapi spec (#8263) 5 years ago
views feat: manifest.json improvements from #8126 (#8264) 5 years ago
widgets feat: #7090, abililty to hide widgets 6 years ago
analytics.js fix: logic for determining dailyStats hour vars 5 years ago
batch.js refactor: async/await file 6 years ago
cache.js feat: increase size of local cache 6 years ago
coverPhoto.js refactor: async/await file 6 years ago
emailer.js feat: displaying one-click unsubscribe link in email footer (#8024) 6 years ago
events.js #8115 - log post owner changes (#8117) 5 years ago
file.js fix: #8134, upgrade mkdirp to 1.0.x 5 years ago
flags.js Testing suite integration for openapi spec (#8263) 5 years ago
image.js refactor: async/await image.js 6 years ago
install.js feat: show error if json is invalid 5 years ago
languages.js fix: remove useless catchs and empty line 6 years ago
logger.js Provide more error information to logs 8 years ago
notifications.js fix: #8078, dont mark notifications read without a mergeId 5 years ago
pagination.js fix: #7468 6 years ago
password.js refactor: password async/await 6 years ago
prestart.js fix(style): requiring parens in block bodies 6 years ago
promisify.js fix: remove left over code, use proper names 6 years ago
pubsub.js test pubsub 7 years ago
search.js refactor: remove hook assign 6 years ago
settings.js closes #5008 7 years ago
sitemap.js fixes sitemap base url issue when using with subfolder (#8247) 5 years ago
social.js Async refactor in place (#7736) 6 years ago
start.js fix: #7940, run upgrade scripts on startup 6 years ago
translator.js Make utils and translator easier to require 8 years ago
upgrade.js fix: lint 5 years ago
utils.js Make utils and translator easier to require 8 years ago
webserver.js fix: #8142, broken site if no server-side session (#8148) 5 years ago