# US 2013/0254594 A1 · Blocking a selected port prior to installation of an application

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0254594 A1
- Document ID: US20130254594A1
- Status: Published application
- Kind: A1
- Application number: 13/895,248
- Filed: 2013-05-15
- Published: 2013-09-26
- Earliest claimed: 2010-02-04
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Matthew Everett Brooks
- Web page: https://patentgrep.com/patent/US20130254594A1

## CPC

- G06F 8/61: Installation
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3668: Testing of software
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 15/177: Initialisation or configuration control {(processor initialisation G06F9/4405)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## 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.

## Claims

### Claim 1

A method, comprising:
installing, by an installer application implemented in a computational device, a test application by binding a socket to a selected port of a plurality of ports, in response to a blocking of the selected port;
testing a first function of the test application by executing a first code path that uses the selected port, and subsequently unblocking the selected port; and
testing a second function of the test application by executing a second code path that does not use the selected port.

### Claim 2 (depends on 1)

The method of claim 1, wherein the test application is installed and tested, and wherein testing of the test application includes testing the first function and testing the second function.

### Claim 3 (depends on 1)

The method of claim 1, the method further comprising:
unblocking the selected port, in response to determining that the selected port is blocked; and
testing the functions the test application by executing one or more code paths of the test application, in response to unblocking the selected port.

### Claim 4 (depends on 1)

The method of claim 1, wherein the installer application provides an interface with selections to:
block one or more ports of the plurality of ports;
list ports that are blocked in the plurality of ports;
bind one or more sockets to corresponding ports of the plurality of ports; and
close the one or more sockets to the corresponding ports of the plurality of ports.

### Claim 5 (depends on 1)

The method of claim 1, wherein the plurality of ports are a plurality of TCP/IP ports and wherein the socket is reservation on a TCP/IP port of the plurality of TCP/IP ports.

### Claim 6

A system, comprising:
a memory; and
a processor coupled to the memory, wherein the processor performs operations, the operations comprising:
installing, by an installer application, a test application by binding a socket to a selected port of a plurality of ports, in response to a blocking of the selected port;
testing a first function of the test application by executing a first code path that uses the selected port, and subsequently unblocking the selected port; and
testing a second function of the test application by executing a second code path that does not use the selected port.

### Claim 7 (depends on 6)

The system of claim 6, wherein the test application is installed and tested, and wherein testing of the test application includes testing the first function and testing the second function.

### Claim 8 (depends on 6)

The system of claim 6, the operations further comprising:
unblocking the selected port, in response to determining that the selected port is blocked; and
testing the functions the test application by executing one or more code paths of the test application, in response to unblocking the selected port.

### Claim 9 (depends on 6)

The system of claim 6, wherein the installer application provides an interface with selections to:
block one or more ports of the plurality of ports;
list ports that are blocked in the plurality of ports;
bind one or more sockets to corresponding ports of the plurality of ports; and
close the one or more sockets to the corresponding ports of the plurality of ports.

### Claim 10 (depends on 6)

The system of claim 6, wherein the plurality of ports are a plurality of TCP/IP ports and wherein the socket is reservation on a TCP/IP port of the plurality of TCP/IP ports.

### Claim 11

A computer program product, the computer program product comprising:
a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code configured to perform operations, the operations comprising:
installing, by an installer application, a test application by binding a socket to a selected port of a plurality of ports, in response to a blocking of the selected port;
testing a first function of the test application by executing a first code path that uses the selected port, and subsequently unblocking the selected port; and
testing a second function of the test application by executing a second code path that does not use the selected port.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein the test application is installed and tested, and wherein testing of the test application includes testing the first function and testing the second function.

### Claim 13 (depends on 11)

The computer program product of claim 11, the operations further comprising:
unblocking the selected port, in response to determining that the selected port is blocked; and
testing the functions the test application by executing one or more code paths of the test application, in response to unblocking the selected port.

### Claim 14 (depends on 11)

The computer program product of claim 11, wherein the installer application provides an interface with selections to:
block one or more ports of the plurality of ports;
list ports that are blocked in the plurality of ports;
bind one or more sockets to corresponding ports of the plurality of ports; and
close the one or more sockets to the corresponding ports of the plurality of ports.

### Claim 15 (depends on 11)

The computer program product of claim 11, wherein the plurality of ports are a plurality of TCP/IP ports and wherein the socket is reservation on a TCP/IP port of the plurality of TCP/IP ports.

### Claim 16

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:
installing, by an installer application, a test application by binding a socket to a selected port of a plurality of ports, in response to a blocking of the selected port;
testing a first function of the test application by executing a first code path that uses the selected port, and subsequently unblocking the selected port; and
testing a second function of the test application by executing a second code path that does not use the selected port.

### Claim 17 (depends on 16)

The method for deploying computing infrastructure of claim 16, wherein the test application is installed and tested, and wherein testing of the test application includes testing the first function and testing the second function.

### Claim 18 (depends on 16)

The method for deploying computing infrastructure of claim 16, the operations further comprising:
unblocking the selected port, in response to determining that the selected port is blocked; and
testing the functions the test application by executing one or more code paths of the test application, in response to unblocking the selected port.

### Claim 19 (depends on 16)

The method for deploying computing infrastructure of claim 16, wherein the installer application provides an interface with selections to:
block one or more ports of the plurality of ports;
list ports that are blocked in the plurality of ports;
bind one or more sockets to corresponding ports of the plurality of ports; and
close the one or more sockets to the corresponding ports of the plurality of ports.

### Claim 20 (depends on 16)

The method for deploying computing infrastructure of claim 16, wherein the plurality of ports are a plurality of TCP/IP ports and wherein the socket is reservation on a TCP/IP port of the plurality of TCP/IP ports.
