diff options
author | Caleb Boylan <calebboylan@gmail.com> | 2020-10-26 16:23:24 +0100 |
---|---|---|
committer | Ryan Petrello <rpetrell@redhat.com> | 2020-10-30 21:39:54 +0100 |
commit | b5c2a6ad6568cfeb55fae8bf3058c7eb53088b3d (patch) | |
tree | a14d1b6adf3afcffdab8c85396108e89028f90bd /awx_collection/tools | |
parent | Merge pull request #8509 from ryanpetrello/daylight-wastings-time (diff) | |
download | awx-b5c2a6ad6568cfeb55fae8bf3058c7eb53088b3d.tar.xz awx-b5c2a6ad6568cfeb55fae8bf3058c7eb53088b3d.zip |
fix lookup plugin fqcn issue
Diffstat (limited to 'awx_collection/tools')
-rw-r--r-- | awx_collection/tools/roles/template_galaxy/tasks/main.yml | 13 |
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" |