summaryrefslogtreecommitdiffstats
path: root/awx_collection/tools
diff options
context:
space:
mode:
Diffstat (limited to 'awx_collection/tools')
-rw-r--r--awx_collection/tools/roles/template_galaxy/tasks/main.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/awx_collection/tools/roles/template_galaxy/tasks/main.yml b/awx_collection/tools/roles/template_galaxy/tasks/main.yml
index 96eb26413c..84f8174095 100644
--- a/awx_collection/tools/roles/template_galaxy/tasks/main.yml
+++ b/awx_collection/tools/roles/template_galaxy/tasks/main.yml
@@ -34,6 +34,19 @@
regexp: "^ NAME = 'awx.awx.tower' # REPLACE$"
replace: " NAME = '{{ collection_namespace }}.{{ collection_package }}.tower' # REPLACE"
+ - name: get list of test files
+ find:
+ paths: "{{ collection_path }}/tests/integration/targets/"
+ recurse: true
+ register: test_files
+
+ - name: Change lookup plugin fqcn usage in tests
+ replace:
+ path: "{{ item.path }}"
+ regexp: 'awx.awx'
+ replace: '{{ collection_namespace }}.{{ collection_package }}'
+ loop: "{{ test_files.files }}"
+
- name: Get sanity tests to work with non-default name
lineinfile:
path: "{{ collection_path }}/tests/sanity/ignore-2.10.txt"