Ilan Biala
62095a1114
fix(test): Update Mocha, mock-fs, and fix Node 5 support
2016-02-10 20:47:11 -05:00
Joris Willems
9cd4ceca46
feat(config): Upgrade angular-bootstrap 0.13 to 1.0
...
Many issues arise when using angular-bootstrap 0.13. Migration to 1.0 is
straightforward, offers a more stable interface, extra directives and fixes
many bugs.
Migration guide:
https://github.com/angular-ui/bootstrap/wiki/Migration-guide-for-prefixes
Fixes #1142
Fixes #1131
2016-01-17 22:06:34 +01:00
jloveland
33258f1314
feat(users): Supporting valid email according to HTML5 and RFC 822
...
Supporting valid email (i.e. root@admin) according to HTML5 and RFC 822
proposed by @jloveland
Fixes #934
2015-11-30 21:47:13 -05:00
mleanos
a871c92556
Duplicate CRUD Test - Profile Picture
...
Removes a duplicate User CRUD test for Profile Picture.
There are two reasons for this commit.
1) Duplicate of
https://github.com/meanjs/mean/blob/master/modules/users/tests/server/user.server.routes.tests.js#L833-L848
2) This test is problematic in Windows environment.
Related to:
https://github.com/visionmedia/supertest/issues/230
https://github.com/visionmedia/supertest/issues/258
The latter may be an issue with the `.attach` method not completely
loading the file into memory before the 400 status response is sent back
due to no User logged in.
2015-10-28 22:57:28 -07:00
gustavodemari
7ecf9337ce
updating profile upload with a new version of multer
2015-10-18 20:56:12 -02:00
Ilan Biala
cc486d54c5
Merge pull request #910 from jloveland/hide-password-validator
...
Hide the password strength progress when the field is empty
2015-10-16 23:34:55 -04:00
Ilan Biala
0323696eaf
Format code according to ESLint rules
2015-10-16 20:52:31 -04:00
jloveland
65140442f0
adding tests for directives
2015-10-13 23:23:52 -04:00
Liran Tal
8a12f76a19
Merge pull request #972 from mleanos/mocha-global-timeout-grunt
...
Global Mocha timeout
2015-10-13 08:39:48 +03:00
Liran Tal
0017886d6e
updating travis to support installing a local mail server
2015-10-11 23:19:20 +03:00
Liran Tal
eb7c4f8e91
adding more API tests
2015-10-11 23:19:20 +03:00
mleanos
037878b4ba
Global Mocha timeout
...
Added the timeout option to the Mocha grunt task; set to 10000.
Removed the individual test suite timeouts, for all server tests.
Also, added global timeout for Mocha gulp task.
2015-10-10 23:52:08 -07:00
Liran Tal
3cfd978e8a
Merge pull request #922 from lirantal/feature/travis-add-node-v4-gcc-update
...
NodeJS v4 support - fixing the failed build
2015-10-06 14:22:47 +03:00
Liran Tal
b7a57abd30
adding the required support to properly build the nodejs v4 edition
...
updating grunt-node-inspector version to compatible version with nodejs v4
2015-10-06 14:09:04 +03:00
Ilan Biala
7a9ee53357
Merge pull request #939 from jloveland/e2e-tests-fix
...
Fix grunt and gulp e2e tests, Fixes #929
2015-10-04 12:49:42 -04:00
mleanos
3b375e62d8
Mocha test timeouts [ fixes #955 ]
...
Added a timeout of 10000 ms to each server test file. This is an attempt
to solve the timeout issues that we're experiencing with the Mocha
tests. Especially, this is hoping to address the build fails that are
caused by such timeouts.
Issue is described in https://github.com/meanjs/mean/issues/955
2015-09-30 19:50:07 -07:00
Liran Tal
7fcd4f2ed3
Merge pull request #937 from lirantal/feature/seeddb-refactoring
...
SeedDB Refactoring
2015-09-30 12:55:49 +03:00
jloveland
fdf1ad571b
fixing grunt and gulp e2e tests
2015-09-29 08:21:43 -04:00
Liran Tal
cc80930081
Merge pull request #904 from jloveland/jshint-single-quotes
...
fixing jshint single quotes issues
2015-09-28 23:47:13 +03:00
Liran Tal
988609399a
refactoring the seeddb logic to work with promises all over due to all the async behavior
2015-09-28 11:29:39 +03:00
Ilan Biala
5901b17926
Merge pull request #901 from igorauad/fixRedirection
...
Fix redirection to previous state after required authentication
2015-09-26 14:18:40 -04:00
Liran Tal
b800141c41
Merge pull request #921 from mleanos/dbseed-user-passwords
...
[hotfix] Fixes db seed password bug
2015-09-25 08:37:40 +03:00
mleanos
1c7d74298b
[hotfix] Fixes db seed password bug
...
Fixes the database seeding bug with the password not passing the owasp
test.
Adds a UserSchema static method that generates a random passphrase that passes
the owasp test.
Performed minor refactoring of the database seed configuration to
implement the new UserSchema method.
Added model test for the UserSchema generateRandomPassphrase static method.
2015-09-22 02:23:30 -07:00
Liran Tal
de354ee6d6
adding route tests for user/admin CRUD operations
2015-09-21 20:18:24 +03:00
Liran Tal
1eddc471db
updating comments for tests in code
2015-09-20 18:35:52 +03:00
Igor Freire
2b8bee0c8c
Fix redirection to previous state after required authentication
...
Fixes the issue with the previous state not being recorded, when the
unauthenticated user is redirected to the signin state, when trying to
access a restricted route.
Added a function that stores the provided state & state params, in the
$state.previous object. This has been implemented in the
$stateChangeSuccess event, and the callback of the $state.go transition
when the user is not allowed to access the requested route.
2015-09-19 16:34:17 -03:00
jloveland
a38abd0f8c
fixing jshint issues by requiring single quotes
2015-09-11 12:47:19 -04:00
jloveland
1fd6bb6119
adding stronger password requirements for improving security based on OWASP
2015-09-07 22:11:02 -04:00
mleanos
14b8dd4dce
Fixed User model tests
...
PR #840 changed the global var `user` to `user1`. This was merged and
then #858 was merged, which was still referencing the global var as
`user` in the new *roles* tests. This was causing jshint failures from
the new
This change updates the new *roles* tests to use `user1`
2015-08-30 15:53:29 -07:00
Liran Tal
8335aa7070
Merge pull request #858 from mleanos/admin-users-require-role
...
Admin users require role
2015-08-30 21:55:58 +03:00
Liran Tal
6af137d81a
Merge pull request #840 from lirantal/feature/users_module_tests_%
...
Major Fixing and Refactoring tests
2015-08-30 21:22:28 +03:00
mleanos
263adccd44
User model tests for roles
...
Added tests for the User model's roles field.
Should be able to update existing user with valid roles
Should NOT be able to update existing user WITHOUT a role
Should NOT be able to update existing user with INVALID role
2015-08-28 18:19:33 -07:00
Liran Tal
6db8a4e4fa
Major Fixing and Refactoring tests
...
1. Refactoring variables usage through-out the tests
2. Fixing correct error handler tests were previously these would report a false positive isue
3. Fixing recent unit tests to be added as part of the main save method suite
4. Fixing an issue with the tests which didn't clean the user1 entry in the db and so tests following it would fail regardless of the validation
5. Fixing one test to actually be valid use case
2015-08-26 22:54:08 +03:00
Ryan Hutchison
801547602b
client-side form validation with ng-messages.
...
remove data prefix from attributes.
fix tests
2015-08-25 02:02:18 -04:00
Cody B. Daig
5c287f583b
[fix] Was storing a 6 char password in plain text [ fixes #829 ]
2015-08-20 09:26:07 -07:00
Cody B. Daig
74f58bbbd6
[test] Allow an email with sub domains
2015-08-19 19:08:44 -07:00
Liran Tal
89050d5628
Adding suite of tests for the e-mail validation field in the users model
2015-08-13 21:56:19 +03:00
Liran Tal
463f5b944f
fixing up a user model test which was not setup correctly without the async done() callback, which led to false postivies. Adding timeouts to the test ensures that the test completes in time, otherwise mocha's 2s timeout will fail the test
2015-08-08 00:42:11 +03:00
Liran Tal
c967a98562
refactoring the async nature in the user model tests to account for mocha 2 second timeouts causing travis-ci build fails
2015-08-06 16:49:50 +03:00
Liran Tal
346ebd6a67
re-factoring the server model tests to create user model from schema only during tests, so that we can re-use mongodb's _v versioning fields, and also cleaning up user tests on each test iteration
2015-08-05 14:08:09 +03:00
Ryan Hutchison
ef3a3f9548
formatting reboot (space-2 and consistency)
...
JSCS fixes
update editorconfig
2015-07-31 10:04:02 -04:00
cdriscol
d5ea5c99d2
Adding client test coverage.
2015-07-29 06:51:38 -06:00
Liran Tal
c671f65c47
Merge pull request #693 from lirantal/feature/clean_angular_hashbang_urls
...
Feature/clean angular hashbang urls
2015-07-25 01:06:03 +03:00
Liran Tal
de3b890f9d
removed /#! in user controllers
...
Resolved 0.4.0 related conflicts:
modules/users/server/controllers/users/users.authentication.server.controller.js
2015-07-25 00:39:28 +03:00
Liran Tal
ac35f0fec8
adding couple more tests to confirm users model works as expected
2015-07-24 09:38:49 +03:00
Julien Mazé
c572ed7eec
JSHint test failing because of missing semicolon
...
I just cloned the branch and both gulp and grunt fail on the lint task because of the missing semicolon.
2015-07-12 20:54:59 +02:00
Liran Tal
bf79c17bd0
updating the schema save pre hook so that it checks for a modified version of the password field before it tries to re-calculate the new password to save for the user model
2015-07-12 19:25:40 +03:00
Veikko Karsikko
1897ef985b
Wait for async saving and removing
2015-02-23 09:33:26 +02:00
Christian Berendt
e027f4025b
Add missing newline at the end of text files
...
On Unix it is common to have a newline at the end of text files.
2015-02-16 21:39:55 +01:00
Amos Haviv
ab81d61bd3
New 0.4 version
2014-11-10 23:12:33 +02:00