From 55855e9e63a314b34fc24a66ca8a06b8147efef5 Mon Sep 17 00:00:00 2001 From: sean-m-ssullivan Date: Mon, 8 Mar 2021 21:56:16 -0600 Subject: [PATCH] fix lint and update test --- awx_collection/galaxy.yml | 2 +- awx_collection/plugins/module_utils/tower_api.py | 2 +- .../integration/targets/tower_job_launch/tasks/main.yml | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/awx_collection/galaxy.yml b/awx_collection/galaxy.yml index 0db8abb865..15ae9cdcbb 100644 --- a/awx_collection/galaxy.yml +++ b/awx_collection/galaxy.yml @@ -29,7 +29,7 @@ tags: - awx - ansible - automation -version: 17.0.2-devel +version: 0.0.1-devel build_ignore: - tools - setup.cfg diff --git a/awx_collection/plugins/module_utils/tower_api.py b/awx_collection/plugins/module_utils/tower_api.py index 4569d221da..cb31f428a4 100644 --- a/awx_collection/plugins/module_utils/tower_api.py +++ b/awx_collection/plugins/module_utils/tower_api.py @@ -410,7 +410,7 @@ class TowerAPIModule(TowerModule): else: self.fail_json(msg="Failed to associate item {0}".format(response['json'].get('detail', response['json']))) - def copy_item(self, existing_item, copy_from_name_or_id, new_item_name, endpoint=None, item_type='unknown', copy_lookup_data={}): + def copy_item(self, existing_item, copy_from_name_or_id, new_item_name, endpoint=None, item_type='unknown', copy_lookup_data=None): if existing_item is not None: self.warn(msg="A {0} with the name {1} already exists.".format(item_type, new_item_name)) diff --git a/awx_collection/tests/integration/targets/tower_job_launch/tasks/main.yml b/awx_collection/tests/integration/targets/tower_job_launch/tasks/main.yml index 14d7f7c236..440f98ee2e 100644 --- a/awx_collection/tests/integration/targets/tower_job_launch/tasks/main.yml +++ b/awx_collection/tests/integration/targets/tower_job_launch/tasks/main.yml @@ -169,6 +169,11 @@ query: {"id": "{{result.id}}"} register: result +- name: Wait for 2nd job max 120s + tower_job_wait: + job_id: "{{result.id}}" + timeout: 120 + - assert: that: - '{"foo": "bar"} | to_json in result.results[0].extra_vars'