NAME
Kernel::Test::Role::IsTestCase::Endpoint – role for endpoint tests
PUBLIC INTERFACE
has 'MojoApp'
Provides a Test::Mojo object.
requires EndpointMethod()
The test needs to define the endpoint method.
EndpointPath()
The test needs to define the endpoint path
RunTestStep()
Run the defined test case in context of a endpoint.
For special response data check you need to define a function CheckEndpointResponse
in the test file. This function gets the current response object and the test case data.
PRIVATE INTERFACE
_QueryParamsAppend()
Append query params to the supplied path.
$Path = $QueryParamsAppend->(
Path => '/path/to/endpoint',
Query => {
Param1 => 'Value1',
Param2 => 'Value2',
},
);