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
8e731d6280
Backport ACL computation improvements
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-04 03:27:30 -04:00
Roberto Rosario
d2ab2ec91f
Fix the permissions app tests
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-29 01:09:27 -04:00
Roberto Rosario
74c97314d7
Code style cleanups
...
Add keyword arguments. Sort arguments and models.
Move literals to their own module. Prepend handler_ to
signal handlers.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-26 03:32:35 -04:00
Roberto Rosario
5574aaec9e
Add role create and edit events
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-24 23:19:04 -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
f3413b4283
Backport and remove code from the permission app
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-13 01:43:03 -04:00
Roberto Rosario
1f5dffa0e5
Remove permission grant and revoke permissions
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-11 22:07:30 -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
a99b044555
Code style improvement. Test code consolidation. PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-10-06 02:13:36 -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
68d96fae7e
Update the role permission edit view require the permission grant or permission revoke permissions for the selected role.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-03 00:35:09 -04:00
Roberto Rosario
cf99201b89
Add support for Role ACLs.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-02 02:36:20 -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
ec223dd54d
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-27 02:08:39 -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
40ab6b6f9f
Fix role creation API not returning id of new role. GitLab issue #390 .
...
Thanks to @lokeshmanmode for the find.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-17 03:00:58 -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
e2c8f7b3fc
Add complete role API endpoints (role create, patch, put, delete,
...
add/update role groups, add/update role permissions).
2017-01-30 18:33:06 -04:00
Roberto Rosario
5ea31554bc
Update and fix failing tests.
2017-01-14 03:08:32 -04:00
Roberto Rosario
d05345ed3c
Update tests to match generic CBV success message.
2016-03-08 02:37:22 -04:00
Roberto Rosario
cbc1f12bf6
Simplify tests teatDown method.
2015-11-01 02:57:55 -04:00
Roberto Rosario
df7a5c6e1c
Reorganize tests literals and move then to their respective apps.
2015-10-20 21:14:07 -04:00
Roberto Rosario
90a1ecb826
Add permissions app views tests.
2015-10-15 19:37:04 -04:00
Roberto Rosario
5da248375f
Move test magic numbers and strings into test.literals.py.
2015-10-08 02:57:42 -04:00
Roberto Rosario
4432cb5c2e
Add view permission for the smart settings app. It is no longer required to be a super admin or staff user to see the setting values.
2015-08-25 17:35:31 -04:00
Roberto Rosario
4fb86fba14
Re-estructure tests to cleanup the apps' namespace.
2015-08-18 23:06:26 -04:00