Matthew Jones
8795f06801
Capitalize the first letters of the scan modules for the UI
2015-05-29 10:47:43 -04:00
Matthew Jones
c644934afc
Disallow creating a survey with a scan job template
2015-05-29 10:43:54 -04:00
Matthew Jones
094072f9dc
Fix an issue where the single_fact view could still generate a 500 error
...
if mongo wasn't running and system tracking was disabled by the license
2015-05-28 16:19:55 -04:00
Matthew Jones
f5391cab11
Fix an issue where passing an empty yaml file (or ---) would cause an
...
error if including a port specifier on a hostname
2015-05-28 09:42:41 -04:00
Matthew Jones
c930b7759a
Add 'finished' property to recent jobs
2015-05-26 13:08:26 -04:00
Chris Meyers
338a504314
flake8
2015-05-22 18:08:33 -04:00
Chris Meyers
ec456c4e8b
user password required on creation
2015-05-22 15:31:13 -04:00
Chris Church
8e89e0e829
Show choices in OPTIONS response for ad hoc command module_name even when empty.
2015-05-14 15:03:02 -04:00
Chris Church
55c41252f8
Always return choices even if empty list.
2015-05-13 13:45:03 -04:00
Chris Meyers
66d097c7fa
Merge pull request #199 from chrismeyersfsu/feature-fact_options
...
add list of modules to fact OPTIONS endpoints
2015-05-13 07:59:35 -04:00
Chris Meyers
d03004ae74
add list of modules to fact_version OPTIONS endpoint
2015-05-12 08:58:35 -04:00
Chris Church
e017270201
Update serializers to remove empty choices, provide default values for fields, and better indicate the field type when possible for OPTIONS requests and browsable API docs.
2015-05-11 18:25:30 -04:00
Chris Meyers
fc7126cd68
expose single_fact via related and tests
2015-05-11 10:09:20 -04:00
Chris Meyers
0dc7072e68
flake8
2015-05-11 09:08:46 -04:00
Chris Meyers
5ff696f708
added fact view tests
...
* Add related link from host to fact_versions
* Add related link from fact_versions to fact_view
2015-05-08 21:34:24 -04:00
Chris Meyers
0c6a4782fd
add fact_versions endpoint link in hosts related list
2015-05-07 12:14:01 -04:00
Matthew Jones
e784595119
Initial implementation of fact api endpoints
2015-05-05 14:47:58 -04:00
Chris Church
cffb2f324f
Only update name if already present in result, so it won't show up for cancel/relaunch.
2015-05-01 13:40:06 -04:00
Chris Meyers
6a4f8f9177
error out if inventory or project not related to relaunched job
2015-04-30 08:50:42 -04:00
Chris Meyers
9e67169cb9
ensure credentials exist before we go looking at them
2015-04-28 15:26:22 -04:00
Chris Meyers
d77801353f
changed passwords_needed_to_start to take into acount if a credential is deleted
2015-04-28 13:38:47 -04:00
Chris Meyers
cea9dbdb4f
yet another extra_vars fix
2015-04-28 07:57:24 -04:00
Chris Church
2830095b07
Return only module_name for ad hoc command name.
2015-04-27 21:35:40 -04:00
Chris Meyers
556c66b050
fix extra vars job template
2015-04-27 20:16:44 -04:00
Chris Meyers
853ac5dcf7
Merge pull request #156 from chrismeyersfsu/fix-relaunch
...
Prevent relaunching job with deleted credential
2015-04-27 17:23:38 -04:00
Chris Meyers
2de6e7b016
validate extra_vars, but get them from request.DATA
2015-04-27 16:19:01 -04:00
Chris Meyers
c44019c4df
Merge branch 'master' into fix-credential_id
...
Conflicts:
awx/api/views.py
2015-04-27 14:57:53 -04:00
Chris Meyers
8a050dbc97
generate passwords in validate and pass back through context
2015-04-27 14:54:57 -04:00
Chris Meyers
c29e5f40be
save state
2015-04-27 14:27:48 -04:00
Chris Meyers
90037bbc2f
fill in api browser with needed extra_vars passwords and credential
2015-04-27 14:15:35 -04:00
Chris Meyers
3aab7eb64b
populate api browser with missed passwords
2015-04-27 14:05:07 -04:00
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
927cc78526
flake8
2015-04-24 13:37:52 -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
f194c0dc1b
moved validation from view to serializer. Prevent relaunching job with deleted credential
2015-04-24 10:59:59 -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