116 Commits (f0d192fbfdc9a5e9c2c9581f2ce9673a51ec97c1)

Author SHA1 Message Date
Barış Soner Uşaklı 85c60316ed
upgrade to winston 3.1, closes #6590 (#6838)
* upgrade to winston 3.1

* fix winston in web/install and tests
6 years ago
Barış Soner Uşaklı d4db8c2d42 removed reset 6 years ago
Barış Soner Uşaklı 77beaf2e15
Allow local login,closes #6800 (#6803)
* WIP

* reset groups cache after every suite
6 years ago
Ben Lubar 33228bb7fe PostgreSQL database driver (#5861)
* [test/database/list] Fix test list 4 being used in two different tests

* [database/postgres] PostgreSQL database driver

* [database/postgres] Make transactions work based on continuation scope.

* [database/postgres] Implement nested transactions

* eslint --fix

* Add database changes from earlier this week to the PostgreSQL driver.

* Fix typo

* Fix postgres.incrObjectFieldBy returning undefined instead of null when given NaN

* [database/postgres] Fix sortedSetsCard returning an array of strings.

* Update socket.io postgres adapter

* Fix PostgreSQL erroring when multiple updates are made to the same sorted set entry in a single operation.

Add a test case to catch this error.

* Fix lint errors.

* Only prune sessions on one instance in a cluster to avoid deadlocks.

They're caught and handled by the database server, but they spam the logs.

* Fix arguments.slice.
7 years ago
Barış Soner Uşaklı a7267df404 closes #6464 7 years ago
Barış Soner Uşaklı 0070f5c1b2 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 7 years ago
Peter Jaszkowiak eaae5b52cd ACP quick actions (#6374)
* ACP quick actions

- Moved restart, build & restart, and logout into separate buttons
- Moved buttons on mobile into the side menu
- Added version and upgrade alert to header / mobile menu
- Moved version checking to server-side with a cache for rate limiting
- Changed "reload" translations to "rebuild and restart"

* Change info alert to black-on-white to match focused search bar

* Fix tests

* Fallback for failed fetch of latest version
7 years ago
Barış Soner Uşaklı e1c6761087 closes #6258 7 years ago
Barış Soner Uşaklı 0a5d16d1cd closes #6284 7 years ago
Barış Soner Uşaklı ff6c6a54c1 make upload permissions global
give upload image permission to registered users on install
add global privileges to app.user.privileges for client side use
7 years ago
caoyi da5997a06e Fix typo (#6135)
Fix typo
7 years ago
Barış Soner Uşaklı 557dfd5b47 testing new socket.io-client extraHeaders (#5985)
* testing new socket.io-client extraHeaders

* change mongodb installation
7 years ago
Julian Lam 303f1146b2 added upload_url to nconf vars @pitaj 8 years ago
Peter Jaszkowiak dc324b36b2 Add test for Plugins.showInstalled 8 years ago
Julian Lam d98b3e8056 automatically lowercasing env vars in nconf, fixes #2544 8 years ago
Barış Soner Uşaklı 271c10c9d7 dont create indices after every test 8 years ago
Peter Jaszkowiak b171f3072b Fix many "duplicate key" errors
- Reset defaults after every test
- Remove individual `after(db.emptydb)` calls
- Fix async.every in groups test
- Update plugin list in socket tests
8 years ago
Baris Usakli 062bced3dd cleanup and tests 8 years ago
Peter Jaszkowiak 3dd282b7b9 Load languages with other plugin data
- Added more tests
- Should speed up builds
- Allows for incremental builds in the future
8 years ago
Peter Jaszkowiak cd1f0ddc79 Resolve merge conflicts 8 years ago
Barış Soner Uşaklı 7fb45cc148 more tests 8 years ago
Barış Soner Uşaklı fd0043f36a more tests 8 years ago
Peter Jaszkowiak 90da6d889d Only load necessary plugin data
Fix tests to work in this case
Add more verbose messages to plugins/data
8 years ago
Barış Soner Uşaklı 6fcd12eafe fix tests 8 years ago
Peter Jaszkowiak c18808fdeb ESlint no-useless-concat, no-mixed-spaces-and-tabs 8 years ago
Peter Jaszkowiak fdf4f873bf ESlint eqeqeq
and require-jsdoc, no-negated-condition
8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak feb8405f95 ESlint eol-last 8 years ago
Peter Jaszkowiak f3a8256f35 ESlint strict 8 years ago
Peter Jaszkowiak a038c66549 ESlint quotes 8 years ago
Peter Jaszkowiak 604358ecc4 ESlint keyword-spacing, no-multi-spaces 8 years ago
Peter Jaszkowiak 2e031f3759 ESlint comma-spacing 8 years ago
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces 8 years ago
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments 8 years ago
Peter Jaszkowiak 2ba46808a1 ESlint one-var, fix comma-dangle 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
Peter Jaszkowiak aaacdb8413 Fix #5416, uploads path config setting
- Finish moving uploads route to `/assets/uploads`
- Remove `upload_url` config setting, it was broken
8 years ago
Peter Jaszkowiak 360a35d0a6 Resolve merge conflicts 8 years ago
Peter Jaszkowiak 553567c3b2 Refactor `nodebb`, move `build.js`, add `--dev` 8 years ago
Peter Jaszkowiak 001aa3d1a8 Fix tests, npm Windows fixes 8 years ago
Dominic Lennon 691b46d38b Fixing lint issues 8 years ago
Dominic Lennon f0add97cf9 Fixing tests 8 years ago
Peter Jaszkowiak 05b68391dd Use `/assets` for client assets
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`
8 years ago
barisusakli 4b6e4f085d more tests
group cover upload tests
registration approval queue tests
8 years ago
barisusakli 49267d54b7 topics unread tests 8 years ago
barisusakli 2f92ce1527 check deps on test 8 years ago
barisusakli db14c29e41 socket.io/categories tests 8 years ago
barisusakli 9796f54580 analytics tests, reduce bcrypt rouds for tests 8 years ago
barisusakli e86db04631 #5211 run build step before tests
move build to its own file
8 years ago
barisusakli 553ee7dcdd more chat tests 8 years ago
Sergii Paryzhskyi e515b791da Fix eslint rules (#5117)
* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
8 years ago
barisusakli 4a0f67afdc search tests
new method emptydb
use emptydb instead of flushdb, flushdb  removes indices for mongo which
breaks search tests
initialize meta.config properly in tests
enable nodebb-plugin-dbsearch for tests
8 years ago
barisusakli 52a0430603 cleanup console.logs 8 years ago
barisusakli 13719fccfe testing on nodev6 8 years ago
barisusakli 1a63672e66 more test fixes 8 years ago
barisusakli 15d948894d fix typo 8 years ago
barisusakli 292055d322 show test db info before test 8 years ago
barisusakli d1fb4909ba one more try catch for node5/6 8 years ago
barisusakli 817cd29f00 try require from root 8 years ago
barisusakli 12f366f4b4 more tests
register/login/logout tests
ability to test socket.io emits for logged in users
8 years ago
barisusakli b8a3ca98cb added callback to webserver.listen
wait for webserver to be ready to run tests
added topic restore test
added test to load topic via controller
8 years ago
barisusakli ae9b5654d3 set isPrimary and isCluster 8 years ago
barisusakli e462fadd94 init express/webserver for tests 8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 8 years ago
HeeL 3fa1c1f927 Fix space-infix-ops linter rule 8 years ago
HeeL 4c6a75d85c Rename tests folder to test to follow standards 8 years ago