1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00
Commit Graph

305 Commits

Author SHA1 Message Date
Chris Church
52d31d105d Jobs updates to start/cancel and prompt for passwords via the admin. 2013-04-26 18:24:17 -04:00
Michael DeHaan
b2c4ca6ece Complete tests and permission API REST exposure. Note permission objects are found through user and teams, not a permissions
collection.
2013-04-26 18:12:12 -04:00
Michael DeHaan
b4932ab5a9 Partial support for permission editablity through REST. More TBA. 2013-04-26 17:32:19 -04:00
Michael DeHaan
f18f3a339c Add discoverability on /api/v1 to show available top level resources. 2013-04-25 20:33:37 -04:00
Michael DeHaan
2a013a5cfe Add API version info to api root, add dependency to setup playbook 2013-04-25 13:08:39 -04:00
Michael DeHaan
5c7cab70b7 Stubs for API head points. To add reverse URLs next. 2013-04-25 12:55:25 -04:00
Michael DeHaan
0251253f49 Don't treat pagination parameters as filtering. 2013-04-25 08:01:40 -04:00
Chris Church
d6d468633f Task refactoring, updates to support ssh-agent and responding to password prompts. Needs test for using credentials. 2013-04-24 11:35:30 -04:00
Chris Church
cc25d55121 Work in progress on credential/job updates. 2013-04-24 00:43:36 -04:00
Michael DeHaan
3a9533ffa0 more related resources! 2013-04-23 19:44:18 -04:00
Michael DeHaan
fdb0dd29a9 Fix organization lookup ID. 2013-04-23 19:36:00 -04:00
Michael DeHaan
3162f62fa9 Add more related resources. 2013-04-23 19:18:58 -04:00
Michael DeHaan
fc0fc43f63 Add inventory related resource. 2013-04-23 19:01:05 -04:00
Michael DeHaan
c81de8f7b9 Add modified_by to audit trail 2013-04-23 18:54:27 -04:00
Michael DeHaan
69f8f1e70d Add created_by related resource only if set. 2013-04-23 18:51:47 -04:00
Michael DeHaan
82ef8ca0f3 Working on exposing more related fields. 2013-04-23 18:08:38 -04:00
Michael DeHaan
a45a5c2594 Ability to list teams attached to a project. 2013-04-23 11:26:50 -04:00
Michael DeHaan
c661c0bbf2 Add organizations related resource to projects. 2013-04-23 11:13:33 -04:00
Michael DeHaan
069d16a1ae Add teams related resource to org. 2013-04-23 10:25:12 -04:00
Michael DeHaan
e511b60e29 Allow more advanced django filtering. 2013-04-22 10:43:18 -04:00
Chris Church
5901acb6a8 Added separate method to start Job independently from creating it; Jobs no longer start automatically when first saved. Added method on JobTemplate to create a new Job with defaults copied from the template. 2013-04-19 18:11:31 -04:00
Chris Church
bc1f3e320e Changed how Project local_path is configured, added option to specify playbook on JobTemplate and Job, updated admin and tests. 2013-04-19 15:40:13 -04:00
Michael DeHaan
86de2c8846 Check that the object we are attaching is readable by us for extra security on attaching resources. 2013-04-19 15:25:19 -04:00
Michael DeHaan
0ed275c3c8 Pass request data to various functions to allow for extra validation to be implemented on top of what is there now. 2013-04-19 12:10:30 -04:00
Michael DeHaan
4cd7405a37 update TODO 2013-04-19 11:15:02 -04:00
Michael DeHaan
bbaf9c96b5 Add important credential note. 2013-04-19 10:48:32 -04:00
Michael DeHaan
3047c07139 REST access for job template detail, access to read one follows whether permissions are available. Access to see
them should similarly follow (pending).
2013-04-19 10:42:36 -04:00
Chris Church
6567e6ac10 Might help to add the forms for the admin to import. 2013-04-19 10:31:47 -04:00
Chris Church
b9da59c5f3 Admin updates. 2013-04-19 10:12:49 -04:00
Michael DeHaan
2f5745272f Tests for permission checking on who can start jobs of certain types, etc. 2013-04-18 22:32:54 -04:00
Michael DeHaan
28332cc5a5 Ability to post new job templates. The permissions checks on these need more tests for non-org-admin users. 2013-04-18 22:11:00 -04:00
Michael DeHaan
6bb4f4f255 remove user from jobs (redundant, since we have created_by) and add start of jobs REST testing. 2013-04-18 21:05:31 -04:00
Michael DeHaan
7d224d8cf3 Ability to list job templates. Related resources are not added. 2013-04-18 20:52:54 -04:00
Michael DeHaan
bc19dc90ac Stub tests for jobs REST API. 2013-04-18 17:01:49 -04:00
Michael DeHaan
d11405d089 Stub views for all things job and event related. 2013-04-18 15:22:45 -04:00
Michael DeHaan
10adcf204d Allow results to be ordered by specifying "&order=" on the querystring line. 2013-04-18 10:28:19 -04:00
Chris Church
883449f4a5 Added helper attributes to job for retrieving hosts by status. 2013-04-17 21:45:41 -04:00
Michael DeHaan
296c6e8cd4 Fix filter field setting for user classes, where field is named 'username', not 'name' 2013-04-17 21:36:12 -04:00
Michael DeHaan
5336316f2e Resolve merge conflicts. 2013-04-17 20:35:01 -04:00
Michael DeHaan
7c5fcba037 Commiting just in case the diff is not all whitespace 2013-04-17 20:34:04 -04:00
Chris Church
aff422c976 Renamed LaunchJob to JobTemplate, LaunchJobStatus to Job, LaunchJobHostSummary to JobHostSummary, and LaunchJobStatusEvent to JobEvent. Updated admin, celery task, management commands accordingly. 2013-04-17 18:59:21 -04:00
Michael DeHaan
5e6ad5a244 Added /api/v1/groups/N/hosts and /api/v1/groups/N/all_hosts/ 2013-04-16 17:41:20 -04:00
Chris Church
27ac9a206e Added migration dependency. 2013-04-16 16:18:30 -04:00
Chris Church
52ace2700c Added relationships to hosts from launch job status and launch job status event, updated admin to display host stats and events. 2013-04-15 19:23:06 -04:00
Michael DeHaan
ec0e0f60dc Some TODO updates, a model revision, and getting association/disassociation working on user/team creds. 2013-04-15 19:19:54 -04:00
Michael DeHaan
9fc041f4ec No need to keep inventory list on projects, can just use permissions 2013-04-15 11:31:54 -04:00
Chris Church
9dbbf330e8 Added support for token authentication (with test). 2013-04-10 00:41:51 -04:00
Michael DeHaan
09cca99c69 Just use plain GPL. 2013-04-09 01:05:55 -04:00
Michael DeHaan
7368645bc6 Just use the plain GPLv3. 2013-04-09 00:55:25 -04:00
Michael DeHaan
26cff59ef0 Use of validate() method on serializer to implement write-once fields. 2013-04-07 22:17:33 -04:00
Michael DeHaan
9db8e27491 Working on credentials API 2013-04-07 20:10:24 -04:00
Chris Church
038ed04943 Changed celery task reference to store the task_id only, capture traceback if task run fails, update admin to be able to run launch jobs. 2013-04-04 16:53:28 -04:00
Michael DeHaan
97a83c7e0d Add license for ansible plugin (not part of commander or ansible) 2013-04-04 15:57:58 -04:00
Michael DeHaan
c52f51162a Work on team credentials. 2013-04-04 15:52:00 -04:00
Chris Church
541445d60f Added support and tests for --check option. 2013-04-04 14:47:41 -04:00
Chris Church
e9aa3f78e2 Removed todo/comments that have been implemented. 2013-04-04 14:47:41 -04:00
Chris Church
1b93886be2 Updated callback module to delegate to acom_callback_event management command. 2013-04-04 14:47:41 -04:00
Michael DeHaan
0a306ee0ad Team credentials listing. 2013-04-04 14:41:31 -04:00
Michael DeHaan
2c2c26860f Wiring up team credentials service (WIP). 2013-04-04 12:38:41 -04:00
Michael DeHaan
5087db5a7f Remove some prints 2013-04-04 12:10:00 -04:00
Michael DeHaan
d1f2f871e7 Column name not unique and assorted work on credentials REST 2013-04-04 12:07:12 -04:00
Michael DeHaan
b20a29b458 Working on surfacing credentials via REST. 2013-04-02 15:00:16 -04:00
Michael DeHaan
37cdd31b79 Fix typo. 2013-04-02 15:00:15 -04:00
Chris Church
0155f0acea Update settings template to use SQLite test database when running acom_inventory script in tests, initial stub for callback event logger. 2013-04-02 14:53:52 -04:00
Chris Church
63ef048d73 Fixed test database name in app setup template. 2013-04-02 14:06:54 -04:00
Chris Church
9307e2de26 Notes/todos. 2013-04-02 13:12:32 -04:00
Michael DeHaan
0250537065 Update credentials schema and TODO notes. 2013-04-02 11:23:58 -04:00
Michael DeHaan
0489762a02 Working on credentials endpoints, added migration (no credentials directly on projects) 2013-04-01 20:38:03 -04:00
Michael DeHaan
791003995c List the projects that a user can see. 2013-04-01 19:43:14 -04:00
Michael DeHaan
0d41b7bf07 A user can access what teams they are on. 2013-04-01 18:49:32 -04:00
Michael DeHaan
6bf4c1604f Adding and removing users from a team. 2013-04-01 18:19:37 -04:00
Michael DeHaan
93a230078d Remove now N/A comment 2013-04-01 17:50:43 -04:00
Michael DeHaan
a2d40a44a3 Add missing file. 2013-04-01 17:50:12 -04:00
Michael DeHaan
5deaa5c2fa Ability to list teams on an organization. 2013-04-01 17:44:30 -04:00
Michael DeHaan
184a68b0f9 License change. GPLv3 -> Affero GPLv3. 2013-04-01 17:44:30 -04:00
Chris Church
38f3fb0985 Fix import error for missing file. 2013-03-31 23:28:41 -04:00
Chris Church
df1d6ebc7e Added back try/except for TaskMeta lookup. 2013-03-31 23:25:54 -04:00
Chris Church
678e4c053b Admin field/inline updates. 2013-03-31 23:23:48 -04:00
Chris Church
8c42d0d9bb Added test for failed launch job. 2013-03-31 23:23:48 -04:00
Michael DeHaan
941d605806 Ability to list teams and get individual team records. 2013-03-31 22:18:39 -04:00
Michael DeHaan
987abb1663 Super users can list what projects an organization is assigned to. 2013-03-31 22:04:52 -04:00
Michael DeHaan
3b97dced59 Make projects deleteable. 2013-03-31 21:18:16 -04:00
Michael DeHaan
33ab8ff1ab Start of projects (+teams/credentials/permissions) tests. 2013-03-31 20:03:14 -04:00
Chris Church
3c7cac00f9 Working version of callback module to log to database. 2013-03-31 19:24:53 -04:00
Chris Church
c149f03119 Initial working test for run_launch_job task. 2013-03-31 17:25:18 -04:00
Chris Church
b38cb80efa Finished acom_inventory commnand tests. 2013-03-31 11:40:13 -04:00
Chris Church
cece190c54 Reapplied migrations since change, work on tests for inventory script. 2013-03-29 02:36:11 -04:00
Chris Church
a61a353829 Start on tests for inventory command and celery task, stub for playbook callback module. 2013-03-29 01:10:53 -04:00
Michael DeHaan
00d4f67f22 When disassociating objects that are foreign key relationships this implies a delete, so also move the name aside to allow for reuse. 2013-03-27 18:55:49 -04:00
Michael DeHaan
b8ee694d82 Ability to remove hosts and inventory from groups. 2013-03-27 18:54:30 -04:00
Michael DeHaan
6e15d7a913 Ability to add child groups to groups. 2013-03-27 18:17:21 -04:00
Michael DeHaan
4a2673482b Update the inventory script to follow the new variabledata schema. This is untested and may need revisions. 2013-03-26 22:28:35 -04:00
Michael DeHaan
ce7112e08a Update variable schema to use a 1:1 resource, and allow access via GET/PUT. GET if object does not exist will create the resource. 2013-03-26 22:24:03 -04:00
Michael DeHaan
c2bffe47d4 Fixup attach logic for inventory hosts/groups on subcollections. Pass serializer errors through on conflict scenarios. 2013-03-26 19:21:18 -04:00
Michael DeHaan
88b171bd5b Add tests for posting new hosts via subcollection. 2013-03-26 18:53:39 -04:00
Michael DeHaan
4aed4f6405 Add more 'auto-associate by posting new object' end points. 2013-03-26 18:26:40 -04:00
Michael DeHaan
fa54f7ad66 This allows for creation of subresources when posting new objects to a subcollection. 2013-03-26 18:18:05 -04:00
Michael DeHaan
3625039d47 Start of group support. 2013-03-26 16:57:08 -04:00
Michael DeHaan
2d3ff081c1 Loosen some unique name constraints. Note I've reset the migrations since we're in the dev cycle and I can still do that. 2013-03-26 14:51:14 -04:00
Michael DeHaan
5e91e0a43c Working on Hosts and Groups 2013-03-26 14:44:12 -04:00
Michael DeHaan
a4ae1012bc Update license headers on test code. 2013-03-25 19:02:52 -04:00
Michael DeHaan
dbfd764acd Improve the can_user_add model hook to allow it to pre-examine data for context. 2013-03-25 19:00:07 -04:00
Michael DeHaan
be1bd56ca2 Explain the RBAC model around inventory usage and adapt a view to match. 2013-03-25 17:36:51 -04:00
Michael DeHaan
681b82d378 Start of basic RBAC access control around inventory. 2013-03-25 17:21:17 -04:00
Michael DeHaan
dd02a79cc1 Fixing up existing inventory tests (all clear) 2013-03-25 16:43:42 -04:00
Michael DeHaan
77695bd959 Working on surfacing inventory objects. 2013-03-25 16:41:21 -04:00
Michael DeHaan
036458b823 Added stub inventory test cases we want to cover. 2013-03-25 14:50:45 -04:00
Michael DeHaan
44372ed191 Start of API guide + some whitespace removal. 2013-03-24 15:54:57 -04:00
Michael DeHaan
175f3c23da Update admin code to recent model field renames 2013-03-24 15:14:47 -04:00
Michael DeHaan
de306b97ef Add migration 2013-03-24 15:06:33 -04:00
Michael DeHaan
2eaa661ce6 Audit trail model has changed so disable the admin for now. 2013-03-24 15:05:34 -04:00
Michael DeHaan
18eaec143c Add related resources from a user object, as a rapid way to list what organizations or projects they belong to. 2013-03-24 15:00:01 -04:00
Michael DeHaan
fa157a3368 Add a /api/v1/me URL, which is a quick way to find your user record. 2013-03-24 14:23:37 -04:00
Michael DeHaan
f02aad42c0 User deletion modification, and overriding the URL for the user objects. 2013-03-24 14:14:59 -04:00
Michael DeHaan
129380e119 A post hook that allows user creation with passwords being set appropriately, and associated tests. 2013-03-24 13:31:46 -04:00
Michael DeHaan
aa2915a151 Create a mechanism for filtering put details, and now users can change their own passwords but not rename themselves, etc. 2013-03-24 12:36:42 -04:00
Michael DeHaan
a071ff65e4 Add copyright headers. 2013-03-23 18:43:11 -04:00
Michael DeHaan
82af679128 Add stub tests for everything to do with users. 2013-03-23 18:36:28 -04:00
Michael DeHaan
207c883a7d Organize test files into subdirectories 2013-03-23 18:28:38 -04:00
Michael DeHaan
519b5ab77c Add part of list to show audit trail by organization, still need to hook create to auto-establish the audit trail records. 2013-03-23 17:07:24 -04:00
Michael DeHaan
cd0fee5406 Added tests for disassociation of other object types. 2013-03-23 17:01:42 -04:00
Michael DeHaan
1213f2a981 Test that you can't post to an audit trail collection (ever), and a switch to control postability to sub lists. 2013-03-23 16:50:25 -04:00
Michael DeHaan
cd214bc95d Ability to add tags to an organization. 2013-03-23 16:34:52 -04:00
Michael DeHaan
f1bfe780e3 Ability to add a user to an organization 2013-03-23 16:21:23 -04:00
Michael DeHaan
b68ab024ec Listing tags attached to an organization, and basic model/view things around tag details 2013-03-23 16:03:17 -04:00
Michael DeHaan
2484f7eb4a Listing the admins of an organization. 2013-03-23 15:43:59 -04:00
Michael DeHaan
6a45aa2823 Added ability to list users under an organization, model additions to support. Simplified queryset lookup for various models. 2013-03-23 15:34:16 -04:00
Michael DeHaan
284c495c11 Added remaining sec tests for adding subobjects to collection. 2013-03-23 15:08:02 -04:00
Michael DeHaan
a1c614500c Adding tests for remaining cases around adding subobjects to collections 2013-03-23 14:38:54 -04:00
Michael DeHaan
0c9aa1a498 Testing to whether a user can attach/unattach is now deferred to the model. 2013-03-23 14:31:36 -04:00
Chris Church
4e7827829f Work on executing launch job via celery to run ansible playbook. 2013-03-22 18:56:09 -04:00
Michael DeHaan
85897049d9 misc cleanup 2013-03-22 18:16:40 -04:00
Michael DeHaan
e405c9b746 Simplify some auth code, add a FIXME 2013-03-22 18:07:06 -04:00
Michael DeHaan
8b698d13d0 This makes subobject attachment and detachment generic, making the views much easier to code up. 2013-03-22 16:52:44 -04:00
Michael DeHaan
dc071d1914 More view/model cleanup 2013-03-22 15:57:24 -04:00
Michael DeHaan
f1fda9b5de More view->model cleanup 2013-03-22 15:53:08 -04:00
Michael DeHaan
2c02dc73a0 Moving more logic into the models, more view cleanup 2013-03-22 15:44:32 -04:00
Michael DeHaan
d338794ec2 Starting to defer some business logic to the model classes and out of the views. 2013-03-22 15:36:59 -04:00
Michael DeHaan
6b61381e32 Move base view code to seperate file, start of generalizing 2013-03-22 15:22:30 -04:00
Michael DeHaan
71cc409735 Clarify remaining org tests to add. 2013-03-22 14:58:55 -04:00
Michael DeHaan
580c6335bd Clarify purpose of test in comments. 2013-03-22 14:57:01 -04:00
Michael DeHaan
f0aabcca43 Add a test to show you cannot put to a subresource collection URL 2013-03-22 14:55:55 -04:00
Michael DeHaan
ed6096216f Example of how to disassociate an object from a collection, to be generalized later! 2013-03-22 14:48:18 -04:00
Michael DeHaan
d179c91537 Test code for posting an object to a subcollection, and accompanying view code. (In this case organizations/n/projects)
To be generalized later.
2013-03-22 14:23:50 -04:00
Michael DeHaan
a59d26f42b Add migration 2013-03-22 13:50:50 -04:00
Michael DeHaan
7a9cd89d80 Merge conflict 2013-03-22 13:49:26 -04:00
Chris Church
935463e3ec Updated description to be optional, added migration for description change and removal of application user model. 2013-03-22 13:41:35 -04:00
Chris Church
c592c3c392 Hide fields not needed for the user admin. 2013-03-22 12:02:16 -04:00
Michael DeHaan
92509d34b3 More launch job notes. 2013-03-22 12:00:11 -04:00
Michael DeHaan
d336433634 Take notes on launch job features 2013-03-22 11:49:04 -04:00