The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Test::RemoteServer - Test routines for remote servers.

SYNOPSIS

This module allows you to carry out basic tests against remote servers, and the following example should make usage clear:

   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.

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.

USEFUL COMPANION MODULES

If your tests are only to be carried out on the localhost you might enjoy the Test::Server module.

If you wish to perform more complex DNS tests you should investigate the Test::DNS module.

Finally there is the Test::Varnish which will examine the response of a remote HTTP-server and determine whether Varnish is being used.

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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 32:

=cut found outside a pod block. Skipping to next block.