Wayne Witzel III
16673b1468
Fix the m2m_changed when accessed reversed
2016-03-11 15:59:01 -05:00
Wayne Witzel III
31a461956a
Fixed up m2m_changed for rbac, added User.admin_role
2016-03-11 14:59:47 -05:00
Wayne Witzel III
80013e67bc
Remove UserResource and ensure RolePermission during migration
2016-03-11 10:58:24 -05:00
Wayne Witzel III
94e8058127
Allow org.admin_role.members to administer org.member_role.members
2016-03-11 10:41:42 -05:00
Wayne Witzel III
55e071535b
Added user role creation, accessible methods, and fixed up m2m_update
2016-03-11 07:07:17 -05:00
Wayne Witzel III
09d46f9336
test fixups and re-add can_access
2016-03-09 15:33:12 -05:00
Akita Noek
9c78a85a70
Removed old test assertion
2016-03-09 12:03:20 -05:00
Akita Noek
b486c8d658
Merge branch 'rbac-resource-gfk' into rbac
2016-03-09 10:17:58 -05:00
Akita Noek
9aae2979d9
Replaced our 'Resource' table with a GenericForeignKey in RolePermission
2016-03-09 10:12:05 -05:00
Wayne Witzel III
3df4c4ec93
fixing tests and migration issues
2016-03-08 14:09:16 -05:00
Wayne Witzel III
39a1e893fb
Merge branch 'rbac' of github.com:ansible/ansible-tower into rbac
2016-03-07 08:49:48 -05:00
Akita Noek
e9c3d98a44
Merge branch 'devel' of github.com:ansible/ansible-tower into rbac
2016-03-04 14:02:01 -05:00
Chris Meyers
cfeae51254
deny endpoint access to system tracking feature based on license
2016-03-04 10:14:13 -05:00
Chris Meyers
09c5a189ed
remove forgotten print
2016-03-04 07:56:29 -05:00
Akita Noek
048e65eab3
Add test to help detect incorrect role rebuilding
2016-03-03 13:54:45 -05:00
Chris Meyers
569dd83ff6
mock system tracking feature enabled
2016-03-03 13:53:25 -05:00
Chris Meyers
44618d4956
flake8 fix
2016-03-03 11:45:40 -05:00
Chris Meyers
60484267e7
Merge pull request #1088 from chrismeyersfsu/mongoectomy_cleanup
...
postgres fact cleanup
2016-03-03 08:31:43 -05:00
Akita Noek
c15d48a640
Locked down user/team role listing and role membership management api endpoints
2016-03-02 16:36:16 -05:00
Chris Meyers
b0d228579a
add test case to verify delete logic
2016-03-02 12:57:52 -05:00
Chris Meyers
4fc7fea2b8
follow up and finish option request test
2016-03-01 17:28:29 -05:00
Chris Meyers
4b56ea3d07
postgres fact cleanup
2016-03-01 16:57:22 -05:00
Chris Meyers
88865a2203
flake8 fix
2016-03-01 16:57:00 -05:00
Akita Noek
3db13bc33c
Updated fact tests to use the divergent group fixture
...
A group fixture was created in different ways, one on devel and one on
rbac, this patch just normalizes to the one usage
2016-03-01 15:34:26 -05:00
Akita Noek
ea2cabe4d4
Merge branch 'devel' of github.com:ansible/ansible-tower into merge-devel
2016-03-01 15:09:58 -05:00
Wayne Witzel III
7033542910
Updated Invetory access
2016-03-01 15:01:33 -05:00
Wayne Witzel III
1d179574af
Updated Organization and Credential access
2016-03-01 15:01:33 -05:00
Chris Meyers
b5d8aa52c9
get accepts data param, use it
2016-03-01 10:08:08 -05:00
Akita Noek
f5e311f5ac
Undo some more automatic work that we're suppsoed to test with our migrations
2016-03-01 09:56:43 -05:00
Chris Meyers
5340af2335
updated api tests to use new get fixture format
2016-03-01 09:48:58 -05:00
Akita Noek
73dc061716
Patch up our credential migration tests to undo some automatic work that needs to be done in the migration
2016-03-01 09:47:26 -05:00
Chris Meyers
356b9c99b3
Merge branch 'mongoectomy_implementation' into devel
2016-03-01 08:22:40 -05:00
Akita Noek
e94d441fb0
Add support for following parental changes on save and delete in the RBAC system
2016-02-29 16:59:20 -05:00
Matthew Jones
99ec07b8a5
Merge branch 'notifications_work' into devel
...
* notifications_work: (23 commits)
Updates to notification unit tests after @wwitzel3's feedback
Fix some notifications issues and write some tests
Add notification system documentation
Clean up flake8 related issues
Fixing up some unicode issues
Implement tower ui view url on models
Sanity check and force proper types in admin check
Proper type for in check
Adding migration and base notification type
Add a periodic administrative notification
Refactor message generator
Support notification password field encryption
Notification configuration type checking
Refactor NotificationTemplate to Notifier
Implement irc notification backend
Add webhook notification backend
Pagerduty and Hipchat backends plus some cleanup
Notification serializers, views, and tasks
Implement notification serializer and validations
Notification endpoints and url expositions
...
2016-02-29 16:50:33 -05:00
Matthew Jones
b892ee5f96
Updates to notification unit tests after @wwitzel3's feedback
2016-02-29 13:25:49 -05:00
Matthew Jones
0ee12901fe
Fix some notifications issues and write some tests
...
* Fixes some notifier merging issues
* Fixes some more unicode problems
* Implements unit tests
2016-02-29 12:30:00 -05:00
Akita Noek
46e1839ab1
Merge branch 'rbac' of github.com:ansible/ansible-tower into rbac
2016-02-24 16:14:41 -05:00
Akita Noek
e18592fa87
Merge branch 'devel' into rbac
2016-02-24 16:14:32 -05:00
Wayne Witzel III
5eee8e3a84
Added RBAC sync for Organization.admins
2016-02-24 15:04:21 -05:00
Chris Meyers
7ffe46fc74
add postgres Fact model, update views, tests
...
* awx.main.models Fact added
* view host fact and timeline updated to use new Postgres Fact model instead of Mongo
* Removed license set start Mongo logic
* added View tests
* added Model tests
* Removed mongo fact unit tests
* point at modified jsonbfield that supports sqlite storage driver
* postgresify fact cache receiver
* test OPTIONS endpoint
* Note: single fact view not implemented yet.
2016-02-24 14:38:54 -05:00
Wayne Witzel III
180911dfa8
Added UserResource
2016-02-24 14:09:56 -05:00
Akita Noek
9be9cf9b72
Fixed RBAC migration tests considering new signal handlers that are a bit too helpful during testing
...
We have some signal handlers now that perform work that do work
automatically that we want to explicitly test in our migration path, so
we have to undo some things in order to test the migration code.
2016-02-22 16:50:13 -05:00
Akita Noek
b08809f7cc
Initial RBAC API implementation
2016-02-22 16:21:56 -05:00
Chris Meyers
d70615efbd
bring back meta choice options lost in upgrade
...
* status and launch_type OPTIONS choices were lost in the django + drf
upgrade. This brings them back.
2016-02-22 12:58:35 -05:00
Akita Noek
1e1f49c3eb
Initial unit tests for core rbac functionality
2016-02-22 09:44:00 -05:00
Akita Noek
161f4f22cf
Merge branch 'devel' of github.com:ansible/ansible-tower into merge-devel
2016-02-22 09:37:14 -05:00
Akita Noek
0051464525
Added put,head,options,delete, & patch test fixtures for api related tests
2016-02-18 11:23:31 -05:00
Akita Noek
6aeaec2b76
Switch to resolve in api test fixtures to automatically resolve View's and their arguments
...
Also changed the signature of the post/get methods to better align with
libraries like `requests`
2016-02-18 11:19:27 -05:00
Wayne Witzel III
30f88b6e30
Added redis in-memory fixture for functional tests
2016-02-18 09:51:32 -05:00
Wayne Witzel III
5306eaa98c
more access tests and a Makefile driveby
2016-02-16 21:04:33 -05:00