-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: base @ tests on socket accept as the code does
- Loading branch information
1 parent
178ba8d
commit 3af1491
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,13 +93,13 @@ | |
when: | ||
- ansible_facts['service_mgr'] == 'systemd' or | ||
(ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '7') | ||
- ansible_facts['distribution'] != "Debian" or ansible_facts['distribution_major_version'] | int < 12 | ||
- not (ansible_facts['distribution'] == 'Ubuntu' and ansible_facts['distribution_version'] is version('24.04', '>=')) # 24.04 has no [email protected] in the package | ||
block: | ||
- name: Read the created instantiated service file | ||
ansible.builtin.slurp: | ||
src: "/etc/systemd/system/[email protected]" | ||
register: service_inst | ||
when: | ||
- __sshd_socket_accept | bool | ||
|
||
- name: Check content of the created service file | ||
ansible.builtin.assert: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,12 +105,13 @@ | |
tags: tests::verify | ||
when: | ||
- ansible_facts['service_mgr'] == 'systemd' | ||
- ansible_facts['distribution'] != "Debian" or ansible_facts['distribution_major_version'] | int < 12 | ||
block: | ||
- name: Read the created instantiated service file | ||
ansible.builtin.slurp: | ||
src: "/etc/systemd/system/[email protected]" | ||
register: service_inst | ||
when: | ||
- __sshd_socket_accept | bool | ||
|
||
- name: Check content of the created service file | ||
ansible.builtin.assert: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,8 +117,7 @@ | |
when: | ||
- ansible_facts['service_mgr'] == 'systemd' or | ||
(ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '7') | ||
- ansible_facts['distribution'] != "Debian" or ansible_facts['distribution_major_version'] | int < 12 | ||
- not (ansible_facts['distribution'] == 'Ubuntu' and ansible_facts['distribution_version'] is version('24.04', '>=')) # 24.04 has no [email protected] in the package | ||
- __sshd_socket_accept | bool | ||
block: | ||
- name: Read the distribution instantiated service file | ||
ansible.builtin.slurp: | ||
|