Commit Graph

930 Commits

Author SHA1 Message Date
Alan Rominger
860d0eea20 Merge pull request #2033 from AlanCoding/1958_jt_management_updates
Job Template can_copy can_edit updates and testing
2016-06-01 11:16:58 -04:00
Alan Rominger
b8524e9832 Merge pull request #2017 from AlanCoding/1969_job_orphans
Org admin access to orphaned jobs
2016-06-01 10:55:28 -04:00
AlanCoding
74beca5b74 cleanup of Job Template tests and fixtures 2016-05-31 16:03:03 -04:00
AlanCoding
1a4c92f027 make some JT tests unit tests and update others 2016-05-31 14:34:51 -04:00
AlanCoding
07cc99b4c7 start updating tests to JT factory 2016-05-31 14:34:51 -04:00
AlanCoding
cfd9d5d4f1 Refactor of JT related field checking 2016-05-31 14:34:51 -04:00
AlanCoding
1ec2c1b3b7 new tests, and stricter can_copy can_edit 2016-05-31 14:34:51 -04:00
Wayne Witzel III
7395e07221 Merge pull request #2068 from wwitzel3/issue_3.0_1990
Fix ActivityStream when object2 is a role.
2016-05-27 15:45:53 -04:00
Wayne Witzel III
31d3e3ec55 mock activity stream license and make query more specific 2016-05-27 15:21:24 -04:00
Akita Noek
1a9fece262 Merge pull request #2075 from anoek/1981
Better control what JT admins are allowed to do
2016-05-27 15:00:09 -04:00
Akita Noek
e3fcdf9ba8 Unobfuscated some decorators 2016-05-27 14:18:05 -04:00
AlanCoding
381e44c2a2 updates for job can_delete 2016-05-26 16:42:33 -04:00
AlanCoding
3208030202 job read access for org auditors 2016-05-26 16:42:33 -04:00
AlanCoding
44c518ef44 allow org admins read access to orphaned jobs 2016-05-26 16:42:33 -04:00
Wayne Witzel III
e6c76d0941 fixup objects creation helpers 2016-05-26 15:45:14 -04:00
Wayne Witzel III
2e0686a173 tests for object2 type when it is a role 2016-05-26 15:45:12 -04:00
Wayne Witzel III
db93fdab4a exercise role signal for job_template type 2016-05-26 15:26:55 -04:00
Akita Noek
c5dfde236b Test "fix"
Having this triggers a license feature test, which the jenkins test
system apparently doesn't have.. I don't think it's particularly
important to test this particular field, so meh.
2016-05-26 15:18:23 -04:00
Akita Noek
e531bc67e4 Better control what JT admins are allowed to do
This addresses #1981 which says that JT admins can make modifications to
a job template freely if they're just changing non functional things
like name, description, forks, verbosity, etc, while requiring them to
have access to all functional components if they're going to make any
changes to the functionality - in specific, any changes to the
inventory, project, playbook, or credentials requires that the user have
the appropriate use access on all of those things in order to make the
change.
2016-05-26 14:39:16 -04:00
Akita Noek
fed8d49d86 Added optional "expect" arg for REST fixtures" 2016-05-26 13:58:26 -04:00
Akita Noek
aca858f5b2 Ported some old adhoc tests over to the new system 2016-05-26 13:58:16 -04:00
Akita Noek
5ea372ae43 Updated Job.limit expectation in old tests
See 821c43ba88d18feaded696e9994a9c5277a3195b
2016-05-26 13:58:08 -04:00
Akita Noek
aa49e071c6 Disabling RAX test until we get our cert issue figured out
Related to #1706
2016-05-26 13:57:55 -04:00
Alan Rominger
95ccdecf13 Merge pull request #2010 from AlanCoding/1999_see_your_own_JT_30
Automatically add JT creator to admin_role
2016-05-26 12:32:27 -04:00
Wayne Witzel III
b8865c3749 make arguments to mk_ methods explicit 2016-05-26 11:02:09 -04:00
Wayne Witzel III
ec505f3f60 adjusting test and renaming helper 2016-05-26 11:02:07 -04:00
Wayne Witzel III
a6e97626ba README updates 2016-05-26 11:02:05 -04:00
Wayne Witzel III
1189ce033a fixing broken test cases 2016-05-26 11:02:04 -04:00
Wayne Witzel III
2052f93792 fixing function calls and None handling 2016-05-26 11:02:02 -04:00
Wayne Witzel III
c514cd44c3 restructure factories/fixtures and fix tests 2016-05-26 11:01:58 -04:00
Wayne Witzel III
fa010c2228 fix mk_label method 2016-05-26 11:01:57 -04:00
Wayne Witzel III
aaabc2582d refactored roles handling and added some more tests 2016-05-26 11:01:55 -04:00
Wayne Witzel III
4453e48729 updated factories docs 2016-05-26 11:01:53 -04:00
Wayne Witzel III
73e41ef6cc flake8 fixes 2016-05-26 11:01:52 -04:00
Wayne Witzel III
2f09c7fee1 added test for factory roles 2016-05-26 11:01:50 -04:00
Wayne Witzel III
3877804599 updated test to use new organization_factory 2016-05-26 11:01:48 -04:00
Wayne Witzel III
7ab385524d added roles support for organization_factory 2016-05-26 11:01:46 -04:00
Wayne Witzel III
becce311fe cleanup make methods and update asserts 2016-05-26 11:01:44 -04:00
Wayne Witzel III
bcef4a698c updating some tests to use new factories 2016-05-26 11:01:41 -04:00
Wayne Witzel III
0516ef02ca adding new factories 2016-05-26 11:01:39 -04:00
AlanCoding
f695caf1ac auto associate JT creator with admin_role 2016-05-23 14:56:23 -04:00
Akita Noek
fd9c96aa80 Executed the inventory execute_role
Replaced with the 'use_role', which is now useful.

 Completes #1959
2016-05-20 14:10:29 -04:00
Akita Noek
e8a3e7456d Merge pull request #1944 from wwitzel3/issue-1910
Fix access to JT for admin and superuser
2016-05-19 09:17:29 -04:00
Alan Rominger
8c1e2e4efc Merge pull request #1892 from AlanCoding/1364_AS_permission
Access filters in ActivityStream
2016-05-18 16:06:38 -04:00
Alan Rominger
50bb6b8fc3 Merge pull request #1951 from AlanCoding/1949_scan_runtime_bugs
Fix 500 error caused in job launch runtime vars validation
2016-05-18 15:34:58 -04:00
Wayne Witzel III
1810e80203 pep8 fixups, unused imports 2016-05-18 15:29:13 -04:00
Wayne Witzel III
f00825ecf0 removed OR test, removed that functionality 2016-05-18 14:08:15 -04:00
AlanCoding
f6b3da0c46 Make error message grammar more consistent 2016-05-18 13:39:06 -04:00
Alan Rominger
5fc5f1858a Merge pull request #1801 from AlanCoding/1773_cred_detail_serializer
Purge credential detail view of special fields
2016-05-18 09:54:43 -04:00
AlanCoding
f19088db1b fix job_type change 500 error, patch up runtime tests 2016-05-18 09:24:33 -04:00