Commit Graph

254 Commits

Author SHA1 Message Date
Artsiom Musin 271613b86d Add more integration tests for export collection 2022-11-09 22:18:02 +01:00
Rick Elrod 42109fb45a [collection] Remove instance defaults from docs (#12964)
We don't specify defaults in the module (because it messes up Instance
updates because AWX things we are trying to change things to be the
default).

- Update the docs to remove the defaults that no longer exist
- Update tests to make them pass (oops)
- Fix tangentially related typo in Kind development docs

Signed-off-by: Rick Elrod <rick@elrod.me>
2022-09-27 15:18:38 -05:00
Rick Elrod 7d645c8ff6 [collection] Add 'instance' module
Signed-off-by: Rick Elrod <rick@elrod.me>
2022-09-23 09:46:16 -04:00
Oleksii Baranov 4c64fb3323 Ensure schedule collection test has enough hosts for slices 2022-09-22 16:08:23 -04:00
John Westcott IV 1cfbc02d98 Collection test fixes from prompting changes
DNE can sometimes be dne depending on versions, fixing test to find either

Adding additional node to Demo Inventory for job slice counting
2022-09-22 16:08:23 -04:00
John Westcott IV 809df74050 Adding EE/IG/labels/forks/timeout/job_slice_count to schedules
Modifying schedules to work with related fields

Updating awx.awx.workflow_job_template_node
2022-09-22 15:35:27 -04:00
Sean Sullivan 3712af4df8 update role to provide better error messages (#12599) 2022-08-11 07:09:11 -04:00
Sean Sullivan 8cf75fce8c Update awx collection workflow nodes to look for type (#12597) 2022-08-11 07:08:27 -04:00
John Westcott IV 6279295541 Updating workflow job template collection test (#12468)
Adding additional use case

Fixing error with workflow calling itslef

Adding better cleanup of assets created as part of the test
2022-07-11 17:07:07 -03:00
Tom Page b70231f7d0 Allow modification of schedule if there are two of the same name (#12407) 2022-06-28 20:23:54 -03:00
John Westcott IV c67f50831b Modifying schedules API to allow for rrulesets #5733 (#12043)
* Added schedule_rruleset lookup plugin for awx.awx
* Added DB migration for rrule size
* Updated schedule docs
* The schedule API endpoint will now return an array of errors on rule validation to try and inform the user of all errors instead of just the first
2022-04-28 15:38:20 -04:00
Seth Foster a49c4796f4 Merge pull request #12115 from sean-m-sullivan/workflow_node_updates
update workflow nodes to allow workflows and system jobs
2022-04-28 14:12:33 -04:00
sean-m-sullivan 456bb75dcb update awx collection workflow module 2022-04-27 16:32:37 -04:00
sean-m-sullivan 02fd8b0d20 update workflow nodes 2022-04-27 16:18:00 -04:00
Sean Sullivan f50501cc2a update awx.awx collection to allow remote project. (#12093) 2022-04-26 15:07:29 -04:00
Ivan Aragonés Muniesa 9cd43d044e let an organization admin to add new users to it's tower organization 2022-02-09 18:59:53 +01:00
Sean Sullivan 94e53d988b add execution adminitrator to role module 2022-02-08 09:44:50 -05:00
Shane McDonald c035c12c0a Merge pull request #11380 from sean-m-sullivan/new_name
add new name to multiple modules
2022-01-11 01:42:55 +08:00
sean-m-ssullivan bb8efbcc82 add new name to multiple modules 2022-01-05 22:33:51 -05:00
sean-m-sullivan e0bd5ad041 add better error and documentation on labels 2022-01-05 20:09:02 -05:00
sean-m-ssullivan a28c023cf1 update to allow use of id for unified job template 2021-10-12 13:06:30 -04:00
sean-m-ssullivan c026790f55 add ability to lookup unified job template by org 2021-09-27 17:31:33 -04:00
sean-m-ssullivan f92924d57e add credentials option to schedules 2021-09-16 08:47:00 -04:00
beeankha ad0dc028f2 Update README with recent Collections changes 2021-08-18 09:04:09 -04:00
beeankha c89296e76d Update integration test playbooks to work with most current Collections modules 2021-08-17 13:50:35 -04:00
beeankha 9409dc0085 Remove Collections module parameters deprecated in Controller 4.0.0 2021-08-03 14:55:45 -04:00
Shane McDonald 05c7d3a60e Merge pull request #10108 from saito-hideki/issue/10057
Fix to handle ask_* parameters correctly when set false
2021-07-22 20:25:14 -04:00
tpage 62fc62a3c5 Default source_project for inventory source to organization
Signed-off-by: tpage <tpage@redhat.com>
2021-07-07 15:31:32 +01:00
Hideki Saito 70f9d6f015 Fix to handle parameters with Boolean values correctly
* Addresses the issue #10057

Signed-off-by: Hideki Saito <saito@fgrep.org>
2021-07-01 13:39:51 +09:00
beeankha c417c5e219 Add test playbook for EE collections module 2021-06-25 18:01:26 -04:00
Seth Foster bb3fc3caa8 controller_token, alias tower_token 2021-06-22 10:49:39 -04:00
Bill Nottingham 1e68519c99 Remove insights_credential from inventory 2021-06-22 10:49:33 -04:00
Seth Foster 157adb828e various sanity fixes 2021-06-08 14:33:28 -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 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 ef56571772 controller_meta, templating 2021-06-08 14:33:23 -04:00
Seth Foster 7a63785255 more rename, mostly in test 2021-06-08 14:33:23 -04:00
Seth Foster a695274cb6 regex replace tower_*: to '' 2021-06-08 14:33:22 -04:00
Seth Foster 44fed1d7c1 pycharm refactor rename files and class, linux rename tower_ controller_ 2021-06-08 14:33:22 -04:00
beeankha 82807a1b20 Update ad hoc command cancel test 2021-05-17 16:46:01 -04:00
beeankha 62a9c74040 Fix failing integration test playbooks 2021-05-17 15:56:39 -04:00
Hideki Saito 0cb33bd278 Remove source_script from tower_inventory_source integration test
* Fixes #10104

Signed-off-by: Hideki Saito <saito@fgrep.org>
2021-05-15 00:18:37 +09:00
softwarefactory-project-zuul[bot] 10474cd64c Merge pull request #10077 from sean-m-sullivan/job_launch_tags
Fix tower_job_launch tags being passed to API

SUMMARY
#10008
Fix tower_job_launch tags being passed to API
Previously the wrong field was being used on the api to pass tags, also while the module accepts lists, the API does not, so it would error. Take a users list, and converts to comma separated string, in order to maintain status quo.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

awx_collection

AWX VERSION
19.1.0

Reviewed-by: Bianca Henderson <beeankha@gmail.com>
Reviewed-by: Rebeccah Hunter <rhunter@redhat.com>
Reviewed-by: Alan Rominger <arominge@redhat.com>
2021-05-04 16:13:16 +00:00
sean-m-ssullivan 5993db76d3 fix job launch inputs 2021-05-01 23:08:44 -05:00
sean-m-ssullivan 666e9c5c2f add search label by org 2021-04-29 16:14:09 -05:00
sean-m-ssullivan c22c0a393c update tests and survey change status 2021-04-27 19:32:21 -05:00
sean-m-ssullivan a75cbe683c project update fix 2021-04-26 16:17:02 -05: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