Commit 779d9312 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[1897] remove hostname from lettuce http log check

parent 09c24690
......@@ -7,10 +7,10 @@ Feature: b10-stats-httpd module
When I request the URL http://127.0.0.1:47811/
# Should result in redirect, so two query logs
And wait for new bind10 stderr message localhost "GET / HTTP/1.0" 302 -
And wait for new bind10 stderr message localhost "GET /bind10/statistics/xml/ HTTP/1.0" 200 -
And wait for new bind10 stderr message "GET / HTTP/1.0" 302 -
And wait for new bind10 stderr message "GET /bind10/statistics/xml/ HTTP/1.0" 200 -
The last http response status code should be 200
When I request the URL http://127.0.0.1:47811/no_such_url
And wait for new bind10 stderr message localhost "GET /no_such_url HTTP/1.0" 404 -
And wait for new bind10 stderr message "GET /no_such_url HTTP/1.0" 404 -
The last http response status code should be 404
......@@ -30,7 +30,7 @@ def stop_a_named_process(step, process_name):
"""
world.processes.stop_process(process_name)
@step('wait (?:(\d+) times )?for (new )?(\w+) stderr message (\w+)(?: not (\w+))?')
@step('wait (?:(\d+) times )?for (new )?(\w+) stderr message (.+)(?: not (.+))?')
def wait_for_stderr_message(step, times, new, process_name, message, not_message):
"""
Block until the given message is printed to the given process's stderr
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment