Commit Graph

1605 Commits

Author SHA1 Message Date
Chris Church
fb8212b063 Implements AC-380. Add validation for host (and group) names. 2013-09-05 02:08:45 -04:00
Chris Church
72d87fb908 AC-382, AC-352. Added status and last_updated fields for projects API. Various other updates to support projects using SCM. 2013-09-05 01:19:58 -04:00
Chris Church
67ae8effa4 AC-132 Added API support to prompt for SCM passwords when updating a project. 2013-08-30 03:08:24 -04:00
Chris Church
08a29f801a Added cleanup_jobs management command for AC-323. 2013-08-30 00:24:00 -04:00
Chris Church
290768c20d Add import command support for AC-332. Refactored import script to eliminate use of global variables, which breaks tests. 2013-08-29 23:46:38 -04:00
Chris Church
45b7c44c09 Fixes AC-361. Host last_job is updated whenever job is marked inactive or deleted. 2013-08-29 17:15:31 -04:00
Chris Church
27c80c81e0 Fixes AC-376. Set description to empty string when passed as null to the API. 2013-08-29 16:22:19 -04:00
Chris Church
5ce8328230 Fixes AC-334. Don't set failed flag on job events when ignore_errors is True. 2013-08-28 10:21:02 -04:00
Chris Church
92e0beb5cb Fixes AC-346. Allow playbooks with invalid YAML syntax to show up in list of available playbooks. 2013-08-28 09:58:36 -04:00
Chris Church
0129036b40 For AC-332. Added support to inventory script view, inventory script and task engine to include hostvars inline when using Ansible >= 1.3. 2013-08-27 00:09:05 -04:00
Chris Church
2bb5374685 Added inventory tree view for AC-360. 2013-08-26 12:57:41 -04:00
Chris Church
e343c9386d Fix for 500 error when POST data is not a dict. 2013-08-26 11:26:03 -04:00
Chris Church
ee3ba2c0e1 More work in progress on AC-132. 2013-08-26 10:31:39 -04:00
Chris Church
fc68955bad For AC-132. Work in progress on project SCM support. 2013-08-26 10:31:39 -04:00
Chris Church
718b566a03 Fix for filtering using __int on boolean fields. 2013-08-13 20:19:53 -04:00
Chris Church
30d2a4f5c9 For AC-331. Major updates to API filtering to allow negative filtering, use of a list of items with the __in lookup, more flexible boolean/null values, more validation of filter values, and tests. 2013-08-08 15:58:58 -04:00
Chris Church
efbdb67c33 Work on AC-205. Filter job events that are internal as a result of async polling, update event display name for various async job events. 2013-08-07 02:42:33 -04:00
Chris Church
a4af00da85 Fix for AC-321. Mark hosts and groups inactive when inventory is marked inactive. 2013-08-04 22:56:07 -04:00
Chris Church
49beca2b97 Fix for AC-310. Change how we unattach a group from a parent group when it has no other parents, mark it inactive instead of just removing the relationship. 2013-08-04 22:38:36 -04:00
Chris Church
057e7bad59 Update browsable API built-in documentation to use templates. 2013-08-04 20:46:26 -04:00
Michael DeHaan
9fc8c0725c Workaround for bug in Ansible core where 127.0.0.1/localhost must be explicitly in the all group
for dynamic inventory plugins.  Github has also been filed for ansible core but can't rev it for release.
2013-07-28 20:50:56 -04:00
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