-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4788 from jan-cerny/test_rsyslog_remote_tls
Add test scenarios for rsyslog_remote_tls
- Loading branch information
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...ystem/logging/rsyslog_sending_messages/rsyslog_remote_tls/tests/correct_multiline.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
cat >> /etc/rsyslog.conf <<EOF | ||
action(type="omfwd" | ||
protocol="tcp" | ||
Target="remote.system.com" | ||
port="6514" | ||
StreamDriver="gtls" | ||
StreamDriverMode="1" | ||
StreamDriverAuthMode="x509/name") | ||
EOF |
5 changes: 5 additions & 0 deletions
5
...stem/logging/rsyslog_sending_messages/rsyslog_remote_tls/tests/correct_singleline.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
cat >> /etc/rsyslog.conf <<EOF | ||
action(type="omfwd" protocol="tcp" Target="remote.system.com" port="6514" StreamDriver="gtls" StreamDriverMode="1" StreamDriverAuthMode="x509/name") | ||
EOF |
11 changes: 11 additions & 0 deletions
11
...e/system/logging/rsyslog_sending_messages/rsyslog_remote_tls/tests/missing_option.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
# remediation = none | ||
|
||
cat >> /etc/rsyslog.conf <<EOF | ||
action(type="omfwd" | ||
protocol="tcp" | ||
Target="remote.system.com" | ||
port="6514" | ||
StreamDriver="gtls" | ||
StreamDriverMode="1") | ||
EOF |
12 changes: 12 additions & 0 deletions
12
.../system/logging/rsyslog_sending_messages/rsyslog_remote_tls/tests/wrong_multiline.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# remediation = none | ||
|
||
cat >> /etc/rsyslog.conf <<EOF | ||
action(type="omfwd" | ||
protocol="tcp" | ||
Target="remote.system.com" | ||
port="6514" | ||
StreamDriver="ptcp" | ||
StreamDriverMode="1" | ||
StreamDriverAuthMode="x509/name") | ||
EOF |