Grid::Request::Test - Helper funcations for unit Grid::Request tests.
use Grid::Request::Test; my $req = Grid::Request:Test->get_test_request(); my $project = Grid::Request:Test->get_test_project(); my $hostname = Grid::Request:Test->get_test_host();
A module that models Grid::Request parameters.
Description: This method is used by tests to obtain a test request object. If the user has the GRID_REQUEST_TEST_PROJECT enviroment variable defined, for environments in which a project settings is required, then the returned object will have the project configured so that tests will run.
Parameters: None.
Returns: A Grid::Request object.
Description: Retrieves the project to use when running the Grid::Request unit tests. Many of the unit tests trigger actual grid jobs, so the user/tester must be able to specify which project string to use.
Returns: A scalar.
Description: Retrieves the host to use to help test the hosts() method in Grid::Request.
This module checks for two (2) environment variables:
GRID_REQUEST_TEST_PROJECT - Used to set the project to use for grid tests. GRID_REQUEST_TEST_HOST - Used to set the hostname to use for grid tests which use the Grid::Request hosts() method.
None known.
Grid::Request Test::More
To install Grid::Request, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Grid::Request
CPAN shell
perl -MCPAN -e shell install Grid::Request
For more information on module installation, please visit the detailed CPAN module installation guide.