Skip to content

Commit

Permalink
omd: relax requirements for log
Browse files Browse the repository at this point in the history
This test was very specific about `LogFormat` used by the site Apache.
Currently, our packaging might provide different `LogFormat`s (likely
due to a bazel issue).

This should fix the integration test no matter which `apache-omd`
artifact is shipped by our packaging.

Change-Id: I35018527c7da0e4c3f6b3e9bd79aab86e9cf6844
  • Loading branch information
SoloJacobs committed Oct 22, 2024
1 parent 35e56e4 commit fe76209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/omd/test_apache.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_http_methods(site: Site) -> None:
apache_log_file = check_output(["cat", site.path("var/log/apache/access_log")])
for line in apache_log_file.splitlines():
if re.match(
r'^.*"PROPFIND /\w+/check_mk/ HTTP/1.1" 405 \d+ "-" "' + user_agent + '"$',
r'^.*"PROPFIND /\w+/check_mk/ HTTP/1.1" 405 \d+ "-" "' + user_agent,
line,
):
return
Expand Down

0 comments on commit fe76209

Please sign in to comment.