Chris Church
d1ea8708ad
Make sure credential can only be assigned to a user OR team, but never both. Fixes https://trello.com/c/yzlAEfAN
2015-04-27 12:43:02 -04:00
Chris Church
0d4c1a4245
Add tests for job template launch with invalid/inactive credential, fix bug that allowed an inactive credential to be passed if the job template already had an active credential.
2015-04-26 12:28:39 -04:00
Chris Meyers
299b0d78c8
removed the need to access data in the serializer. It's now clear what params a job template launch takes
2015-04-24 12:43:48 -04:00
Chris Meyers
0d26a700a6
sanitize request.DATA before passing to jobs
2015-04-24 12:22:31 -04:00
Chris Meyers
aaf3a191e4
removed commented out code
2015-04-24 09:45:50 -04:00
Chris Meyers
f348766430
fixed how validation errors are propogated. Also, don not allow job template to launch unless credential are available
2015-04-24 09:44:23 -04:00
Chris Meyers
b117e14e19
created a serializer for job template launch endpoint
2015-04-24 08:26:12 -04:00
Chris Church
6dda8e58ad
Don't return ids for deleted credential/inventory for ad hoc commands. Fixes https://trello.com/c/ps2bW38Q
2015-04-16 14:31:23 -04:00
Chris Meyers
6698fb542f
job cancelation of job templates with surveys wont send extra_vars so don't expect them to
2015-04-13 14:47:12 -04:00
jlmitch5
4b1322932f
Merge pull request #125 from jlmitch5/adhoc_pr
...
UI Support for adhoc commands
2015-04-07 10:19:45 -04:00
Chris Church
96df8a6d37
Add field on inventory detail to indicate if the user has permission to run ad hoc commands.
2015-04-06 14:58:26 -04:00
Matthew Jones
037c7342c0
Merge branch 'credential_becomes_refactor' into upstream_master
...
* credential_becomes_refactor:
Move 'become_enabled' to JobOptions to allow a toplevel field to exist on the Job model also. Update tasks and migrations to reflect this
Last of the ad-hoc priv escalation unit test fixes
Fixing up some unit tests for "become" refactor
Changing up ad-hoc based unit tests to follow the new "become" refactor
Migrate ad-hoc feature to use the new ansible become method if provided
Refactor pbexpect string matches to submit become password
Updates and fixes for unit tests on supporting ansible "become"
Refactor credential to use ansible become if using a new enough ansible version. Add become flag to job template
Conflicts:
awx/main/tests/ad_hoc.py
2015-04-06 13:37:36 -04:00
John Mitchell
4f5ecb7054
Remove Ad Hoc from command job type
2015-04-06 10:14:19 -04:00
Chris Church
e2a6f100e1
Finish ad hoc command unit tests.
2015-04-05 18:32:04 -04:00
Matthew Jones
2e58f5fd00
Migrate ad-hoc feature to use the new ansible become method if provided
2015-04-03 15:17:52 -04:00
Matthew Jones
d5c9e37499
Refactor credential to use ansible become if using a new enough ansible
...
version. Add become flag to job template
2015-04-02 10:05:56 -04:00
Chris Church
1a54ed5e17
Fix unified_job_template field in serializer to return ID.
2015-04-01 14:12:31 -04:00
Chris Church
88e7f6624c
Update relaunch endpoints to use custom serializer, check passwords needed before creating/copying job or ad hoc command.
2015-03-31 17:40:00 -04:00
Chris Church
02eda72bd9
Add name field for ad hoc commands, get relaunch working.
2015-03-31 16:42:35 -04:00
Chris Church
f7b8d510dc
Implement support for ad hoc commands.
2015-03-30 13:04:19 -04:00
Matthew Jones
e790ba480e
Filter out inactive jobs when pulling for latest status on the job
...
template list
2015-03-26 10:22:05 -04:00
James Laska
6258035ca8
Make ValidationError consistent with rest-framework
...
This is silly, but rest-framework returns an error with a '.' at the
end. Test automation validates the error responses. Rather than special
case this condition, I've chosen to raise an Exception with a msg
consistent with rest-framework.
2015-03-13 08:52:23 -04:00
Matthew Jones
c4afaad96c
Provide access to scan job templates from the inventory related fields
2015-03-06 11:13:36 -05:00
Matthew Jones
4d271bef35
Initial Scan Job Template type implementation
2015-03-03 14:48:22 -05:00
Chris Meyers
71318e5d9a
don't try and decode extra_vars if there are no extra_vars. Further, if extra_vars isn't a json, then don't try to redact.
2015-02-20 15:37:53 -05:00
Chris Meyers
78e1698333
redact survey password fields in job detail extra_vars
2015-02-19 09:20:05 -05:00
Matthew Jones
e9e4c6856d
Implement job template job history statuses, configurable
2015-02-09 14:19:18 -05:00
Matthew Jones
753b5f41b4
Fix up flake8 for serializers
2015-02-06 14:14:47 -05:00
Matthew Jones
1d76c1cd06
More pep8 goodness
2015-02-04 14:44:38 -05:00
Matthew Jones
6e6a709165
Fixing up some pep8 issues
2015-02-03 13:46:58 -05:00
Matthew Jones
34aafb2db9
Fix an issue where we couldn't schedule custom inventory sources
2015-01-20 14:55:05 -05:00
Matthew Jones
9b80d25a24
Revert "Make credential required when using a cloud inventory source"
...
This reverts commit 9dab26eb0a66a910e41452e40e74480ed4639588.
2015-01-20 10:46:53 -05:00
Matthew Jones
43d26d9993
Make credential required when using a cloud inventory source
2015-01-19 11:52:10 -05:00
Chris Meyers
8705f03bf9
added 'organization' to list of related fields for inventory_scripts
2015-01-19 08:39:55 -05:00
Matthew Jones
80b2b36bf3
Reapply fix for can_edit and can_copy when an inventory or project
...
associated with the job template have been deleted
2015-01-08 13:30:27 -05:00
Matthew Jones
9900b13953
Revert "Handle the situation where a Job Template's inventory has been removed"
...
This reverts commit 12201de3cb344b6caafeb112f7db7135b049821d.
2015-01-07 20:03:04 -05:00
Matthew Jones
932c276829
Handle the situation where a Job Template's inventory has been removed
...
and we are trying to determine if a user has the ability to edit or copy it.
2015-01-07 15:13:14 -05:00
Matthew Jones
21d45b828f
Fix up an issue where we wouldn't properly show can_edit or can_copy
2015-01-05 16:28:31 -05:00
Matthew Jones
f4e67f789f
More making sure we are using smart_str
2014-12-17 12:59:52 -05:00
Matthew Jones
76a7d25131
Force custom inventory script organization to match the organization of
...
an inventory source's inventory when creating/updating the inventory source
2014-12-16 13:01:11 -05:00
Matthew Jones
901af011a1
Verify that we are passed a source script if a 'custom' source is provided
2014-12-15 14:56:09 -05:00
Matthew Jones
7df9ca8ae1
Force custom inventory scripts to start with a hashbang
2014-12-10 10:59:20 -05:00
Matthew Jones
8afe8517fd
Rename System Task to Management Job for UI consistency
2014-12-09 11:46:03 -05:00
Matthew Jones
3af2c181b8
Add can_edit field on job templates
2014-12-09 11:08:25 -05:00
Matthew Jones
572c1765cd
Different strategy on the inventory script serializer, this should work
...
much better
2014-12-08 16:45:59 -05:00
Matthew Jones
9b61956c9e
Hide script contents if the user is not a super user
2014-12-08 15:10:16 -05:00
Matthew Jones
19c0d04885
Adding organization reference to the custom inventory script
2014-12-03 15:05:44 -05:00
Chris Church
564ba7bf68
Work on update/cancel serializers/views to return correct field names in OPTIONS response.
2014-12-02 18:55:54 -05:00
Matthew Jones
15e6aa29a7
Make sure we propogate source_script into the related fields it needs to
...
be in
2014-11-26 11:14:26 -05:00
Chris Church
35c392ab17
Add instance filters and group by options for EC2 inventory sources. Implements https://trello.com/c/QOVhP0mH
2014-11-26 03:20:45 -05:00