From e4de9a6afdc1723120775a915083f2d6b719622c Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 6 Nov 2020 16:20:21 +0100 Subject: [PATCH] tests: Use complete connection specification for RHEL7 compatibility --- tests/tests_match.yml | 8 ++++---- tests/tests_match_iterate.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/tests_match.yml b/tests/tests_match.yml index 6d25c47..eb6c1d7 100644 --- a/tests/tests_match.yml +++ b/tests/tests_match.yml @@ -35,19 +35,19 @@ - meta: flush_handlers - name: List effective configuration using sshd -T for xusers - command: sshd -T -C user=xusers + command: sshd -T -C user=xusers,addr=127.0.0.1,host=example.com register: xusers_effective - name: List effective configuration using sshd -T for bot - command: sshd -T -C user=bot + command: sshd -T -C user=bot,addr=127.0.0.1,host=example.com register: bot_effective - name: List effective configuration using sshd -T for sftponly - command: sshd -T -C user=sftponly + command: sshd -T -C user=sftponly,addr=127.0.0.1,host=example.com register: sftponly_effective - name: List effective configuration using sshd -T for root - command: sshd -T -C user=root + command: sshd -T -C user=root,addr=127.0.0.1,host=example.com register: root_effective - name: Print current configuration file diff --git a/tests/tests_match_iterate.yml b/tests/tests_match_iterate.yml index a55222b..12efcf2 100644 --- a/tests/tests_match_iterate.yml +++ b/tests/tests_match_iterate.yml @@ -33,19 +33,19 @@ - meta: flush_handlers - name: List effective configuration using sshd -T for xusers - command: sshd -T -C user=xusers + command: sshd -T -C user=xusers,addr=127.0.0.1,host=example.com register: xusers_effective - name: List effective configuration using sshd -T for bot - command: sshd -T -C user=bot + command: sshd -T -C user=bot,addr=127.0.0.1,host=example.com register: bot_effective - name: List effective configuration using sshd -T for sftponly - command: sshd -T -C user=sftponly + command: sshd -T -C user=sftponly,addr=127.0.0.1,host=example.com register: sftponly_effective - name: List effective configuration using sshd -T for root - command: sshd -T -C user=root + command: sshd -T -C user=root,addr=127.0.0.1,host=example.com register: root_effective - name: Print current configuration file