Skip to content

Commit

Permalink
Workaround wrong parsing of compression
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Jakuje authored and richm committed Jan 8, 2025
1 parent 4d08c66 commit fd3005d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/tests_match.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
ssh:
Match:
- Condition: user testuser
Compression: true
LogLevel: DEBUG2
- Condition: host example
Hostname: example.com
Host:
Expand All @@ -39,7 +39,7 @@
assert:
that:
- "'Match user testuser' in config.content | b64decode"
- "'Compression yes' in config.content | b64decode"
- "'LogLevel DEBUG2' in config.content | b64decode"
- "'Match host example' in config.content | b64decode"
- "'Hostname example.com' in config.content | b64decode"
- "'Host local' in config.content | b64decode"
Expand Down Expand Up @@ -70,9 +70,9 @@
- name: Verify the options are correctly evaluated
assert:
that:
- "'compression yes' in test1.stdout"
- "'compression yes' not in test2.stdout"
- "'compression yes' not in test3.stdout"
- "'loglevel DEBUG2' in test1.stdout"
- "'loglevel DEBUG2' not in test2.stdout"
- "'loglevel DEBUG2' not in test3.stdout"
- "'hostname example.com' in test1.stdout"
- "'hostname example.com' not in test2.stdout"
- "'hostname example.com' not in test3.stdout"
Expand Down

0 comments on commit fd3005d

Please sign in to comment.