Julian Lam
bd5839639d
fix: http 200 test for api routes
4 years ago
Julian Lam
d6f60f4502
fix: broken test after sorted-lists logic change
4 years ago
Barış Soner Uşaklı
5bc1f5b4e8
fix : #9231 , fix redis pubsub connection
...
regression from fdfbc90255
4 years ago
Barış Soner Uşaklı
d41ce87334
fix: removed object routes
4 years ago
Barış Soner Uşaklı
647d3ba810
fix: removed methods
4 years ago
Julian Lam
aa8b84bb56
fix(topic-events): topicEvents.init() test
4 years ago
Julian Lam
449c379d22
feat(topic-events): server-side tests for topic events
4 years ago
Julian Lam
ce7c74b2e1
fix: more tests for #9217
4 years ago
Julian Lam
f2a5cd0b67
fix: tests for #9217
4 years ago
Barış Soner Uşaklı
fdfbc90255
feat: async/await redis connection
4 years ago
Julian Lam
966c4117ec
refactor(api): post move to write API
4 years ago
Barış Soner Uşaklı
1590cdf19f
fix : #9206 , fix double escaped arguments
4 years ago
Julian Lam
e817d5beda
fix: test for topicThumbs
4 years ago
Barış Soner Uşaklı
8ece64ab82
fix: test for https://github.com/NodeBB/NodeBB/pull/9180
4 years ago
Julian Lam
9534d95619
fix: broken test due to change in response code
4 years ago
Julian Lam
0da2843281
feat(api): schema definition for new credential checking route
4 years ago
Barış Soner Uşaklı
0d7dfeeb86
chore: increase test timeout
4 years ago
Julian Lam
77a5adb616
fix(tests): handle nested allOf blocks
4 years ago
Julian Lam
895e3d939e
fix : #9149 , server-side handling of disableChatMessageEditing
4 years ago
Julian Lam
80ee3dfbd1
fix(api): tests
4 years ago
Julian Lam
4fc1337762
feat(api): added schema for email unsubscribe token
4 years ago
Julian Lam
501a7b7774
fix: bug in api path existence test
...
It was only checking for the path, but not ensuring that the method was also defined
4 years ago
Peter Jaszkowiak
2be396ff6e
fix: email testing and settings change from ACP
...
- changing email SMTP settings wouldn't apply the first time
- "Send Test Email" now will report emailer errors in most cases
4 years ago
Julian Lam
bbd97ccb48
fix: subfolder handling in tests
4 years ago
Julian Lam
5f038dffbd
test: changed test a bit to see what is going on
4 years ago
Julian Lam
6062039de2
fix: .flat() not defined in v10, added debug router to exclusion list
4 years ago
Julian Lam
f416dc177a
fix: all tests, wrap up work
4 years ago
Julian Lam
9c2de86a6e
fix: two more routes
4 years ago
Julian Lam
cb32e32ae3
feat: fix more tests, add more routes, update api test suite
4 years ago
Julian Lam
14c51e3c60
feat: add registration/complete route, fix some other tests
4 years ago
Julian Lam
b9a61d2d45
fix: api tests
4 years ago
Julian Lam
a962935743
fix: bad error message for request body api test
4 years ago
Julian Lam
7fc329de2f
fix: modify backreference test to not check router.all() calls
4 years ago
Julian Lam
878ee06715
refactor: schema backreference test to use map instead of reduce, properly check write-api routes
4 years ago
Julian Lam
df8d62ba06
feat: normalize paths before comparison
4 years ago
Julian Lam
dbe85630e3
feat: additional test to ensure any new routes added to express have a corresponding schema doc
...
re: #9103
4 years ago
Barış Soner Uşaklı
2dee3cbe1a
fix: test
4 years ago
Barış Soner Uşaklı
80de572aa1
feat: add user.email.confirmByUid for sso plugins
4 years ago
Julian Lam
f8dff94a15
fix: derp?
4 years ago
Julian Lam
9a4ea04a75
fix: attempted fix for psql test in topic thumbs
4 years ago
Julian Lam
e83baa97a0
fix: bad topic thumbs logic on local thumb upload
4 years ago
Julian Lam
ce8057f389
feat: broken test for bad topic thumbs logic
4 years ago
Julian Lam
3e54b70c06
fix : #9092 , Topic thumbnails do not work with third-party uploaders
4 years ago
Julian Lam
dd448e2b1a
fix: move topic thumb tests to root level, so they actually get run by mocha
4 years ago
Julian Lam
9681557f60
fix: tests for topic thumbs
4 years ago
Julian Lam
c043cfebd6
fix: added back missing topic thumb tests that were removed in last commit
4 years ago
Julian Lam
5ec3b3d083
fix: tests
4 years ago
Julian Lam
c09c238e3f
fix: do not allow thumb deletion route to arbitrarily delete other files in uploads folder
4 years ago
Julian Lam
5950683316
feat: closes #9048 , tests for topic thumbs routes, write API schema
4 years ago
Julian Lam
4152aa552e
feat: tests for topic thumbs
...
Also added some error checking to addThumbs controller
4 years ago
Barış Soner Uşaklı
10cfdd4c5d
fix: remove old utils.slugify tests
4 years ago
Barış Soner Uşaklı
1c45fa1ba5
feat: socket.io 3 changes ( #8845 )
...
* feat: socket.io 3 changes
* feat: replace socketio-wildcard with socket.onAny
up socket.io-redis to 6.x
* feat: remove mongodb/psql socket.io adapters
* feat: show data on fail
* fix: tests
* fix: typo
* fix: logger test fix
* fix: logger.io_close
* chore: up deps
* chore: update readme to reflect redis requirement
* fix: increase timeout show data if test fails
4 years ago
Barış Soner Uşaklı
d2888d1d1f
Category tags ( #8938 )
...
* feat: wip category tags
* fix: tag search
* feat: remove debug
* fix: returns of searchTags and autocomplete
* fix: alpha sort
* fix: redis
* fix: delete zsets on category purge, fix another test
* fix: test
4 years ago
Barış Soner Uşaklı
557f0f5631
feat: use correct code
4 years ago
Barış Soner Uşaklı
f25000cb60
fix: pwd reset test
4 years ago
Barış Soner Uşaklı
5080f35752
fix : #8991 , logout on password reset, dont verify email if password expired
...
dont allow same password on reset
4 years ago
Barış Soner Uşaklı
3cd0c9a476
fix : #8998 , allow guests to use write api to post/reply
4 years ago
Barış Soner Uşaklı
7f5efc3e93
fix : #8992 , set email:confirmed for first admin user
4 years ago
Julian Lam
b596e94826
fix: tests
4 years ago
Barış Soner Uşaklı
77a6dbacc4
fix: api test
4 years ago
Barış Soner Uşaklı
3de692cd52
fix: csv test
4 years ago
Barış Soner Uşaklı
700ef1af97
Merge branch 'master' of https://github.com/NodeBB/NodeBB
4 years ago
Barış Soner Uşaklı
4afdf8bc27
fix: spec, remove old tests
4 years ago
Julian Lam
88a60473d9
fix(spec): breaking tests
4 years ago
Barış Soner Uşaklı
414caac01b
fix : #8957
4 years ago
Barış Soner Uşaklı
5bb5ec4618
fix : #8954 , clear purged replies and toPids ( #8959 )
...
* fix : #8954 , clear purged replies and toPids
* fix: redis test
4 years ago
Barış Soner Uşaklı
e32cd31ec6
fix : #8918
4 years ago
Barış Soner Uşaklı
61c6a762ad
fix: test
4 years ago
Barış Soner Uşaklı
5fa098326f
fix: https://github.com/NodeBB/NodeBB/pull/8685
...
fix category link redirect on cold load
fix helpers.redirect if passed in url is external
fix ajaxify so it doesn't slice first character of external url
4 years ago
Barış Soner Uşaklı
fa4177c3bc
fix : #6407 , fix feeds
...
display latest posts instead of oldest in topic rss feed
fix missing await that was causing rss_tokens to not function
fix feed test
more tests for getTopicWithPosts
4 years ago
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
4 years ago
Opliko
6e43086558
resolve #8444 - Allow nested objects in translations ( #8793 )
...
* feat: #8444 Allow nested objects in translations
* feat: #8444 Allow nested objects in translations
* style: don't change formatting
* fix: don't use the first string match if key isn't finished
* feat: #8444 Allow nested objects in translations
* feat: #8444 Allow nested objects in translations
* style: don't change formatting
* fix: don't use the first string match if key isn't finished
* feat: add nested translations test
4 years ago
Barış Soner Uşaklı
7928036a1b
feat: add test for custom translations
4 years ago
gasoved
3ccebf112e
feat: invites regardless of registration type, invite privilege, groups to join on acceptance ( #8786 )
...
* feat: allow invites in normal registration mode + invite privilege
* feat: select groups to join from an invite
* test: check if groups from invitations have been joined
* fix: remove unused variable
* feat: write API versions of socket calls
* docs: openapi specs for the new routes
* test: iron out mongo redis difference
* refactor: move inviteGroups endpoint into write API
* refactor: use GET /api/v3/users/:uid/invites/groups
Instead of GET /api/v3/users/:uid/inviteGroups
* fix: no need for /api/v3 prefix when using api module
* fix: tests
* refactor: change POST /api/v3/users/invite
To POST /api/v3/users/:uid/invites
* refactor: make helpers.invite awaitable
* fix: restrict invite API to self-use only
* fix: move invite groups controller to write api, +tests
* fix: tests
Co-authored-by: Julian Lam <julian@nodebb.org>
4 years ago
Julian Lam
0a0b4661be
chore: remove debug log
4 years ago
Barış Soner Uşaklı
e4d2764d4c
fix : #8884 , remove header/footer cache
4 years ago
Julian Lam
b3e00489c8
fix: add back test timeout for exports
4 years ago
Julian Lam
bcccb331db
docs: openapi schema for user/group exist check, session deletion
4 years ago
Julian Lam
97842c43d3
test: new api test to ensure each path's parameters are defined in context
4 years ago
Julian Lam
319cfeaa1c
test: updated test name to be more specific
4 years ago
Julian Lam
ee4d90f68f
fix: test breakage from f300c933a5
4 years ago
Julian Lam
f300c933a5
refactor: move session revocation route to write api
4 years ago
Barış Soner Uşaklı
3f5f38dd89
fix: clear header-cache after each suite
4 years ago
Barış Soner Uşaklı
255cf43ea9
fix: show msg on fail
4 years ago
Barış Soner Uşaklı
f1f9b225b0
feat: #8824 , cache refactor ( #8851 )
...
* feat: #8824 , cache refactor
ability to disable caches
ability to download contents of cache
refactor cache modules to remove duplicated code
* fix: remove duplicate hit/miss tracking
check cacheEnabled in getUncachedKeys
4 years ago
Julian Lam
512f6de6de
feat: allow passwords with length > 73 characters ( #8818 )
...
* feat: allow passwords longer than 73 characters
Context: A bcrypt/blowfish limitation means that password length is capped at 72 characters. We can get around this without compromising on security
by hashing all incoming passwords with SHA512, and then sending that to bcrypt.
https://dropbox.tech/security/how-dropbox-securely-stores-your-passwords
* feat: add additional test for passwords > 73 chars
* fix: remove 'password-too-long' error message and all invocations
* test: added test to show that a super long password won't bring down NodeBB
* fix: remove debug log
* Revert "fix: remove 'password-too-long' error message and all invocations"
This reverts commit 1e312bf7ef7e119fa0f1bd3517d756ca013d5e79.
* fix: added back password length checks, but at 512 chars
As processing a large string still uses a lot of memory
4 years ago
Barış Soner Uşaklı
b6d8687837
chore: add info log into tests
4 years ago
Julian Lam
cc1c722092
fix: breaking test from 0db0231cff
...
Also lowered export timeout to 5s
4 years ago
Julian Lam
04185d94c1
fix: indentation
4 years ago
Julian Lam
8e7914ff72
fix: add back derpy 20 second sleep
4 years ago
Julian Lam
14e5c24ec5
fix(openapi): final fixes to schemas
4 years ago
Julian Lam
3ebb3a3479
fix: missing method in test error output
4 years ago
Julian Lam
b092f65d95
fix(writeapi): tests
4 years ago
Julian Lam
843aff582d
refactor: api test suite to accept methods other than GET
4 years ago
Julian Lam
b156b8b573
feat: wip, write api tests framework
...
re-using read api tests if possible
4 years ago
Barış Soner Uşaklı
a05905f196
performance improvements ( #8795 )
...
* perf: nconf/winston/render
cache nconf.get calls
modify middleware.pageView to call next earlier
don't call winston.verbose on every hook see https://github.com/winstonjs/winston/issues/1669
translate header/footer separately and cache results for guests
* fix: copy paste fail
* refactor: style and fire hook only log in dev mode
* fix: cache key, header changes based on template
* perf: change replace
* fix: add missing await
* perf: category
* perf: lodash clone
* perf: remove escapeRegexChars
4 years ago
Barış Soner Uşaklı
1f43e98f8b
fix: allow admins adding users to global moderators
...
add new test
4 years ago
Barış Soner Uşaklı
75024c3580
refactor: remove console.log, extra require
4 years ago
Barış Soner Uşaklı
b26e9b5993
fix : #8595 , dont save escaped data when renaming groups
4 years ago
Barış Soner Uşaklı
8fd3c04480
fix: test
4 years ago
Barış Soner Uşaklı
bf480ee58b
refactor: setupApiRoute signature
4 years ago
Barış Soner Uşaklı
b2ff1594b8
fix: redis hget
...
'node_redis: The HGET command contains a invalid argument type.\n' +
'Only strings, dates and buffers are accepted. Please update your code to use valid argument types.'
4 years ago
Julian Lam
e98285dbbb
fix: reimplementing isPrivilegedOrSelfAndPasswordMatch
4 years ago
Barış Soner Uşaklı
84a179f48c
Merge branch 'master' of https://github.com/NodeBB/NodeBB
4 years ago
Julian Lam
222b4c9533
fix: broken tests from api change
4 years ago
Barış Soner Uşaklı
7d86be2bc2
fix: tests
4 years ago
Barış Soner Uşaklı
e367c5403e
refactor: move groups.leave, fix some tests
4 years ago
Barış Soner Uşaklı
8ae1f81cf4
feat: refactor groups.delete
4 years ago
Barış Soner Uşaklı
d69e503d21
feat: move groups.join to api
4 years ago
Barış Soner Uşaklı
872bacf1c4
Admin/users ( #8762 )
...
* feat: wip admin/users
* feat: more work
* feat: more fixes
* feat: #8662 , verified/unverified user groups
* feat: add filter
* feat: change user search to use filters array
* refactor: remove unused search call
* fix: tests
* fix: cant join system groups
* fix: upgrade script
4 years ago
psychobunny
7b2301ff9c
fix: enable tests
4 years ago
Barış Soner Uşaklı
1ee9384875
fix : #8757 , allow all slashes in category route
4 years ago
Barış Soner Uşaklı
d76229c061
feat: add checkbox tests
4 years ago
Barış Soner Uşaklı
e92d4719cc
feat: add test for serialize/deserialize form
4 years ago
Barış Soner Uşaklı
7db224f689
fix: timeago test for dev/prod
4 years ago
Barış Soner Uşaklı
cecdd2915e
fix: timeago test
4 years ago
Barış Soner Uşaklı
ae5fb103ca
feat: disable write api tests until fixed
4 years ago
Barış Soner Uşaklı
dc29f4dca2
refactor: switch to using slugify module
4 years ago
Barış Soner Uşaklı
3b231360d3
feat: load jquery-form before using
4 years ago
Julian Lam
87e3f26fe4
feat(openapi): schema validation for write api definitions file
4 years ago
Julian Lam
ebcb664b41
fix(writeapi): tests
4 years ago
Julian Lam
229eb2c2d8
fix(writeapi): tests
4 years ago
Julian Lam
41f55b7a5a
fix(writeapi): tests
4 years ago
psychobunny
bf3c1c0878
fix: manifest test + remove duplicate test
4 years ago
psychobunny
5b427a0c3b
feat: option in ACP to configure notification/email delay for chats
4 years ago
Timothy Fike
5078a8df25
ttl/pttl ( #8689 )
4 years ago
Barış Soner Uşaklı
ac43cd8b6f
fix : #8665 , trim email before checking validity
4 years ago
Barış Soner Uşaklı
ccddbb15c9
feat: edit test
4 years ago
Barış Soner Uşaklı
fe2dc3101e
fix: auth tests
4 years ago
Barış Soner Uşaklı
5e8c376115
fix: remove old test
4 years ago
Barış Soner Uşaklı
38d3982bf1
fix : #8418
...
allow updating other profile fields when username isnt being changed
4 years ago
Barış Soner Uşaklı
4be693f2e7
feat: fullname search ( #8641 )
...
* feat: fullname search
* fix: take last element
* fix: attempt to fix psql like query
* feat: upgrade sript, another fix attempt
* fix: psql test
* fix: psql scan
* feat: add debug for test
* feat: test collate
* feat: cleanup
* fix: upgrade script
4 years ago
Barış Soner Uşaklı
9389749b79
feat: sorted set lex test
4 years ago
Julian Lam
885e0ebfde
Revert "fix: bypass nbbpm for now"
...
This reverts commit 33c1bd5f01
.
4 years ago
Barış Soner Uşaklı
5f10d67db5
Remove sounds ( #8617 )
...
* feat: remove sounds
* feat: remove more sounds
* feat: disable sounds plugin
* fix: openapi
4 years ago
Barış Soner Uşaklı
e3a0b4b1c1
fix: tests
4 years ago
Barış Soner Uşaklı
33c1bd5f01
fix: bypass nbbpm for now
4 years ago
Barış Soner Uşaklı
1b7ba2c8f1
feat: force upgrade scripts for test
4 years ago
Julian Lam
f743f92088
refactor: socket posts delete/restore/purge so tid is not necessary ( #8607 )
...
* refactor: socket posts delete/restore/purge so tid is not necessary
* refactor: stop trying to be fancy
* fix: tests to not pass in tid into posts.deletePosts
* fix: some more unnecessary tid passing
4 years ago
Barış Soner Uşaklı
9f9164a9be
fix : #8582
5 years ago
Julian Lam
563937950a
fix: reintroduce 20s delay for api tests
5 years ago
Julian Lam
4737f937ee
feat: expose global/admin privileges to all routes
...
@barisusakli revert if necessary 😬
5 years ago
Julian Lam
e047b72c87
feat: additional tests for #8569
5 years ago
Julian Lam
360aa00d5a
fix: flag list tests due to breaking change in API
5 years ago
Julian Lam
d935f03636
fix(openapi): tests
5 years ago
Julian Lam
334be11382
fix: no-widgets messaging in ACP + copy
5 years ago
Barış Soner Uşaklı
846b7d2430
refactor: change pwd change logic
...
add one more test
5 years ago
Barış Soner Uşaklı
a333cb6ca4
feat: one more test
5 years ago
Barış Soner Uşaklı
ecda4ad8ad
feat: tests for password change
5 years ago
Peter Jaszkowiak
1d170e0c1c
fix : #8547 , remove old deps during upgrade ( #8557 )
5 years ago