IP Library Granted Patent US 11,288,178
Granted Patent B2
US 11,288,178 · App. 16/562,967 · Granted Mar 29, 2022

Container testing using a directory and test artifacts and/or test dependencies

Inventors: Eduard Benes (Brno, CZ); Matus Marhefka (Brno, CZ)
Assignee: Rat Hat, Inc.
G06F11/3692G06F9/45558G06F11/3664G06F11/3684G06F11/3688G06F8/63G06F2009/45587
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,288,178
App. No.
16/562,967
Granted
Mar 29, 2022
Kind
B2
Abstract

A system for testing container applications includes a memory, a processor in communication with the memory, a test manager, and a test controller. The test manager runs on a host operating system and creates a test container image including test artifact(s) and/or test dependency(ies). Then, the test manager distributes a set of tests, which are accessible to a test container created from the test container image. The test manager distributes the tests by populating a directory with the set of tests and mounting the directory to the test container. Additionally, the test manager executes the test container image. The test controller is associated with the test container and executes the set of tests accessible to the test container using the test artifact(s) and/or the test dependency(ies). The test controller also monitors the set of tests executed by the test container. Feedback corresponding to the set of tests is provided.

Claims (36)

1. A system comprising:

a memory;

a processor in communication with the memory;

a test manager executing on the processor, configured to:

create a test container image including a configuration file,

distribute a set of tests, which are accessible to a test container created from the test container image, by populating a directory with the set of tests and mounting the directory to the test container, and

execute the test container image; and

a test controller executing on the processor, the test controller associated with the test container, configured to:

execute the set of tests accessible to the test container using the configuration file.

2. The system of claim 1 , wherein the test controller executes on the processor to destroy at least one test process associated with the set of tests responsive to receiving a test timeout, wherein responsive to taking a respective action of destroying the at least one test process, the test controller executes on the processor to log the respective action by writing a test killed entry in an error log on the directory, and wherein responsive to taking the respective action of destroying the at least one test process, the test controller executes on the processor to un-block other tests of the set of tests by proceeding with a subsequent test process in the set of tests and recording applicable test data for the subsequent test process.

3. The system of claim 1 , wherein the test controller and the test manager runs on a host OS.

4. The system of claim 1 , wherein the test controller runs within the test container.

5. The system of claim 1 , wherein the test controller runs within a different container.

6. The system of claim 5 , wherein the set of tests is executed through a network.

7. The system of claim 6 , wherein an application associated with the different container provides a network service.

8. The system of claim 1 , wherein the set of tests are executed offline.

9. The system of claim 1 , wherein the set of tests are accessed from the directory according to a directory structure.

10. A method comprising:

creating, by a test manager running on a host, a test container image including a configuration file;

distributing, by the test manager, a set of tests, which are accessible to a test container created from the test container image, by populating a directory with the set of tests and mounting the directory to the test container;

executing, by the test manager, the test container image; and

executing, by a test controller associated with the test container, the set of tests accessible to the test container using the configuration file.

11. The method of claim 10 , further including destroying, by the test controller, the set of tests responsive to receiving a test timeout.

12. The method of claim 10 , wherein creating the test container image includes building a test layer including the configuration file above a base layer of the test container image.

13. The method of claim 10 , wherein distributing the set of tests accessible to the test container uses a volume mount including the directory.

14. The method of claim 13 , wherein the directory is automatically mounted to the test container after the test container is started.

15. The method of claim 10 , further comprising providing feedback corresponding to the set of tests.

16. The method of claim 10 , further comprising recording a result from executing the set of tests.

17. The method of claim 16 , wherein the result is recorded in a log file inside the directory.

18. The method of claim 17 , further comprising, reading, by the test manager, the log file.

19. A method comprising:

creating, by a test manager executing on a processor, a test container image including a configuration file, wherein the test container image is configured to create a test container;

executing, by a test controller associated with the test container, a set of tests accessible to the test container using the configuration file;

monitoring, by the test controller, the set of tests executed by the test container; and

providing feedback corresponding to the set of tests.

20. The method of claim 19 , wherein the set of tests are executed offline.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 9, 2019
From: BENES, EDUARD; MARHEFKA, MATUS
To: RED HAT, INC.
Reel/Frame 050311/0932 →
Continuity (2)
Continuation 15597809 · May 17, 2017
Related Publication 20190391911A1 · Dec 26, 2019
Cited By (2)
US 12,554,856 US 12,603,825