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
b3615465d1
Renamed _get_queryset in new inventory view to reflect filtering updates.
2013-05-14 19:18:28 -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
72fbb6c3a3
Add inventory root groups to related resources.
2013-05-14 18:38:32 -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
d51fa4f629
Added credentials list view.
2013-05-09 15:14:43 -04:00
Chris Church
e6377a1243
Fix lingering import statement, add context processor to expose settings to templates.
2013-05-09 14:31:08 -04:00
Chris Church
fdc9422409
Catch exception raised for the reverse access of a OneToOneField.
2013-05-08 17:56:40 -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
Michael DeHaan
6238f0ab9a
Add summary_fields capability, which for items in a collection gives the names of related fields.
...
{
'summary_fields' : {
'organization' : {
'name' : 'foo',
'description' : 'bar',
}
}
}
etc. This is automatic for all field types configured in serializers.py (SUMMARIZABLE_FKs, etc).
2013-05-08 17:38:35 -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
932b1ed620
Add variable data to admin.
2013-05-07 18:17:04 -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
Chris Church
b6e7d964c2
Add foreign key field back to serializer so test will pass.
2013-04-29 16:35:39 -04:00
Chris Church
edbd9c42ff
Admin updates, added a few more related resources.
2013-04-29 16:02:21 -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
69a9916423
Refactored URLs to be more DRY, changed reverse lookups to use named url patterns.
2013-04-27 23:19:28 -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
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