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
"""
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