6112 Commits

Author SHA1 Message Date
Akita Noek
dc8ec283d2 Merge pull request #1014 from anoek/rbac
Added several related fields to the RBAC API
2016-02-23 16:08:07 -05:00
Akita Noek
606501749c Added several related fields to the RBAC API 2016-02-23 11:49:53 -05:00
Wayne Witzel III
21482fc294 Merge pull request #1011 from anoek/rbac
Initial RBAC API implementation
2016-02-23 10:24:03 -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
73b2105a30 Switch to using const's for system admin / system auditor singleton names 2016-02-22 16:27:11 -05:00
Akita Noek
26dc430c59 Look for and report on transaction errors within our implicit RBAC fields
When a transaction is in a failed state these fields will not be able to
create new role/resource entries. This check just makes it easier to see
what's going on and aids in debugging.
2016-02-22 16:25:09 -05:00
Akita Noek
b08809f7cc Initial RBAC API implementation 2016-02-22 16:21:56 -05:00
Akita Noek
dce474ec5e get_absolute_url implemenation for Role 2016-02-22 14:55:32 -05:00
Akita Noek
5071dba4ff Moved RBAC get_permissions implemenation to the Resource model
I had need to perform this query right on a Resource, so I moved it from
the mixin to the Resource
2016-02-22 14:54:27 -05:00
Akita Noek
7d4b54a651 Fixed __all__ def 2016-02-22 14:52:57 -05:00
Akita Noek
0ff94e424d SubList views can now resolve deep relationships using dot notation for relationship specification
Made it so you can specify a relationship like 'parent.somelist'
2016-02-22 11:07:32 -05:00
Akita Noek
1e1f49c3eb Initial unit tests for core rbac functionality 2016-02-22 09:44:00 -05:00
Akita Noek
80476cbb2a Automatically add/remove user to the member_role when a user is added to / removed from a team 2016-02-22 09:44:00 -05:00
Akita Noek
aa3a33447e Automatically add users with is_superuser to System Admin role
Also fixed issue with System Admin role name not being set and made some
constants for the singleton names we use
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
Michael Abashian
5ee78d7fec Merge pull request #1000 from mabashian/stdout-breadcrumbs
Added breadcrumbs to stdout pages
2016-02-22 08:44:14 -05:00
Wayne Witzel III
dcb378fff9 Merge pull request #974 from wwitzel3/rbac
RBAC Testing Fixes
2016-02-19 16:39:28 -05:00
Michael Abashian
fa29608f50 Configured standard out breadcrumbs for adhoc, inventory sync, management jobs and scm updates. 2016-02-19 16:17:16 -05:00
Wayne Witzel III
fa1137d371 Use TransactionTestCase with Django 1.8+ 2016-02-19 15:05:07 -05:00
Jared Tabor
30633cc82e Merge pull request #998 from jaredevantabor/job-detail-results
Job detail results
2016-02-19 10:47:07 -08:00
Jared Tabor
93719094ea Using aliases for colors instead of hard coded pigments 2016-02-19 10:39:17 -08:00
Jared Tabor
68f619e358 Job Detail Results panel tweaks after UX review 2016-02-19 10:23:18 -08:00
Michael Abashian
fffa590a82 Merge pull request #994 from mabashian/stdout-results
Added standard out details to inventory sync, management jobs and scm updates
2016-02-19 13:02:48 -05:00
Michael Abashian
81e044c97c Added standard out details to inventory sync, management jobs and scm updates. 2016-02-19 10:41:17 -05:00
Jared Tabor
95467a6b97 Restyling of job detail results panel 2016-02-18 19:38:49 -08:00
Wayne Witzel III
fb5369404d (HACK) bump values while we investigate slowness 2016-02-18 15:33:27 -05:00
Jared Tabor
8f1c88e35d adding less file 2016-02-18 12:27:30 -08:00
Akita Noek
d3c620926a Merge pull request #990 from anoek/devel
Updated API test fixtures
2016-02-18 13:37:04 -05:00
Wayne Witzel III
65c20e9de2 use objects instead of _default_manager 2016-02-18 13:36:36 -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
Michael Abashian
7dbb69dd6d Accidentally included JobDetailController in app.js during my last merge. This is now pulled in via the job detail module. 2016-02-18 10:04:12 -05:00
Wayne Witzel III
30f88b6e30 Added redis in-memory fixture for functional tests 2016-02-18 09:51:32 -05:00
Michael Abashian
ce8f40277c Merge branch 'remove-standalone-stdout' into devel 2016-02-18 09:47:01 -05:00
Jared Tabor
673611b7bd Merge pull request #985 from jaredevantabor/job-detail-results
Initial restructuring of Job Detail code
2016-02-17 14:25:55 -08:00
Jared Tabor
8ec19f9226 Initial restructuring of Job Detail code
To use our new modular approach to organizing code by feature
2016-02-17 13:53:18 -08:00
Michael Abashian
e9899c278f Modularized Standard Out/Job details for all jobs that are not playbook runs. This is mostly scaffolding. 2016-02-17 15:54:53 -05:00
Wayne Witzel III
d464ea0f56 Merge branch 'devel' into rbac 2016-02-17 14:26:05 -05:00
Wayne Witzel III
74e1554463 Only touch the attribute if it does not exist to avoid recursion in activity streams 2016-02-17 11:59:06 -05:00
Wayne Witzel III
241ee09fff Merge branch 'rbac' of github.com:ansible/ansible-tower into rbac 2016-02-17 11:23:18 -05:00
Chris Church
8b2e699ea7 Merge pull request #972 from AlanCoding/755_related_job_templates
Add job_template related list to inventory endpoint
2016-02-16 23:04:11 -05:00
Wayne Witzel III
5306eaa98c more access tests and a Makefile driveby 2016-02-16 21:04:33 -05:00
Chris Meyers
6434171977 add -y to ansible ppa adding 2016-02-16 13:51:16 -05:00
Wayne Witzel III
40ec6a2da2 Fix rbac cred tests 2016-02-16 10:59:53 -05:00
AlanCoding
33e84d03ef add job_template related list to inventory endpoint 2016-02-16 10:12:35 -05:00
Michael Abashian
67b5dcd817 Merge pull request #929 from jlmitch5/schedulerFormStylingFinal
Scheduler form styling fixes
2016-02-16 10:07:02 -05:00
Wayne Witzel III
a8a0cd380d Merge pull request #970 from wwitzel3/rbac
RBAC: access unit tests and new migration
2016-02-16 10:02:01 -05:00
John Mitchell
b3667ce56a combine sleect2 creation into single class 2016-02-16 14:37:57 +00:00
John Mitchell
ffcb8ec65d update less to improve color default 2016-02-16 14:30:11 +00:00
Wayne Witzel III
017a7ee060 Updating RBAC migrations 2016-02-16 08:53:35 -05:00