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
softwarefactory-project-zuul[bot]
fcd1169093
Merge pull request #8043 from john-westcott-iv/instance_groups_module
...
Adding tower_instance_group module
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-09-01 20:26:44 +00:00
sean-m-sullivan
50637807fc
fixed typo
2020-09-01 10:38:15 -05:00
John Westcott IV
72bdd17518
Fixing regression
2020-08-31 16:56:42 -04:00
John Westcott IV
2369bcb25c
Removing forward feature needed for testing locally
2020-08-31 16:56:42 -04:00
John Westcott IV
9e29dd08fb
Adding tower_instance_group module
2020-08-31 16:56:42 -04:00
sean-m-sullivan
d9d454d435
Merge branch 'wait_function' of github.com:sean-m-sullivan/awx into wait_function
2020-08-31 15:24:40 -05:00
sean-m-sullivan
0bc927820b
updated legacy messages
2020-08-31 15:24:32 -05:00
Sean Sullivan
d0ab307787
Merge pull request #4 from ansible/devel
...
Rebase from Dev
2020-08-31 13:45:49 -05:00
John Westcott IV
51f4aa2b48
Adding check that we are authenticated and also have a token
2020-08-28 11:04:15 -04:00
sean-m-sullivan
b3ec080e08
updated output
2020-08-28 08:25:21 -05:00
sean-m-sullivan
fd77a8aca5
updated output
2020-08-28 08:22:44 -05:00
sean-m-sullivan
7bd3f9d63c
updated to error if finished not in result
2020-08-28 07:37:29 -05:00
sean-m-sullivan
d971375907
updated to error if finished not in result
2020-08-28 07:35:13 -05:00