Commit Graph

24 Commits

Author SHA1 Message Date
AlanCoding
72a8854c27 Make ask_mapping a simple class property
from PR feedback of saved launchtime configurations
2017-12-08 13:45:23 -05:00
AlanCoding
34a8e0a9b6 Feature: saved launchtime configurations
Consolidate prompts accept/reject logic in unified models
Break out accept/reject logic for variables
Surface new promptable fields on WFJT nodes, schedules

Make schedules and workflows accurately reject variables
  that are not allowed by the prompting
  rules or the survey rules on the template

Validate against unallowed extra_data in system job schedules
Prevent schedule or WFJT node POST/PATCH with unprompted data
Move system job days validation to new mechanism
Add new psuedo-field for WFJT node credential
Add validation for node related credentials
Add related config model to unified job
Use JobLaunchConfig model for launch RBAC check

Support credential overwrite behavior with multi-creds
  change modern manual launch to use merge behavior
Refactor JobLaunchSerializer, self.instance=None
Modularize job launch view to create "modern" data
Auto-create config object with every job
Add create schedule endpoint for jobs
2017-12-08 13:38:54 -05:00
Ryan Petrello
28ce9b700e replace all Job/JT relations with a single M2M credentials relation
Includes backwards compatibility for now-deprecated .credential,
.vault_credential, and .extra_credentials

This is a building block for multi-vault implementation and Alan's saved
launch configurations (both coming soon)

see: https://github.com/ansible/awx/issues/352
see: https://github.com/ansible/awx/issues/169
2017-11-14 12:49:12 -05:00
Chris Meyers
318b1aebd1 remove special scan job logic 2017-07-05 10:32:45 -04:00
Aaron Tan
18ba56964f Add prompt for verbosity. 2017-05-04 14:32:08 -04:00
Ryan Petrello
ba259e0ad4 Introduce a new CredentialTemplate model
Credentials now have a required CredentialType, which defines inputs
(i.e., username, password) and injectors (i.e., assign the username to
SOME_ENV_VARIABLE at job runtime)

This commit only implements the model changes necessary to support the
new inputs model, and includes code for the credential serializer that
allows backwards-compatible support for /api/v1/credentials/; tasks.py
still needs to be updated to actually respect CredentialType injectors.

This change *will* break the UI for credentials (because it needs to be
updated to use the new v2 endpoint).

see: #5877
see: #5876
see: #5805
2017-04-21 15:42:26 -04:00
AlanCoding
be1b2b418c Remove missing resource checks from nodes 2017-01-24 13:52:06 -05:00
AlanCoding
8cd4ba0175 refactor of create_unified_job in connection with new copy endpoint development 2016-11-22 11:35:41 -05:00
AlanCoding
31a95e5c04 fix up tests from workflow copy work 2016-11-22 11:35:40 -05:00
AlanCoding
c717bf090d update workflow unit tests to new launch_type addition 2016-11-19 10:55:48 -05:00
Aaron Tan
2d1a5425d1 Fix flake8 E302 errors second round. 2016-11-16 09:56:07 -05:00
Aaron Tan
9e4655419e Fix flake8 E302 errors. 2016-11-15 20:59:39 -05:00
Aaron Tan
473ed016de Fix flake8 E305 errors. 2016-11-15 16:32:27 -05:00
AlanCoding
6e228248c1 remove fail_on_job_failure from the workflow status PR 2016-10-27 12:58:27 -04:00
AlanCoding
a2c972e513 Workflow status original commit 2016-10-27 12:52:07 -04:00
Alan Rominger
76fae6c052 Revert "Introduce workflow failure condition" 2016-10-27 12:21:31 -04:00
AlanCoding
0e99d150bb correct error in workflow unit tests 2016-10-26 10:47:09 -04:00
AlanCoding
48fc9eb773 update workflow model unit tests 2016-10-25 09:14:55 -04:00
AlanCoding
5d4cf9d4fc Add job artifacts and workflow artifact passing
artifacts redact from job when no_log is set
parent no_log artifacts treated as survey passwords
2016-10-12 17:45:50 -04:00
AlanCoding
0154c41eb2 switch to UJT method of creating new jobs 2016-10-03 15:22:15 -04:00
AlanCoding
a452acf214 include scan job_type errors in criteria for rejecting workflow node prompts 2016-09-27 17:24:09 -04:00
AlanCoding
fdca3b41ad copy WFJT node prompted fields to WJ nodes, reject or accept on unified job creation 2016-09-27 11:47:07 -04:00
AlanCoding
549273e90f unit test for node prompt values 2016-09-27 09:17:51 -04:00
Chris Meyers
32461574ae add unit tests 2016-09-13 15:24:20 -04:00