Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help

The search service can find package by either name (apache), provides(webserver), absolute file names (/usr/bin/apache), binaries (gprof) or shared libraries (libXm.so.2) in standard path. It does not support multiple arguments yet...

The System and Arch are optional added filters, for example System could be "redhat", "redhat-7.2", "mandrake" or "gnome", Arch could be "i386" or "src", etc. depending on your system.

System Arch

RPM resource perl-Test-HTTP-MockServer

Sometimes, when writing a test, you don't have to oportunity to do dependency injection of the type of transport used in a specific API. Sometimes that code willl unequivocally always use actual HTTP and the only control you have is over the host and port to which it will connect. This class offer a simple way to mock the service being called. It does that by binding to a random port on localhost and allowing you to inspect which port that was. Using a random port means that this can be used by tests running in parallel on the same host. The socket will be bound and listened on the main test process, such that the lifetime of the connection is defined by the lifetime of the test itself. Since the socket will be already bound and listened to, the two conntrol methods (start_mock_server and stop_mock_server) fork only for the accept call, which means that it is safe to call start and stop several times during the test in order to change the expectations of the mocked code. That allows you to easily configure the expectations of the mock server across each step of your test case. On the other hand, it also means that no state is shared between the code running in the mock server and the test code.

Found 1 sites for perl-Test-HTTP-MockServer

Found 5 RPM for perl-Test-HTTP-MockServer

PackageSummaryDistributionDownload
perl-Test-HTTP-MockServer-0.0.1-2.15.noarch.htmlImplement a mock HTTP server for use in testsOpenSuSE Tumbleweed for noarchperl-Test-HTTP-MockServer-0.0.1-2.15.noarch.rpm
perl-Test-HTTP-MockServer-0.0.1-2.12.noarch.htmlImplement a mock HTTP server for use in testsOpenSuSE Ports Tumbleweed for noarchperl-Test-HTTP-MockServer-0.0.1-2.12.noarch.rpm
Implement a mock HTTP server for use in testsperl-Test-HTTP-MockServer-0.0.1-2.9.noarch.rpm
perl-Test-HTTP-MockServer-0.0.1-bp156.2.1.noarch.htmlImplement a mock HTTP server for use in testsOpenSuSE Leap 15.6 for noarchperl-Test-HTTP-MockServer-0.0.1-bp156.2.1.noarch.rpm
perl-Test-HTTP-MockServer-0.0.1-bp155.1.4.noarch.htmlImplement a mock HTTP server for use in testsOpenSuSE Leap 15.5 for noarchperl-Test-HTTP-MockServer-0.0.1-bp155.1.4.noarch.rpm

Generated by rpm2html 1.6

Fabrice Bellet