Commit Graph

38 Commits

Author SHA1 Message Date
Julian Lam
f416dc177a fix: all tests, wrap up work 2020-12-18 14:01:41 -05:00
Julian Lam
9c2de86a6e fix: two more routes 2020-12-18 14:01:41 -05:00
Julian Lam
cb32e32ae3 feat: fix more tests, add more routes, update api test suite 2020-12-18 14:01:41 -05:00
Julian Lam
14c51e3c60 feat: add registration/complete route, fix some other tests 2020-12-18 14:01:41 -05:00
Julian Lam
b9a61d2d45 fix: api tests 2020-12-18 14:01:41 -05:00
Julian Lam
a962935743 fix: bad error message for request body api test 2020-12-18 14:01:41 -05:00
Julian Lam
7fc329de2f fix: modify backreference test to not check router.all() calls 2020-12-18 14:01:41 -05:00
Julian Lam
878ee06715 refactor: schema backreference test to use map instead of reduce, properly check write-api routes 2020-12-18 14:01:41 -05:00
Julian Lam
df8d62ba06 feat: normalize paths before comparison 2020-12-18 14:01:41 -05:00
Julian Lam
dbe85630e3 feat: additional test to ensure any new routes added to express have a corresponding schema doc
re: #9103
2020-12-18 14:01:41 -05:00
Julian Lam
5950683316 feat: closes #9048, tests for topic thumbs routes, write API schema 2020-12-09 10:42:41 -05:00
Barış Soner Uşaklı
77a6dbacc4 fix: api test 2020-11-27 16:15:01 -05:00
Julian Lam
a0b7a82350 feat(api): account deletion routes for the Write API (#8881)
* feat(api): account deletion routes for the Write API

* refactor: rewrite client-side calls to account deletion to use api

* style: apply DRY
2020-11-17 17:29:50 -05:00
Julian Lam
b3e00489c8 fix: add back test timeout for exports 2020-11-12 15:57:36 -05:00
Julian Lam
bcccb331db docs: openapi schema for user/group exist check, session deletion 2020-11-12 15:53:15 -05:00
Julian Lam
97842c43d3 test: new api test to ensure each path's parameters are defined in context 2020-11-12 15:52:33 -05:00
Julian Lam
319cfeaa1c test: updated test name to be more specific 2020-11-12 14:32:49 -05:00
Julian Lam
cc1c722092 fix: breaking test from 0db0231cff
Also lowered export timeout to 5s
2020-10-27 20:37:23 -04:00
Julian Lam
04185d94c1 fix: indentation 2020-10-27 20:37:23 -04:00
Julian Lam
8e7914ff72 fix: add back derpy 20 second sleep 2020-10-27 20:37:23 -04:00
Julian Lam
14e5c24ec5 fix(openapi): final fixes to schemas 2020-10-27 20:37:23 -04:00
Julian Lam
3ebb3a3479 fix: missing method in test error output 2020-10-27 20:37:23 -04:00
Julian Lam
b092f65d95 fix(writeapi): tests 2020-10-27 20:37:23 -04:00
Julian Lam
843aff582d refactor: api test suite to accept methods other than GET 2020-10-27 20:37:23 -04:00
Julian Lam
b156b8b573 feat: wip, write api tests framework
re-using read api tests if possible
2020-10-27 20:37:23 -04:00
Barış Soner Uşaklı
8fd3c04480 fix: test 2020-10-16 20:36:24 -04:00
psychobunny
7b2301ff9c fix: enable tests 2020-10-13 13:10:49 -04:00
Barış Soner Uşaklı
ae5fb103ca feat: disable write api tests until fixed 2020-10-11 22:28:07 -04:00
Julian Lam
87e3f26fe4 feat(openapi): schema validation for write api definitions file 2020-10-09 16:38:43 -04:00
Julian Lam
563937950a fix: reintroduce 20s delay for api tests 2020-08-20 10:40:24 -04:00
Julian Lam
4737f937ee feat: expose global/admin privileges to all routes
@barisusakli revert if necessary 😬
2020-08-20 10:36:11 -04:00
Julian Lam
d935f03636 fix(openapi): tests 2020-08-18 21:42:36 -04:00
Julian Lam
334be11382 fix: no-widgets messaging in ACP + copy 2020-08-18 21:39:10 -04:00
Barış Soner Uşaklı
6aecc1770c feat: increase wait 2020-06-23 00:54:58 -04:00
Barış Soner Uşaklı
f03ca0867b fix: tests 2020-06-23 00:46:59 -04:00
Julian Lam
6b1d1acb48 fix(style): more switch..case 2020-06-03 11:46:57 -04:00
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>
2020-04-23 21:50:08 -04:00
Julian Lam
8387178b25 feat(openapi): merging openapi-test branch into master 2020-04-16 20:39:15 -04:00