NAME
Test::RemoteServer - Test routines for remote servers.
SYNOPSIS
A module to carry out basic tests against remote servers.
use Test::More tests => 4;
use Test::RemoteServer;
## testing ping responses
ping_ok("localhost", "Localhost is dead?" );
ping6_ok("localhost", "Localhost is dead?" );
## There should be a HTTP server
socket_open( "localhost", 80, "The webserver is dead!" );
## Our domain shoudl resolve
resolve( "example.com", "Our domain is unreachable!" );
DESCRIPTION
Test::RemoteServer
allows you to use the Test::More
interface to carry out basic health-checks against remote systems.
Currently the tests are only those that can be carried out without any authentication, or faking of source-address - testing ping responses, and that remote ports are open/closed as appropriate.
It would be interesting to be able to test ACLs such that a particular source address were able to connect to a host, but another was not. (i.e. To test that a firewall is adequately protecting access by source-IP). However this kind of source-IP manipulation is not generally portable, and has to be ruled out on that basis.
AUTHOR
Steve Kemp <steve@steve.org.uk>
COPYRIGHT AND LICENSE
Copyright (C) 2014 Steve Kemp <steve@steve.org.uk>.
This library is free software. You can modify and or distribute it under the same terms as Perl itself.