SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Test-LWP-UserAgent rpm build for : OpenSuSE. For other distributions click perl-Test-LWP-UserAgent.

Name : perl-Test-LWP-UserAgent
Version : 0.030 Vendor : openSUSE Build Service
Release : 10.7 Date : 2016-10-12 08:12:01
Group : Development/Libraries/Perl Source RPM : perl-Test-LWP-UserAgent-0.030-10.7.src.rpm
Size : 0.07 MB
Packager : (none)
Summary : LWP::UserAgent suitable for simulating and testing network calls
Description :
This module is a subclass of the LWP::UserAgent manpage which overrides a
few key low-level methods that are concerned with actually sending your
request over the network, allowing an interception of that request and
simulating a particular response. This greatly facilitates testing of
client networking code where the server follows a known protocol.

The synopsis describes a typical case where you want to test how your
application reacts to various responses from the server. This module will
let you send back various responses depending on the request, without
having to set up a real server to test against. This can be invaluable when
you need to test edge cases or error conditions that are not normally
returned from the server.

There are a lot of different ways you can set up the response mappings, and
hook into this module; see the documentation for the individual interface
methods.

You can use a the PSGI manpage app to handle the requests - see
_examples/call_psgi.t_ in this dist, and also the /register_psgi manpage
below.

OR, you can route some or all requests through the network as normal, but
still gain the hooks provided by this class to test what was sent and
received:

my $useragent = Test::LWP::UserAgent->new(network_fallback => 1);

or:

$useragent->map_network_response(qr/real.network.host/);




is(
$useragent->last_useragent->timeout,
180,
\'timeout was overridden properly\',
);
is(
$useragent->last_http_request_sent->uri,
\'uri my code should have constructed\',
);
is(
$useragent->last_http_response_received->code,
\'200\',
\'I should have gotten an OK response\',
);

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/vaclavb:/sentry:/raven:/perl/SLE_11_SP1/noarch

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(MyApp::Client)
perl(Test::LWP::UserAgent)
perl-Test-LWP-UserAgent

Requires :
rpmlib(PayloadIsLzma) <= 4.4.2-1
perl(URI)
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
perl(HTTP::Response)
perl(HTTP::Status)
perl(Try::Tiny)
perl(HTTP::Request)
perl(namespace::clean) => 0.19
perl = 5.10.0
rpmlib(CompressedFileNames) <= 3.0.4-1
perl(parent)
rpmlib(VersionedDependencies) <= 3.0.3-1
perl(IO::Socket::IP) => 0.31
perl(LWP::UserAgent)
perl(Safe::Isa)
perl(HTTP::Date)


Content of RPM :
/usr/lib/perl5/vendor_perl/5.10.0/Test
/usr/lib/perl5/vendor_perl/5.10.0/Test/LWP
/usr/lib/perl5/vendor_perl/5.10.0/Test/LWP/UserAgent.pm
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Test-LWP-UserAgent
/usr/share/doc/packages/perl-Test-LWP-UserAgent/CONTRIBUTING
/usr/share/doc/packages/perl-Test-LWP-UserAgent/Changes
/usr/share/doc/packages/perl-Test-LWP-UserAgent/LICENCE
/usr/share/doc/packages/perl-Test-LWP-UserAgent/README
/usr/share/doc/packages/perl-Test-LWP-UserAgent/docs
/usr/share/doc/packages/perl-Test-LWP-UserAgent/docs/advent_2012.pod
/usr/share/doc/packages/perl-Test-LWP-UserAgent/examples
/usr/share/doc/packages/perl-Test-LWP-UserAgent/examples/MyApp
/usr/share/doc/packages/perl-Test-LWP-UserAgent/examples/MyApp/Client.pm
/usr/share/doc/packages/perl-Test-LWP-UserAgent/examples/advent_2012_1.pl
/usr/share/doc/packages/perl-Test-LWP-UserAgent/examples/advent_2012_2.pl
/usr/share/doc/packages/perl-Test-LWP-UserAgent/examples/advent_2012_3.pl
/usr/share/doc/packages/perl-Test-LWP-UserAgent/examples/application_client_test.t
/usr/share/doc/packages/perl-Test-LWP-UserAgent/examples/call_psgi.t
/usr/share/doc/packages/perl-Test-LWP-UserAgent/examples/myapp.psgi
/usr/share/man/man3/Test::LWP::UserAgent.3pm.gz

 
ICM