Merge pull request #4645 from squidboylan/fix_collections_tests

fix lookup plugin fqcn issue
This commit is contained in:
Caleb Boylan 2020-10-26 11:37:31 -07:00 committed by GitHub
commit 581a0b67f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"