Test::BDD::Infrastructure::Filesystem - cucumber step definitions for checking file systems
version 1.005
This step definitions use the output of the df(1) command to check filesystems.
Scenario: There must be enought space for the mail queue Given a filesystem is mounted on /var/spool/postfix Then the filesystems type must be rootfs And the filesystems free space must be more than 200 megabyte And the filesystems usage must be less than 90 percent
First select an path to check:
Given a filesystem is mounted on <path>
Then check parameters with:
Then the filesystem(s) (device|type|mount point) must be (like) <regex> Then the filesystem(s) (device|type|mount point) must be (unlike|not like) <regex> Then the filesystem(s) (blocks|size|used space|free space|usage) must be <compare> <count> Then the filesystem(s) (blocks|size|used space|free space|usage) must be <compare> <count> <unit>
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.