tests: Use valid option in Match blocks in RHEL6

This commit is contained in:
Jakub Jelen 2020-12-08 15:09:57 +01:00
parent fd144194e6
commit d46e5eb226
2 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@
sshd_match_2:
- Condition: "User root"
PasswordAuthentication: no
PermitTunnel: yes
AllowTcpForwarding: yes
- name: Verify the options are correctly set
vars:
@ -76,7 +76,7 @@
- "'forcecommand internal-sftp' in sftponly_effective.stdout"
- "'chrootdirectory /var/uploads/' in sftponly_effective.stdout"
- "'passwordauthentication no' in root_effective.stdout"
- "'permittunnel yes' in root_effective.stdout"
- "'allowtcpforwarding yes' in root_effective.stdout"
- name: Check the options are in configuration file
assert:

View file

@ -29,7 +29,7 @@
ChrootDirectory: "/var/uploads/"
- Condition: "User root"
PasswordAuthentication: no
PermitTunnel: yes
AllowTcpForwarding: yes
- name: Verify the options are correctly set
vars:
@ -74,7 +74,7 @@
- "'forcecommand internal-sftp' in sftponly_effective.stdout"
- "'chrootdirectory /var/uploads/' in sftponly_effective.stdout"
- "'passwordauthentication no' in root_effective.stdout"
- "'permittunnel yes' in root_effective.stdout"
- "'allowtcpforwarding yes' in root_effective.stdout"
- name: Check the options are in configuration file
assert: