Roberto Rosario
111250fd99
Update usage of "an user"
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-06-15 02:17:55 -04:00
Roberto Rosario
c7e9a4dc99
Add keyword arguments
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-12 02:09:26 -04:00
Roberto Rosario
4617afafb2
Replace get_object_list() with self.object_list
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-12 01:25:53 -04:00
Roberto Rosario
2d819e64c9
Fix failing tests
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-12 01:16:15 -04:00
Roberto Rosario
f69fcbcc82
Move password set views to the authentication app
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-07 03:13:14 -04:00
Roberto Rosario
a0d2000419
Test simplification
...
Unify usage of self.test_document and self.test_documents in
tests.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-07 00:54:59 -04:00
Roberto Rosario
95a1df8072
Backport common mixin and generics improvements
...
* Rename get_object_list to get_source_queryset.
* Add uniqueness validation to SingleObjectCreateView.
* Remove MultipleInstanceActionMixin.
* Backport MultipleObjectMixin improvements.
* Remove ObjectListPermissionFilterMixin.
* Add and improve tests.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-06 02:07:35 -04:00
Roberto Rosario
11e13cea1d
Don't link to the user details of admin or staff
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-30 12:59:55 -04:00
Roberto Rosario
66d5016407
Add user logged in and logged out events
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-29 13:15:33 -04:00
Roberto Rosario
f057d7f81f
Improve event tests
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-28 01:50:19 -04:00
Roberto Rosario
fb1f5dbfe3
User groups, group users views to AddRemoveView
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-25 03:24:33 -04:00
Roberto Rosario
1a71e02aab
Record actor for the user/group create/edit events
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-25 02:30:52 -04:00
Roberto Rosario
eadcf7382b
Add user and group events
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-22 00:14:02 -04:00
Roberto Rosario
0267c79b07
Backport test improvements
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-20 02:39:57 -04:00
Roberto Rosario
97a9d21ac4
Update test login function to accept any argument
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-17 02:01:46 -04:00
Roberto Rosario
36a51eeb73
Switch to full app paths
...
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-05 02:02:57 -04:00
Roberto Rosario
586d41eeff
Backport test case improvements
...
Add random primary key mixin. Split test case code into mixins.
Make the view test case and the API test cases part of the same
class hierachy. Update tests that failed due to the new import
locations.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-02 02:31:35 -04:00
Roberto Rosario
733216448d
Coding style updates.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-10-07 03:50:07 -04:00
Roberto Rosario
7bda5b1fce
Fix user groups view.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-26 16:49:35 -04:00
Roberto Rosario
022c92f775
Add an user test mixin to group user testing. Add test the user managament app for database conversion.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-21 00:12:45 -04:00
Roberto Rosario
a314e59be2
Update user management view tests.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-30 13:11:58 -04:00
Roberto Rosario
d7ecdac6b0
Fix PEP8 warnings.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-06 01:26:06 -04:00
Roberto Rosario
db235a7e78
Add support for users ACLs. Add support for groups ACLs.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-02 04:53:03 -04:00
Michael Price
0a480066df
Reorganize common's base test class.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:20:37 -04:00
Michael Price
96836065a8
Split document.tests.test_views.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:19:07 -04:00
Michael Price
eae881c35a
Update the user management app API tests to test for fail and success scenarios
...
based on permissions and access. The tests were also updated to comform
with the new API test class interface.
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 01:18:58 -04:00
Michael Price
f53350a699
Update the dynamic_search app API tests to conform with the new BaseAPITestCase class interface and
...
to include pass and fail test for each end point.
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 01:11:09 -04:00
Roberto Rosario
68bb791c96
Fix password set tests.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-09-17 04:00:57 -04:00
Roberto Rosario
f09321f6ab
Fix deprecation warnings for Django 1.11 and Django 2.0.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 00:25:18 -04:00
Roberto Rosario
f9eb7d0fb5
Renamed the document type permission namespace from "Document setup" to "Document types".
...
Add support for granting the document type edit, document type delete, and document type view
permissions to individual document type instances.
Improved tests by testing for accesses.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-17 20:41:11 -04:00
Roberto Rosario
80f64d7fcf
Add BaseAPITestCase class that invalidates the permission and smart settings caches.
...
Use BaseAPITestCase for all API test cases.
2017-02-16 21:12:55 -04:00
Roberto Rosario
5f99b123d7
Merge branch 'master' into master_merge
2017-02-03 14:08:34 -04:00
Roberto Rosario
059237e4b9
Backport user creation and update API endpoints improvements.
2017-01-27 02:06:09 -04:00
Roberto Rosario
182386e4ee
Add group API tests.
2017-01-18 03:32:14 -04:00
Roberto Rosario
5ea31554bc
Update and fix failing tests.
2017-01-14 03:08:32 -04:00
Roberto Rosario
4e7559d396
Add settings class cache invalidation method. Update common.tests.base.BaseTestCase
...
class to invalidate settings cache. Update tests using Django's TestCase to
BaseTestCase.
2017-01-14 00:13:35 -04:00
Roberto Rosario
53d356d992
Fix and streamline user_management app tests.
2017-01-07 02:06:24 -04:00
Roberto Rosario
d1c87fe102
Allow MetadataLookup to receive callables. Update the {{ users }} and {{ groups }} metadata lookup options to be callables that return a current list of users and groups and not a queryset. Add integrations test user_managements -> metadata app. Fixes GitLab #290 . Thanks to @camiloforero for finding this one.
2016-05-19 19:33:58 -04:00
Roberto Rosario
8712c6ee37
PEP8 cleanups.
2016-05-17 05:08:21 -04:00
Roberto Rosario
269d8fb5b3
Remove 'is_staff' and 'is_superadmin' from views and serializers. Add user API tests.
2016-05-01 17:06:37 -04:00
Roberto Rosario
a1a0a6da52
PEP8 Cleanups.
2015-10-28 02:14:48 -04:00
Roberto Rosario
10f2bd6226
Improve multi user delete view. Add view tests for the user management app.
2015-10-22 04:23:16 -04:00
Roberto Rosario
df7a5c6e1c
Reorganize tests literals and move then to their respective apps.
2015-10-20 21:14:07 -04:00