fix lookup plugin fqcn issue

This commit is contained in:
Caleb Boylan 2020-10-26 08:23:24 -07:00
parent d2ceb39d73
commit 98f572a50e

View File

@ -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"