Use openssh transport
This commit is contained in:
parent
a5f1b2a632
commit
8420c052fa
@ -1,4 +1,4 @@
|
|||||||
# recipients: sssd-team, ftrivino
|
# recipients: sssd-qe, ftrivino
|
||||||
--- !Policy
|
--- !Policy
|
||||||
product_versions:
|
product_versions:
|
||||||
- rhel-9
|
- rhel-9
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
Name: sssd
|
Name: sssd
|
||||||
Version: 2.4.2
|
Version: 2.4.2
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: System Security Services Daemon
|
Summary: System Security Services Daemon
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://github.com/SSSD/sssd/
|
URL: https://github.com/SSSD/sssd/
|
||||||
@ -1015,9 +1015,6 @@ fi
|
|||||||
%systemd_postun_with_restart sssd.service
|
%systemd_postun_with_restart sssd.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jun 01 2021 Steeve Goveas <sgoveas@redhat.com> - 2.4.2-5
|
|
||||||
- Rebuilt for RHEL 9 BETA to add gating tests (rhbz#1954686)
|
|
||||||
|
|
||||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.2-4
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.2-4
|
||||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
@ -1,19 +1,22 @@
|
|||||||
---
|
---
|
||||||
- name: Set ansible_python_interpreter to /usr/libexec/platform-python
|
- name: Set ansible_python_interpreter to /usr/libexec/platform-python
|
||||||
set_fact:
|
set_fact:
|
||||||
ansible_python_interpreter: '/usr/libexec/platform-python'
|
ansible_python_interpreter: auto
|
||||||
|
|
||||||
- name: Define remote_artificats
|
- name: Define remote_artificats
|
||||||
set_fact:
|
set_fact:
|
||||||
remote_artifacts: /tmp/artifacts
|
remote_artifacts: /tmp/artifacts
|
||||||
when: remote_artifacts is not defined
|
when: remote_artifacts is not defined
|
||||||
|
|
||||||
- name: Install testing requirements
|
- name: Install testing requirements
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- rsync
|
- rsync
|
||||||
when: ansible_pkg_mgr != 'unknown'
|
when: ansible_pkg_mgr != 'unknown'
|
||||||
|
|
||||||
|
- name: Install sshpass from epel
|
||||||
|
shell: yum --enablerepo epel install sshpass -y
|
||||||
|
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
dnf:
|
dnf:
|
||||||
name: >
|
name: >
|
||||||
@ -21,23 +24,23 @@
|
|||||||
openldap-clients, dbus-tools, python3-virtualenv, make,
|
openldap-clients, dbus-tools, python3-virtualenv, make,
|
||||||
python3-pip, krb5-devel, sssd, sssd-kcm, libsss_sudo,
|
python3-pip, krb5-devel, sssd, sssd-kcm, libsss_sudo,
|
||||||
ldb-tools, sssd-tools, nss-tools, sssd-dbus, python3-devel
|
ldb-tools, sssd-tools, nss-tools, sssd-dbus, python3-devel
|
||||||
|
|
||||||
- name: Install 389-ds-base krb5 server and workstation
|
- name: Install 389-ds-base krb5 server and workstation
|
||||||
dnf:
|
dnf:
|
||||||
name: >
|
name: >
|
||||||
389-ds-base, krb5-server, krb5-workstation
|
389-ds-base, krb5-server, krb5-workstation
|
||||||
|
|
||||||
- name: clone upstream sssd git to run tests
|
- name: clone upstream sssd git to run tests
|
||||||
git:
|
git:
|
||||||
repo: "{{ upstream_sssd_git }}"
|
repo: "{{ upstream_sssd_git }}"
|
||||||
dest: "{{ upstream_src_dir }}"
|
dest: "{{ upstream_src_dir }}"
|
||||||
version: "{{ upstream_git_branch }}"
|
version: "{{ upstream_git_branch }}"
|
||||||
|
|
||||||
- name: Update /etc/hosts file with current hostname
|
- name: Update /etc/hosts file with current hostname
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/hosts
|
path: /etc/hosts
|
||||||
line: "{{ ansible_default_ipv4.address }} {{ ansible_hostname }}"
|
line: "{{ ansible_default_ipv4.address }} {{ ansible_hostname }}"
|
||||||
|
|
||||||
- name: Create Multihost configuration files
|
- name: Create Multihost configuration files
|
||||||
blockinfile:
|
blockinfile:
|
||||||
dest: /tmp/mhc.yaml
|
dest: /tmp/mhc.yaml
|
||||||
@ -53,56 +56,49 @@
|
|||||||
role: master
|
role: master
|
||||||
create: yes
|
create: yes
|
||||||
marker: ""
|
marker: ""
|
||||||
|
|
||||||
- name: Install pytest-multihost and other test dependencies
|
- name: Install pytest-multihost and other test dependencies
|
||||||
pip:
|
pip:
|
||||||
name: "{{ item }}"
|
name: >
|
||||||
|
setuptools, pytz, paramiko, pep8, pylint,
|
||||||
|
pytest-multihost, python-ldap, pytest, pyyaml
|
||||||
virtualenv: "{{ venv_dir }}"
|
virtualenv: "{{ venv_dir }}"
|
||||||
virtualenv_command: /usr/bin/virtualenv
|
virtualenv_command: /usr/bin/virtualenv
|
||||||
with_items:
|
|
||||||
- setuptools
|
|
||||||
- pytz
|
|
||||||
- paramiko
|
|
||||||
- pep8
|
|
||||||
- pylint
|
|
||||||
- pytest-multihost
|
|
||||||
- python-ldap
|
|
||||||
- pytest
|
|
||||||
- pyyaml
|
|
||||||
|
|
||||||
- name: Find directory python searches for path
|
- name: Find directory python searches for path
|
||||||
shell: python3 -m site --user-site
|
shell: python3 -m site --user-site
|
||||||
register: pypath
|
register: pypath
|
||||||
|
|
||||||
- name: Create Python path dir
|
- name: Create Python path dir
|
||||||
file:
|
file:
|
||||||
path: "{{ pypath.stdout }}"
|
path: "{{ pypath.stdout }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Create file with sssd testlib path
|
- name: Create file with sssd testlib path
|
||||||
copy:
|
copy:
|
||||||
dest: "{{ pypath.stdout }}/sssdlib.pth"
|
dest: "{{ pypath.stdout }}/sssdlib.pth"
|
||||||
content: "{{ upstream_src_dir }}/src/tests/multihost"
|
content: "{{ upstream_src_dir }}/src/tests/multihost"
|
||||||
|
|
||||||
- name: create artifacts directory
|
- name: create artifacts directory
|
||||||
file:
|
file:
|
||||||
path: "{{ remote_artifacts }}"
|
path: "{{ remote_artifacts }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: Test block
|
- name: Test block
|
||||||
block:
|
block:
|
||||||
- name: Execute pytest
|
- name: Execute pytest
|
||||||
shell: |
|
shell: |
|
||||||
|
PYTESTMULTIHOST_SSH_TRANSPORT=openssh \
|
||||||
"{{ venv_dir }}/bin/pytest" -v \
|
"{{ venv_dir }}/bin/pytest" -v \
|
||||||
--junit-xml="{{ remote_artifacts }}/junit.xml" \
|
--junit-xml="{{ remote_artifacts }}/junit.xml" \
|
||||||
--multihost-config=/tmp/mhc.yaml \
|
--multihost-config=/tmp/mhc.yaml \
|
||||||
"{{ test_dir }}" 1> "{{ remote_artifacts }}/test.log"
|
"{{ test_dir }}" 1> "{{ remote_artifacts }}/test.log"
|
||||||
|
|
||||||
always:
|
always:
|
||||||
- name: copy sssd logs to "{{ remote_artifacts }}"
|
- name: copy sssd logs to "{{ remote_artifacts }}"
|
||||||
command: cp -a /var/log/sssd {{ remote_artifacts }}
|
command: cp -a /var/log/sssd {{ remote_artifacts }}
|
||||||
|
|
||||||
- name: Pull out logs
|
- name: Pull out logs
|
||||||
synchronize:
|
synchronize:
|
||||||
dest: "{{ artifacts }}"
|
dest: "{{ artifacts }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user