Swat tests for metacpan.org
This is simple test suit could be used in monitoring/deployment.
- check if landing page is accessible
- check if modules search is working properly
- check if latest releases page/feed is accessible and returns not empty results
- check if latest release at https://metacpan.org/feed/recent?f= is not older than 4 hours ago
yum install curl
carton install
carton exec swat
-
latest_rs_age- define critical age in hours for a latest release appeared at https://metacpan.org/feed/recent?f= , if latest release's age more then latest_rs_age hours this is considered as feed freeze failure. Default value is 4.# check that releases come to metacpan every 1 hour echo latest_rs_age=1 >> swat.my
Copyright 2015 Alexey Melezhik.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.