Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions test/resources/systemd.resource
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,21 @@ Systemctl Daemon Reload
... sudo=True return_stdout=True return_stderr=True return_rc=True
Log Many ${stdout} ${stderr}
Should Be Equal As Integers 0 ${rc}

Disable Journal Rate Limiting
[Documentation] Disable journald rate limiting by writing a drop-in that
... sets RateLimitBurst=0, then restarting the journal service.
${stdout} ${stderr} ${rc}= Execute Command
... printf '[Journal]\nRateLimitBurst=0\n' > /etc/systemd/journald.conf.d/disable-ratelimit.conf && systemctl restart systemd-journald
... sudo=True return_stdout=True return_stderr=True return_rc=True
Log Many ${stdout} ${stderr}
Should Be Equal As Integers 0 ${rc}

Enable Journal Rate Limiting
[Documentation] Re-enable default journald rate limiting by removing the
... drop-in created by Disable Journal Rate Limiting.
${stdout} ${stderr} ${rc}= Execute Command
... rm -f /etc/systemd/journald.conf.d/disable-ratelimit.conf && systemctl restart systemd-journald
... sudo=True return_stdout=True return_stderr=True return_rc=True
Log Many ${stdout} ${stderr}
Should Be Equal As Integers 0 ${rc}
3 changes: 3 additions & 0 deletions test/suites/configuration2/logging.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Documentation Tests for case-insensitive log level parsing
Resource ../../resources/common.resource
Resource ../../resources/microshift-config.resource
Resource ../../resources/microshift-process.resource
Resource ../../resources/systemd.resource
Library ../../resources/journalctl.py

Suite Setup Setup
Expand All @@ -29,10 +30,12 @@ Setup
Check Required Env Variables
Login MicroShift Host
Setup Kubeconfig
Disable Journal Rate Limiting

Teardown
[Documentation] Test suite teardown
Remove Drop In MicroShift Config 10-loglevel
Enable Journal Rate Limiting
Restart MicroShift
Logout MicroShift Host
Remove Kubeconfig
Expand Down