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

89 Commits

Author SHA1 Message Date
Chris Church
ac172928f8 Added job_events and job_host_summaries for groups. 2013-05-16 21:59:58 -04:00
Chris Church
602fce73e4 Removed failing organization test (since we no longer return a 409). 2013-05-16 19:53:29 -04:00
Michael DeHaan
d1ba197126 Add a test to show you can create a new host by posting to a groups host list. 2013-05-15 18:40:34 -04:00
Michael DeHaan
ddf10251cc Fix some issues when creating a new object and posting to a subcollection. Tested with groups.
Also removed some dead code.
2013-05-15 18:31:32 -04:00
Chris Church
7183549289 Moved queryset filtering/ordering out of BaseList into the CustomFilterBackend. Added job_host_summaries sublists for jobs and hosts, add detail view for job host summary, with tests. 2013-05-14 19:17:17 -04:00
Michael DeHaan
b83e70b09a Remove various license headers. License was changed to proprietary previously so fix up headers. 2013-05-14 18:44:02 -04:00
Michael DeHaan
5b65b3bfac Add code that allows getting just the root groups for an inventory. 2013-05-14 18:28:13 -04:00
Chris Church
e528ede913 Disable transaction middleware when starting jobs via the API (only for tests). 2013-05-14 15:29:12 -04:00
Chris Church
fe5a454441 Basic support for job start/cancel via REST API with supporting tests. 2013-05-13 10:43:43 -04:00
Chris Church
a20573a68d More job template tests, enable creating a new job by posting to the job template job list. 2013-05-11 05:11:31 -04:00
Chris Church
6e6600b822 Model and test updates for last_job and last_job_host_summary fields on Host. 2013-05-11 02:10:17 -04:00
Chris Church
8f2ea04b48 Add simple test for credentials list, should not allow POST (for now). 2013-05-10 11:14:14 -04:00
Chris Church
d7737f6b43 Changed project property available_playbooks to playbooks, exposed via API as a child resource of the project detail. Changed project local_path to a CharField and added helper method and API attribute to show the list of available choices for local_path. 2013-05-10 00:44:21 -04:00
Chris Church
2cbed11034 Reverted JSONField change on VariableData and fixed related tests and migration. Also fixed older migrations that break when migrating backwards. 2013-05-09 17:11:45 -04:00
Chris Church
f7cd605415 Model changes based on jobs API discussion, code and test fixes to work with those changes. 2013-05-08 17:43:09 -04:00
Chris Church
2a15d07221 Split out RBAC and can_user_* methods from models into access.py. Moved list/item permissions checks from the base views into RBAC. Added serializers/views/tests for jobs REST API. 2013-05-08 10:46:16 -04:00
Chris Church
ef92fe3960 Updates to permissions checks (and tests), add logging around permission checks, permission-related fixes to support browsable API, work in progress on job templates API, added default logging settings. 2013-05-01 14:10:42 -04:00
Michael DeHaan
21f4e3a680 Some hacks to make organizational user object creation possible by posting directly to the subcollection. This is a little complex due to the user (being a Django object) not having any FKs
to our objects.  This should be refactored later but is at least sufficiently operational for the two cases it is used here.
2013-04-29 10:37:16 -04:00
Chris Church
2a875411d0 Removed old comments/code, better test coverage. 2013-04-26 23:18:13 -04:00
Chris Church
ecf6be4335 More tests for jobs and tasks. 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
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
a45a5c2594 Ability to list teams attached to a project. 2013-04-23 11:26:50 -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
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
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
bc19dc90ac Stub tests for jobs REST API. 2013-04-18 17:01:49 -04:00
Chris Church
883449f4a5 Added helper attributes to job for retrieving hosts by status. 2013-04-17 21:45:41 -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
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
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
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
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
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
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