Upstream software project

perl-Test-HTTP-MockServer

Implement a mock HTTP server for use in tests

About perl-Test-HTTP-MockServer

Implement a mock HTTP server for use in tests

This project links 3 native package records across 3 recorded operating-system releases. Compare the retained versions and architectures below, then open the package for your own release.

These are catalog observations, not a guarantee of installation, compatibility, or upstream support.

Project pictures and package coverage

openSUSE Leap 15.6: 1 package records; openSUSE Leap 16.0: 1 package records; openSUSE Tumbleweed: 1 package records. Catalog coverage diagram, not an application screenshot.perl-Test-HTTP-MockServer: recorded package coverageopenSUSE Leap 15.61 recordsopenSUSE Leap 16.01 recordsopenSUSE Tumbleweed1 records
OpenFactory diagram of linked package records. It is not an application screenshot.

Project identity

Project
perl-Test-HTTP-MockServer
Publisher
Not authoritatively mapped
Native package records
3
Operating systems
opensuse-leap-15-6, opensuse-leap-16-0, opensuse-tumbleweed
License expression
Apache-2.0
Source repository
Not reported

Source-reported description

The fullest retained description is shown with its source. Distribution packaging descriptions may include downstream details.

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.

Description source

Packages by operating system

Compare recorded versions, then open a package for dependency, file, checksum, and repository evidence. Version strings are distribution-specific, not a ranking of newer software.

openSUSE Leap 15.6

  1. Package perl-Test-HTTP-MockServer

    leap-15.6 (openSUSE Leap 15.6) (Unspecified): Implement a mock HTTP server for use in tests

    0.0.1-bp156.2.1: noarch

    Source: perl-Test-HTTP-MockServer

openSUSE Leap 16.0

  1. Package perl-Test-HTTP-MockServer

    leap-16.0 (openSUSE Leap 16.0) (Unspecified): Implement a mock HTTP server for use in tests

    0.0.1-bp160.1.10: noarch

    Source: perl-Test-HTTP-MockServer

openSUSE Tumbleweed

  1. Package perl-Test-HTTP-MockServer

    tumbleweed (openSUSE Tumbleweed) (Unspecified): Implement a mock HTTP server for use in tests

    0.0.1-2.22: noarch

    Source: perl-Test-HTTP-MockServer

Project resources and further reading

Mapping provenance

Only source-backed identity signals create public cross-OS links. A reviewer can later approve or dispute an inferred relationship without rewriting native package history.

No field-level source record is published yet.