System for instantiating service instances for testing in a known state
AssigneeGoogle Inc.
InventorJoseph Graves
Life of this patent
Estimating the term…
Abstract
It is frequently difficult to generate multiple separate instances of a complex system. It is also difficult to restore the data state of these instances to a known state. Embodiments simplify the process by classifying the complex system under test in terms of its state components and service, by creating a new instance for testing, and by using copy-on write approaches to restore that new instance to the desired known state.
Claims20
A computer-implemented method for managing sandbox environment instances, the method comprising:
- instantiating a first testing sandbox environment instance to a known state based on a golden state definition, wherein the golden state definition specifies configurations of at least one component and at least one service for the first testing sandbox environment instance;
- performing a testing operation using the first testing sandbox environment instance by changing the configuration of at least one component or service of the first testing sandbox environment instance without changing the golden state definition, wherein the configuration of the at least one component or service of the first testing sandbox environment instance is placed in a testing state;
- determining changes between the configurations of the at least one component or service of the first testing sandbox environment instance and the configurations of the at least one component and at least one service of the golden state definition after performing the testing operation;
- and
- selectively restoring the first testing sandbox environment instance to the known state using the determined changes to only restore configurations of the at least one component or service of the first testing sandbox environment instance that were changed.
A system for managing sandboxes, the system comprising:
- a processor;
- a memory coupled to the processor;
- and
- a sandbox management unit, configured to use the processor and the memory to manage sandboxes, the sandbox management unit comprising:
- an instantiation unit, configured to instantiate a first testing sandbox environment instance to a known state based on a golden state definition, wherein the golden state definition specifies configurations of at least one component and at least one service for the first testing sandbox environment instance;
- a testing unit, configured to perform a testing operation using the first testing sandbox environment instance by changing the configuration of at least one component or service of the first testing sandbox environment instance without changing the golden state definition, wherein the configuration of the at least one component or service of the first testing sandbox environment instance is placed in a testing state;
- and
- a restoration unit configured to:
- determine changes between the configurations of the at least one component or service of the first testing sandbox environment instance and the configurations of the at least one component and at least one service of the golden state definition after performing the testing operation;
- and
- selectively restore the first testing sandbox environment instance to the known state using the determined changes to only restore configurations of the at least one component or service of the first testing sandbox environment instance that were changed.
A computer readable storage medium having instructions stored thereon that, when executed by one or more processors, cause the processors to execute operations for managing sandboxes, the operations comprising:
- instantiating a first testing sandbox environment instance to a known state based on a golden state definition, wherein the golden state definition specifies configurations of at least one component and at least one service for the first testing sandbox environment instance;
- performing a testing operation using the first testing sandbox environment instance by changing the configuration of at least one component or service of the first testing sandbox environment instance without changing the golden state definition, wherein the configuration of the at least one component or service of the first testing sandbox environment instance is placed in a testing state;
- determining changes between the configurations of the at least one component or service of the first testing sandbox environment instance and the configurations of the at least one component and at least one service of the golden state definition after performing the testing operation;
- and
- selectively restoring the first testing sandbox environment instance to the known state using the determined changes to only restore configurations of the at least one component or service of the first testing sandbox environment instance that were changed.
Dependencies are inferred from the claim text.