Blocking a selected port prior to installation of an application
AssigneeInternational Business Machines Corporation
InventorMatthew Everett Brooks
Life of this patent
Estimating the term…
Abstract
An installer application implemented in a computational device receives a command to install a test application in the computational device. The installer application determines whether a selected port of a plurality of ports of the computational device is to be blocked prior to installing the test application in the computational device. In response to determining that the selected port is to be blocked prior to installing the test application in the computational device, the installer application blocks the selected port, installs the test application by binding a socket to the selected port of the plurality of ports, and tests functions of the test application by executing one or more code paths of the test application, in response to installing the test application.
Claims20
A method, comprising:
- receiving, by an installer application implemented in a computational device, a command to install a test application in the computational device, wherein the test application includes a first code path and a second code path that are to be tested, and wherein a selected port of a plurality of ports is used in first code path and not used in the second code path;
- blocking, by the installer application, the selected port, in response to receiving the command to install the test application;
- installing, by the installer application, the test application by binding a socket to the selected port of the plurality of ports, in response to blocking the selected port;
- testing first functions of the test application by executing the first code path that uses the selected port, in response to installing the test application;
- unblocking, by the installer application, the selected port, in response to testing the first functions;
- and
- testing second functions of the test application by executing the second code path that does not use the selected port.
A system, comprising:
- a memory;
- and
- a processor coupled to the memory, wherein the processor performs operations, the operations comprising:
- receiving, by an installer application, a command to install a test application, wherein the test application includes a first code path and a second code path that are to be tested, and wherein a selected port of a plurality of ports is used in first code path and not used in the second code path;
- blocking, by the installer application, the selected port, in response to receiving the command to install the test application;
- installing, by the installer application, the test application by binding a socket to the selected port of the plurality of ports, in response to blocking the selected port;
- testing first functions of the test application by executing the first code path that uses the selected port, in response to installing the test application;
- unblocking, by the installer application, the selected port, in response to testing the first functions;
- and
- testing second functions of the test application by executing the second code path that does not use the selected port.
A computer program product, the computer program product comprising:
- a computer readable storage device having computer readable program code embodied therewith, the computer readable program code configured to perform operations, the operations comprising:
- receiving, by an installer application, a command to install a test application, wherein the test application includes a first code path and a second code path that are to be tested, and wherein a selected port of a plurality of ports is used in first code path and not used in the second code path;
- blocking, by the installer application, the selected port, in response to receiving the command to install the test application;
- installing, by the installer application, the test application by binding a socket to the selected port of the plurality of ports, in response to blocking the selected port;
- testing first functions of the test application by executing the first code path that uses the selected port, in response to installing the test application;
- unblocking, by the installer application, the selected port, in response to testing the first functions;
- and
- testing second functions of the test application by executing the second code path that does not use the selected port.
A method for deploying computing infrastructure, comprising integrating computer-readable code into a computational device, the computer-readable code in combination with the computational device performs operations, the operations comprising:
- receiving, by an installer application implemented in a computational device, a command to install a test application in the computational device, wherein the test application includes a first code path and a second code path that are to be tested, and wherein a selected port of a plurality of ports is used in first code path and not used in the second code path;
- blocking, by the installer application, the selected port, in response to receiving the command to install the test application;
- installing, by the installer application, the test application by binding a socket to the selected port of the plurality of ports, in response to blocking the selected port;
- testing first functions of the test application by executing the first code path that uses the selected port, in response to installing the test application;
- unblocking, by the installer application, the selected port, in response to testing the first functions;
- and
- testing second functions of the test application by executing the second code path that does not use the selected port.
Dependencies are inferred from the claim text.