Commit Graph

148 Commits

Author SHA1 Message Date
beeankha e88e81928c Fix sanity errors for collections 2021-07-30 10:53:44 -04:00
Seth Foster 5da02690c1 Fix copy_from warning message
- warn() does not take keyword 'msg'
- add testing around the copy_from parameter for project creation
2021-06-26 01:28:02 -04:00
sean-m-ssullivan 214c27a5cf add job data to filed wait jobs 2021-06-11 09:45:28 -04:00
Seth Foster 4bd910493a sanity tests 2021-06-08 14:33:28 -04:00
Sarabraj Singh 25ca8d22d6 added collection name to module.deprecate() calls; fixed pep8 linting issues 2021-06-08 14:33:27 -04:00
Sarabraj Singh 378a0711c2 linted AUTH_ARGSPEC to make it easier to read (<180 characters in the same line) 2021-06-08 14:33:26 -04:00
Seth Foster 4add72b9d2 actually make use of option aliases 2021-06-08 14:33:25 -04:00
Seth Foster 7d06fc74dd tower_username to controller_username, etc 2021-06-08 14:33:25 -04:00
Seth Foster 1a2e56c785 restore tower_legacy.py, update examples to include CONTROLLER_HOST 2021-06-08 14:33:25 -04:00
Seth Foster 39b26c8f0e Added env variable CONTROLLER_HOST, et al. Add awx.awx namespace to the runtime.yml redirects, and added templating task to change to ansible.controller 2021-06-08 14:33:24 -04:00
Seth Foster 82c5803e59 mostly includes renaming non-syntax references to tower 2021-06-08 14:33:24 -04:00
Seth Foster 7a63785255 more rename, mostly in test 2021-06-08 14:33:23 -04:00
Seth Foster 44fed1d7c1 pycharm refactor rename files and class, linux rename tower_ controller_ 2021-06-08 14:33:22 -04:00
beeankha 62a9c74040 Fix failing integration test playbooks 2021-05-17 15:56:39 -04:00
softwarefactory-project-zuul[bot] 0bdd873bd3 Merge pull request #9896 from sean-m-sullivan/approval_node
Add workflow approval and node wait modules

SUMMARY
Please see #9878 this is a clean PR after redoing my fork.
Add a module to find a workflow approval node and approve or deny it, based on Issue #8013.
Add a module to wait for a specific workflow node to complete and return information on it.
Both of these are based on tests I have been creating for testing workflows.
Scenario
Launch workflow
Wait for A node in the workflow to finish, compare output to expected output.
If it matches, approve the approval node, otherwise deny the approval node.
Workflow completes.
Even used in concert I've added the wait feature to both of these so a user can wait on either to appear.
This does require a workflow to use unique names on the job nodes they are waiting on, As the job # is created on the fly, it would be difficult for user to specify, A future update could explore searching for a specific identifier among a workflow template and then finding that job created by that identifier.
Currently without the modules this depends on generous use of the uri module, with until and retry coupled together.
ISSUE TYPE
Feature Pull Request

COMPONENT NAME
awx-collection
AWX VERSION
19.0.0

Reviewed-by: Bianca Henderson <beeankha@gmail.com>
2021-04-24 22:52:50 +00:00
sean-m-ssullivan ec312358e2 fix completeness 2021-04-23 11:57:24 -05:00
sean-m-ssullivan ce1f3009f9 add tower workflow schema update 2021-04-22 13:39:33 -05:00
beeankha b1119d2972 Fix format specification linting erros 2021-03-29 16:11:06 -04:00
beeankha b681d1078f Update unit test to pull in product names that are no longer hardcoded 2021-03-26 16:17:14 -04:00
beeankha f38c9e7478 Update manual project Collection integration test to be compatible with EEs 2021-03-26 15:35:52 -04:00
John Westcott IV 75a99bb1d5 Fixing version check 2021-03-25 10:56:34 -04:00
John Westcott IV aa9906ebae Fixing issues 2021-03-25 10:39:03 -04:00
John Westcott IV bb43ecb0b5 Splitting out AWX and Tower versions 2021-03-25 10:39:03 -04:00
beeankha e2b290ff99 Use distutils instead of semver, add/update unit tests 2021-03-25 10:39:03 -04:00
beeankha b2665c084e Loosen Collections v Tower version check 2021-03-25 10:39:03 -04:00
Ryan Petrello c2ef0a6500 move code linting to a stricter pep8-esque auto-formatting tool, black 2021-03-23 09:39:58 -04:00
sean-m-ssullivan 55855e9e63 fix lint and update test 2021-03-08 21:56:16 -06:00
sean-m-ssullivan 6d88a81cbd update logic 2021-03-03 12:20:13 -06:00
Sean a0090c7c52 update logic 2021-03-02 23:55:03 -06:00
sean-m-sullivan 9a7dd38cbb add copy to modules 2021-02-21 19:49:14 -06:00
Sean Sullivan dc26580466 Update to response code
set response code for current versions of tower/awx
2020-10-19 19:46:49 -05:00
Sean Sullivan f6a1707684 Merge pull request #17 from ansible/devel
Rebase
2020-10-19 15:56:04 -05:00
sean-m-sullivan 91ef686fe0 update to incorporate requested changes, change approve to 201 response. 2020-10-19 15:11:19 -05:00
sean-m-sullivan 862cd974ff linting 2020-10-19 12:12:08 -05:00
John Westcott IV c759c83daf Fixing stack trace from an error not having a detail 2020-10-15 15:09:11 -04:00
sean-m-sullivan c72c335b0c fix pep8 issues 2020-10-13 18:27:27 -05:00
sean-m-sullivan 51eb4e6d6b update to auto_exit, add tests, add mutual exclusive parameters 2020-10-13 18:17:22 -05:00
sean-m-sullivan 5655f766f0 linting 2020-10-10 11:56:00 -05:00
sean-m-sullivan 9bcb5ef0c9 intial update for workflow approval nodes 2020-10-10 04:06:49 -05:00
Rebeccah 5df37d4279 switched exit_json to be fail_json so it didn't trigger an error when attempting to utilize the missing_required_lib from ansible. Additionally fixed it for the second usage for correct usage. Given that it is an exception the correct one would not be to exit without failure, as exit_json does, but instead to use fail_json and be able to present the error 2020-10-01 18:28:26 -04:00
Alan Rominger 3aec1a115d fix wording 2020-09-15 22:38:37 -04:00
Alan Rominger 362d6a3204 Add new option update_secrets to allow lazy or strict updating 2020-09-15 22:38:37 -04:00
Alan Rominger 2e1f5cebb7 Further refine error message and update integration tests
Fix test with spaces

pep8 failure

More test tweaks

Even more test fixes
2020-09-10 09:49:27 -04:00
Alan Rominger a73323f3d6 Hack to delete orphaned organizations, consolidate get_one methods
minor test update

Updating the message if more than one object is found

Update test to new message
2020-09-10 09:00:50 -04:00
John Westcott IV 570251dc3d Modifying get_item_name to handle a None object 2020-09-08 15:28:57 -04:00
John Westcott IV d6f35a71d7 Adding allow_unknown option for get_item_name 2020-09-08 11:51:47 -04:00
John Westcott IV 0a8db586d1 Changing how get_one returns 2020-09-08 11:10:18 -04:00
John Westcott IV 106157c600 get_one now also returns the name field, and modifying modules for get_one and added in some IDs in a handful of unit tests 2020-09-08 11:06:01 -04:00
John Westcott IV 4c4d6dad49 Adding get_item_name and making static methods 2020-09-08 11:03:10 -04:00
John Westcott IV 51959b29de Adding name_or_id to get_one to make module more uniform 2020-09-08 11:03:10 -04:00