Test::BDD::Infrastructure::Logfile - cucumber step definitions for watching log files
version 1.005
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 ^123.123.123.123 - -
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 <ich@markusbenning.de>
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.
To install Test::BDD::Infrastructure, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::BDD::Infrastructure
CPAN shell
perl -MCPAN -e shell install Test::BDD::Infrastructure
For more information on module installation, please visit the detailed CPAN module installation guide.