diff options
author | Matt Davis <nitzmahone@users.noreply.github.com> | 2021-02-10 21:32:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 21:32:59 -0800 |
commit | 4c5ce5a1a9e79a845aff4978cfeb72a0d4ecf7d6 (patch) | |
tree | a1511f836f61f9f662d5b3a3c0231c9a02aa7eeb /test/integration/targets/yum | |
parent | 8a175f59c939ca29ad56f3fa9edbc37a8656879a (diff) | |
download | ansible-4c5ce5a1a9e79a845aff4978cfeb72a0d4ecf7d6.tar.gz |
module compat for py3.8+ controller (#73423)
* module compat for py3.8+ controller
* replaced internal usages of selinux bindings with internal ctypes binding (allows basic selinux operations from any Python interpreter), plus tests
* added new respawn_module API to allow modules to import Python packages that are only available under a well-known interpreter, plus tests
* added respawn logic to modules that need Python libs from a specific system interpreter (apt, apt_repository, dnf, yum)
minimize internal HAVE_SELINUX usage
spurious junk
pep8
* pylint fixes
* add RHEL8 Python 3.8 testing
* more pylint
* import sanity
* unit tests
* changelog update
* fix a bunch of stuff
* tweak changelog
* fix setup_rpm_repo on EL8
* misc sanity/test fixes
* misc feedback tweaks
* fix import fallback in test module
* fix selinux MU test
* fix dnf tests to avoid python-dependent test packages
* add trailing LFs to aliases
* fix yum tests to avoid test package with Python deps
* hack create_repo for EL6 to create noarch package
Diffstat (limited to 'test/integration/targets/yum')
-rw-r--r-- | test/integration/targets/yum/tasks/yum.yml | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/test/integration/targets/yum/tasks/yum.yml b/test/integration/targets/yum/tasks/yum.yml index 9d5c71447e..32ebbd5ccd 100644 --- a/test/integration/targets/yum/tasks/yum.yml +++ b/test/integration/targets/yum/tasks/yum.yml @@ -615,30 +615,19 @@ # setup for testing installing an RPM from url - set_fact: - pkg_name: fpaste + pkg_name: noarchfake + pkg_path: '{{ repodir }}/noarchfake-1.0-1.noarch.rpm' - name: cleanup yum: name: "{{ pkg_name }}" state: absent -- set_fact: - pkg_url: https://s3.amazonaws.com/ansible-ci-files/test/integration/targets/yum/fpaste-0.3.7.4.1-2.el7.noarch.rpm - when: ansible_python.version.major == 2 - -- set_fact: - pkg_url: https://s3.amazonaws.com/ansible-ci-files/test/integration/targets/yum/fpaste-0.3.9.2-1.fc28.noarch.rpm - when: ansible_python.version.major == 3 # setup end -- name: download an rpm - get_url: - url: "{{ pkg_url }}" - dest: "/tmp/{{ pkg_name }}.rpm" - -- name: install the downloaded rpm +- name: install a local noarch rpm from file yum: - name: "/tmp/{{ pkg_name }}.rpm" + name: "{{ pkg_path }}" state: present disable_gpg_check: true register: yum_result @@ -659,7 +648,7 @@ - name: install the downloaded rpm again yum: - name: "/tmp/{{ pkg_name }}.rpm" + name: "{{ pkg_path }}" state: present register: yum_result @@ -684,7 +673,7 @@ - name: install from url yum: - name: "{{ pkg_url }}" + name: "file://{{ pkg_path }}" state: present disable_gpg_check: true register: yum_result |