Test::BDD::Infrastructure::Logfile - cucumber step definitions for watching log files
Scenario: The client ip must be logged in access log Given the log file /var/log/apache2/access.log is watched ... Then the log file must contain the message ^18.104.22.168 - -
Given the log file <file> is (searched|watched)
If the Given statment is used with 'searched' then the whole file will be searched for the pattern. If used with 'watched' then it will only search lines after the current EOF position.
Then the log file must (not contain|contain) the message <regex>
Markus Benning <firstname.lastname@example.org>
This software is copyright (c) 2015 by Markus Benning.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.