Commit Graph
100 Commits
Author SHA1 Message Date
AlanCoding 7b0f20e90d job template serializer can_add calc to avoid lookups of known related objects 2016-06-28 10:18:30 -04:00
AlanCoding 02dac5299c Activity Stream prefetch update to new fields, avoid distinct.count repeated queries 2016-06-24 14:19:41 -04:00
AlanCoding 2bebb76881 restrict editing of orphan notification templates to superusers 2016-06-23 09:51:58 -04:00
AlanCoding d8f11459c9 flake8 fix membership in seralizer 2016-06-23 09:02:44 -04:00
AlanCoding 36513e96a2 add can_delete to inventory update access 2016-06-22 16:11:10 -04:00
AlanCoding 1f88d8b810 implement can_cancel for most unified job types 2016-06-22 14:57:30 -04:00
AlanCoding 8fd18b882a move logic for project udpate to access.py 2016-06-20 12:05:41 -04:00
AlanCoding 5e07ee2e45 fix flake8 errors from notification template edit 2016-06-17 16:11:22 -04:00
AlanCoding 1e6c1f1e9d additions to allow copy of an orphaned job 2016-06-17 09:46:45 -04:00
AlanCoding 068a788958 team_project sublist to use same pattern as project_team 2016-06-16 13:18:47 -04:00
AlanCoding 54fa11cf25 restrict queryset for access_list to visable users 2016-06-16 11:05:57 -04:00
AlanCoding 5af6d14f27 protect launch endpoint against certain falsy values 2016-06-16 09:41:07 -04:00
AlanCoding a0c4bb5f6f fix bug with inventory in JT can_add 2016-06-15 11:59:16 -04:00
AlanCoding 502267484f indicate only intent to prompt with can_start_without_user_input 2016-06-15 10:52:25 -04:00
AlanCoding 81c3ae4470 change inventory can_change to require admin role 2016-06-15 08:17:00 -04:00
AlanCoding ffc0b05a80 fix non-sensitive change becoming sensitive, add network cred in JT can_change 2016-06-14 12:20:02 -04:00
AlanCoding 9d86fb0a09 change wording to reflect team sublist endpoint 2016-06-13 14:11:02 -04:00
AlanCoding c631761091 check team permissions if attaching user roles 2016-06-13 12:34:10 -04:00
AlanCoding b485b85076 TeamRolesList permission tests and fix, organize tests 2016-06-13 11:09:48 -04:00
AlanCoding 7f38227e11 fix bug in RoleTeamsList 2016-06-11 18:04:05 -04:00
AlanCoding 3e97bdae7f add reverse attach access checks pointing toward roles 2016-06-10 17:12:26 -04:00
AlanCoding a431f16953 job template creation to require use_role, include network creds 2016-06-10 10:58:27 -04:00
AlanCoding 996b75b978 update test_rbac_api to new object_roles naming 2016-06-10 10:48:34 -04:00
AlanCoding 6e92bc3668 modularize the job unit tests 2016-06-08 15:44:11 -04:00
AlanCoding 2cf0694adf move job view test to serializer unit test 2016-06-08 14:56:00 -04:00
AlanCoding 04b8eb4eaf add mk_job to factories, use with survey passwords 2016-06-08 13:43:19 -04:00
AlanCoding 39b410ae3e hide passwords in job_args and activity stream 2016-06-08 10:28:53 -04:00
AlanCoding 53327dea2b Bug fixes related to survey corner cases and survey test refactor 2016-06-02 08:58:59 -04:00
AlanCoding 7e35925e2d style update to can_start_without_user_input 2016-06-01 11:07:14 -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
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
AlanCoding 9ed77508a7 fix naming problem with ActivityStream logging 2016-05-23 16:48:30 -04:00
AlanCoding f695caf1ac auto associate JT creator with admin_role 2016-05-23 14:56:23 -04:00
AlanCoding 3f63172ac4 inventory exec role changed to use 2016-05-20 15:36:00 -04:00
AlanCoding dfec286bed All non-superusers to create prompted JTs 2016-05-20 15:30:58 -04:00
AlanCoding 5bc0403d9c add spaces around euality operator 2016-05-18 15:18:27 -04:00
AlanCoding f6b3da0c46 Make error message grammar more consistent 2016-05-18 13:39:06 -04:00
AlanCoding f19088db1b fix job_type change 500 error, patch up runtime tests 2016-05-18 09:24:33 -04:00
AlanCoding a7fed53efc implement a default ordering for ActivityStream 2016-05-17 11:24:13 -04:00
AlanCoding 9cc8ae9329 ActivityStream access checking test for most resources 2016-05-17 10:39:38 -04:00
AlanCoding 4e2e4667de test for activity stream selective access 2016-05-17 09:06:08 -04:00
AlanCoding f805f43eaa new fixtures for activity stream tests 2016-05-17 09:06:07 -04:00
AlanCoding c8863a10b1 add access filters to the ActivityStream list 2016-05-17 09:06:07 -04:00
AlanCoding f9c177edd5 More accurate test to check validation of bad data 2016-05-10 10:05:46 -04:00
AlanCoding 9bf2b63ca9 implement organization cts for sublists with mixin 2016-05-09 16:28:29 -04:00
AlanCoding 3d26506c8e allow blank credential owner fields 2016-05-09 11:34:49 -04:00
AlanCoding db6f50b9f4 fix ordereddict programming error 2016-05-08 15:41:59 -04:00
AlanCoding 06f68bc466 Protect against special scan job cases in job runtime validation 2016-05-06 15:12:49 -04:00
AlanCoding 532583ed27 add periods throughout access.py 2016-05-06 11:44:30 -04:00
AlanCoding fe1a0e2aa8 JT survey license check test migrations 2016-05-06 11:40:10 -04:00
AlanCoding 92efb2d317 exception for dual-name questions and more tests 2016-05-05 15:53:35 -04:00
AlanCoding a85f5a6a63 started tests for survey spec 2016-05-05 14:37:17 -04:00
AlanCoding 91c7dee2f6 Add error messages in permission denied cases 2016-05-05 14:31:17 -04:00
AlanCoding b1dfa28459 hit the is_valid method before stripping the special fields in credential view 2016-05-05 14:30:39 -04:00
AlanCoding 097c450581 new serializer to remove owner fields from credential detail views 2016-05-05 14:30:39 -04:00
AlanCoding 2d38a582ec short Tower version docs link 2016-05-05 09:08:40 -04:00
AlanCoding 59ed24e2c2 make template docs link dynamic wrt version 2016-05-05 09:08:40 -04:00
AlanCoding 44d57bf4c3 update test to new error message 2016-05-04 19:45:23 -04:00
AlanCoding 87093ec8af reject runtime extra vars that are strings 2016-05-04 19:45:23 -04:00
AlanCoding 18f48875c7 change 404 errors to PermissionDenied for those with links 2016-05-04 16:14:21 -04:00
AlanCoding 2d230919f0 reorganizing migration numbering 2016-05-03 16:41:43 -04:00
AlanCoding 01ec242b61 display all JT defaults for UI purposes 2016-05-03 15:54:45 -04:00
AlanCoding 3e680329fd add additional launch endpoint fields for UI 2016-05-02 16:41:19 -04:00
AlanCoding cd0b9655db make sysv and initctl non-exclusive 2016-05-02 12:29:03 -04:00
AlanCoding a2c2ccab20 credential owner fields changed to PK related field to solve 1671 2016-04-28 10:16:37 -04:00
AlanCoding d5a3951d52 break up test into 2, isolating context 2016-04-27 15:58:16 -04:00
AlanCoding 4af1e0a9bf remove additional resource creation in test context 2016-04-27 15:30:51 -04:00
AlanCoding a7311a69c9 runtime test fixtures organized better 2016-04-27 14:24:54 -04:00
AlanCoding 271701a968 clean up unused test code 2016-04-27 10:43:03 -04:00
AlanCoding 5dc17cd72f New tests for user launching/relaunching with credential/inventory access 2016-04-27 09:03:38 -04:00
AlanCoding 7ac59de75e scan jobs linked by inventory in org JT counts 2016-04-22 16:41:58 -04:00
AlanCoding 5e05859c20 add credential to job ask_ properties 2016-04-22 15:07:38 -04:00
AlanCoding 6958fb457a display of ask_ vars on job model 2016-04-22 14:56:54 -04:00
AlanCoding f9415da6bf allow credentials to be created in UI, docs for special owner fields 2016-04-22 13:48:55 -04:00
AlanCoding 64fc0c8ecb Mock out job start related stuff in runtime tests 2016-04-21 14:07:39 -04:00
AlanCoding 43fb601346 include ask_credential for launch endpoint 2016-04-20 15:30:52 -04:00
AlanCoding ca682fb362 remove connection error in fresh install, mongo setting in dev environment 2016-04-20 10:15:06 -04:00
AlanCoding 1a97773aa1 remove more save calls 2016-04-18 14:36:18 -04:00
AlanCoding 5abde762ae updates to prompt-for tests and logic for new RBAC updates 2016-04-18 14:29:30 -04:00
AlanCoding 9c75ced9f8 Merge branch 'devel' of https://github.com/ansible/ansible-tower into 11th-hour 2016-04-18 14:12:13 -04:00
AlanCoding fb013ed7f1 org counts: un-skip tests, more thorough counting 2016-04-18 11:15:05 -04:00
AlanCoding 333730f30e make special case for no results slightly more clear 2016-04-18 10:51:27 -04:00
AlanCoding 500ebdbbd2 fix index error generating organization detail view context 2016-04-18 08:56:04 -04:00
AlanCoding e0bd906de8 fill in extra_vars to content box even if ask_for_vars false and survey enabled 2016-04-15 14:59:20 -04:00
AlanCoding d196024155 fix problems with wording in template 2016-04-13 15:32:03 -04:00
AlanCoding dc37f00d0a use parent serializer method to avoid API browser job access check 2016-04-13 15:19:10 -04:00
AlanCoding 914918b5ae update permission logic, update job runtime tests 2016-04-13 13:30:06 -04:00
AlanCoding 6fc51e2d85 preparing for new incoming migrations 2016-04-12 17:09:25 -04:00
AlanCoding b0bbeb2ca8 move credential to prompt-for mechanism 2016-04-12 17:09:25 -04:00
AlanCoding 0dff851f62 JT validator: check for prompt_for cases to reject, and flake8 2016-04-12 17:09:25 -04:00
AlanCoding 52d8993aa8 update tests to conform to new credential behavior and launch response 2016-04-12 17:09:24 -04:00
AlanCoding 86aa0136a2 runtime inventory compatibility with blank, and resolve issue #1453 2016-04-12 17:09:24 -04:00
AlanCoding f471f9b072 change migration to allow blank inventory field 2016-04-12 17:09:24 -04:00
AlanCoding 68d8d25d64 fill in prompted data from JT, use standard launch permission, and compat code 2016-04-12 17:09:24 -04:00