Commit Graph

160 Commits

Author SHA1 Message Date
Yuki Yamashita dba33f9ef5 Replace gethostbyname to getaddrinfo for plugins ipv6 support related #11450 (#12561)
Co-authored-by: yukiy <yyamashi@redhat.com>
2022-08-22 11:07:10 -03:00
sean-m-sullivan df649e2c56 update awx collection wait interval to 2 2022-05-18 09:57:40 -04:00
Shane McDonald bd5c304a50 Make our collection work with prefixed API endpoints
I caught this when trying to add test coverage for https://github.com/ansible/awx/pull/11342
2022-03-08 12:05:50 -05:00
Nico Ohnezat 815ef4c9c9 related #11229 consider previous set json_output changed in
controller_api

job_template module sets self.json_output['changed'] to true before calling create_or_update_if_needed.

Signed-off-by: Nico Ohnezat <nico@no-12.net>
2021-10-08 23:59:12 +02:00
sean-m-ssullivan 5b28e7b397 simplify module utils files 2021-09-28 11:43:28 -04:00
sean-m-ssullivan dd4943310d simplify module utils files 2021-09-27 19:35:22 -04:00
beeankha 9b66bda8b9 Fix pep8 error 2021-09-10 09:20:44 -04:00
John Westcott IV 515c3450c2 Fixing linting issue 2021-09-10 08:46:41 -04:00
John Westcott IV 5607c350cd Removing parens 2021-09-10 08:46:41 -04:00
John Westcott IV aad432aaa3 Changing to Version instead of Type 2021-09-10 08:46:41 -04:00
John Westcott IV d4971eb7b7 Preventing error if we were unable to get an API version 2021-09-10 08:46:41 -04:00
beeankha bc365e2d01 Point to the correct name for AAP within collections 2021-08-06 10:13:06 -04:00
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