Commit Graph

234 Commits

Author SHA1 Message Date
Chris Church fce1a04a76 Fix for AC-284. Delete groups when they are disassociated and have no more parents. Remove all group and host associations from a group when it is marked inactive. 2013-07-27 23:00:07 -04:00
Chris Church 222bbd7c98 Revert previous fix for deleted name change, update how we change username when a user is marked inactive to keep it under 30 chars. 2013-07-27 21:05:26 -04:00
Michael DeHaan ac3ab82cc6 When a group only has children and no hosts/vars, still return things in hash-mode, because
Ansible is not smart enough to know that 'just children' in hash mode means anything.
2013-07-27 17:36:02 -04:00
Chris Church 764d2ff94d Implemented AC-22, hosts and child groups are migrated to a group's parent when the group is deleted or marked inactive. 2013-07-27 01:06:09 -04:00
Chris Church d78bc8fb19 Fix so command tests will work on Django 1.4.x. 2013-07-27 00:21:45 -04:00
Chris Church 2c166e501e Implemented AC-166, added signal handlers to update has_active_failures flag whenever host/group/job are changed/deleted and whenever group-host and group-group relationships change. 2013-07-26 23:49:49 -04:00
Michael DeHaan 00895fd87f You now get 10 servers for free instead of 5.
Tests updated to exceed server count in tests by adding more hosts.
2013-07-26 23:16:20 -04:00
Chris Church c3639f96eb Fix AC-263 and AC-264. Update how we check for access to item referenced via foreign key, and determining whether an immutable field has changed. 2013-07-26 15:41:09 -04:00
Chris Church 4aaeb9506f Fixed AC-261. Relaxed permission requirements on parent object needed to view sublists. 2013-07-25 21:47:43 -04:00
Chris Church 0c54dcef39 Finish implementing access checks for all objects, update tests to pass. 2013-07-25 11:15:12 -04:00
Chris Church bc49627203 Permissions-related updates and fixes, more tests, better handling of any user input that would previously generate a server error. 2013-07-25 11:15:12 -04:00
Chris Church 5ef8a48600 Start on tests for inventory_import command. 2013-07-25 11:15:11 -04:00
Chris Church 6fda31e790 Fix imports, __all__ definition, organization/team sublists under projects. 2013-07-25 11:15:11 -04:00
Chris Church a6c767907e Renamed some API files/classes to mimic REST framework names, moved queryset filtering for permissions alongside other permissions/access checks, cleaned up base views to handle get_queryset based on class attributes, cleaned up post to sublist to create/attach/unattach. 2013-07-25 11:15:11 -04:00
Chris Church af751e3f38 Fixed /api/v1/projects/N/organizations to allow creating a new organization via POST. 2013-07-19 21:32:16 -04:00
Chris Church 9af163691a Allow post to /api/v1/projects/N/organizations/, add resource for /api/v1/projects/N/teams/. 2013-07-19 11:49:40 -04:00
Chris Church d09d94bca2 Finish implementation/tests of job template callback. 2013-07-11 22:32:51 -04:00
Chris Church ca949eb71e Initial working version of job template callback with a test. 2013-07-11 14:57:59 -04:00
Michael DeHaan 66d27c4f96 Prevent hosts from being added to their own children. 2013-07-02 16:32:32 -04:00
Chris Church fccf663d42 Add tests for changed flag on job events. 2013-07-02 14:41:05 -04:00
Chris Church adcc402910 Removed print, fixed so inventory tests will still work without a valid license file. 2013-06-30 12:53:25 -04:00
Chris Church 6f0d644f5f First pass at cleanup_deleted management command. 2013-06-30 12:36:48 -04:00
Chris Church e5b827944e Cleanup user permissions check, fix bug to allow admin to change own username, first_name and last_name. 2013-06-28 23:07:45 -04:00
Chris Church 775ae688f8 Added validation to prevent setting an invalid project local_path via the API. 2013-06-28 22:25:04 -04:00
Chris Church 089098dc3f Local path choices for projects now only returns unused project paths. 2013-06-28 21:44:26 -04:00
Michael DeHaan 6e91131ee6 update inventory tests to use real host counts. 2013-06-28 13:18:07 -04:00
Michael DeHaan f0df197735 Some tweaks on the license engine (not yet complete). 2013-06-28 12:25:05 -04:00
Michael DeHaan 5e058b33d0 Fixup some syntax errors in the Test suite. 2013-06-28 12:12:22 -04:00
Michael DeHaan 79c86880c2 Wire license tests into top level tests. 2013-06-28 12:09:59 -04:00
Michael DeHaan 5d22ebd5b5 Merge remote branch 'origin/master' 2013-06-28 12:02:35 -04:00
Michael DeHaan e992fae303 Adding license code, fixed app version in group_vars/all, added Django14 to packages.yml 2013-06-28 11:58:32 -04:00
Chris Church 3984730754 Remove print from callback, fix failed flag propagation on job event, add tests for failed flag and play/task field on job events. 2013-06-28 05:03:22 -04:00
Chris Church 07d151b8cb Add validation for permission serializer. 2013-06-25 14:54:14 -04:00
Chris Church 07657926b9 Rename ansibleworks to awx. 2013-06-23 13:21:02 -04:00