Skip to content

Commit fd3005d

Browse files
Jakujerichm
authored andcommitted
Workaround wrong parsing of compression
This was reported upstream and fixed: https://bugzilla.mindrot.org/show_bug.cgi?id=3759 But the compression is something we do not want to use anyway much so implementing this workaround similar to the one we did in the server role: willshersystems/ansible-sshd#304 Signed-off-by: Jakub Jelen <[email protected]>
1 parent 4d08c66 commit fd3005d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/tests_match.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
ssh:
2020
Match:
2121
- Condition: user testuser
22-
Compression: true
22+
LogLevel: DEBUG2
2323
- Condition: host example
2424
Hostname: example.com
2525
Host:
@@ -39,7 +39,7 @@
3939
assert:
4040
that:
4141
- "'Match user testuser' in config.content | b64decode"
42-
- "'Compression yes' in config.content | b64decode"
42+
- "'LogLevel DEBUG2' in config.content | b64decode"
4343
- "'Match host example' in config.content | b64decode"
4444
- "'Hostname example.com' in config.content | b64decode"
4545
- "'Host local' in config.content | b64decode"
@@ -70,9 +70,9 @@
7070
- name: Verify the options are correctly evaluated
7171
assert:
7272
that:
73-
- "'compression yes' in test1.stdout"
74-
- "'compression yes' not in test2.stdout"
75-
- "'compression yes' not in test3.stdout"
73+
- "'loglevel DEBUG2' in test1.stdout"
74+
- "'loglevel DEBUG2' not in test2.stdout"
75+
- "'loglevel DEBUG2' not in test3.stdout"
7676
- "'hostname example.com' in test1.stdout"
7777
- "'hostname example.com' not in test2.stdout"
7878
- "'hostname example.com' not in test3.stdout"

0 commit comments

Comments
 (0)