App-wsgetmail

 view release on metacpan or  search on metacpan

SIGNATURE  view on Meta::CPAN

This file contains message digests of all files listed in MANIFEST,
signed via the Module::Signature module, version 0.93.

To verify the content in this distribution, first make sure you have
Module::Signature installed, then type:

    % cpansign -v

It will check each file's integrity, as well as the signature's
validity.  If "==> Signature verified OK! <==" is not displayed,
the distribution may already have been compromised, and you should
not run its Makefile.PL or Build.PL.

-----BEGIN PGP SIGNED MESSAGE-----

t/basic.t  view on Meta::CPAN



sub get_mocked_messages_response {
    my $json = read_file('t/mock_responses/messages.json');
    return HTTP::Response->new('200', 'OK', ['Content-Type' => 'application/json'], $json);
}

sub get_test_config {
    return {
        "command" => 'rt-mailgate',
        "command_args" => '--url http://test.local/ --queue "general" --action correspond --debug --no-verify-ssl',
        "action_on_fetched" => "mark_as_read",
        "username" => 'rt@example.tld',
        "user_password" => "password",
        "tenant_id" => "abcd1234-xxxx-xxxx-xxxx-123abcde1234",
        "client_id" => "abcd1234-xxxx-xxxx-xxxx-1234abcdef99",
        "action_on_fetched" => "mark_as_read",
        "folder" => "Inbox"
    };
}



( run in 2.647 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )