From d46e5eb2269d61da8a743e9582529f3df5b15974 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 8 Dec 2020 15:09:57 +0100 Subject: [PATCH] tests: Use valid option in Match blocks in RHEL6 --- tests/tests_match.yml | 4 ++-- tests/tests_match_iterate.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/tests_match.yml b/tests/tests_match.yml index 0398c3e..f47418f 100644 --- a/tests/tests_match.yml +++ b/tests/tests_match.yml @@ -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: diff --git a/tests/tests_match_iterate.yml b/tests/tests_match_iterate.yml index b7362d1..c010258 100644 --- a/tests/tests_match_iterate.yml +++ b/tests/tests_match_iterate.yml @@ -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: