Dynamic virtual service
First Claim
Patent Images
1. A method comprising:
- receiving a request from a software component at a virtual service simulating a particular data service, wherein the virtual service is instantiated from a service model, the service model is based at least in part on previously observed request-response pairs involving the particular data service, the service model models response behavior of the particular data service to one or more types of requests, the request comprises an uniform resource locator (URL), the URL comprises a service root portion and a resource path portion, and the resource path portion identifies a particular resource of a data structure, wherein the virtual service further comprises a data model corresponding to the particular data service;
verifying syntax of at least the resource path portion based on a particular protocol using a data model;
verifying consistency of the resource path portion with a structure of the data model corresponding to the particular data service, wherein the service model identifies the data model;
performing a query of a database using the virtual service based on contents of at least the resource path portion;
generating, at the virtual service, a simulated response of the particular data service to the request using results of the query; and
sending the simulated response to the software component in lieu of an actual response by the particular data service.
1 Assignment
0 Petitions
Accused Products
Abstract
A request is received at a virtual service simulating a particular data service. The request includes a uniform resource locator (URL) that includes a service root portion and a resource path portion identifying a particular resource of a data structure. Syntax of at least the resource path portion is verified based on a particular protocol. Consistency of the resource path portion with a structure of a data model corresponding to the particular data service is also verified. A query of a database is performed based on contents of at least the resource path portion and a simulated response of the particular data service to the request is generated using results of the query.
-
Citations
20 Claims
-
1. A method comprising:
-
receiving a request from a software component at a virtual service simulating a particular data service, wherein the virtual service is instantiated from a service model, the service model is based at least in part on previously observed request-response pairs involving the particular data service, the service model models response behavior of the particular data service to one or more types of requests, the request comprises an uniform resource locator (URL), the URL comprises a service root portion and a resource path portion, and the resource path portion identifies a particular resource of a data structure, wherein the virtual service further comprises a data model corresponding to the particular data service; verifying syntax of at least the resource path portion based on a particular protocol using a data model; verifying consistency of the resource path portion with a structure of the data model corresponding to the particular data service, wherein the service model identifies the data model; performing a query of a database using the virtual service based on contents of at least the resource path portion; generating, at the virtual service, a simulated response of the particular data service to the request using results of the query; and sending the simulated response to the software component in lieu of an actual response by the particular data service. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A non-transitory computer readable medium having program instructions stored therein, wherein the program instructions are executable by a computer system to perform operations comprising:
-
receiving a request from a software component at a virtual service, wherein the virtual service simulates particular data service, the virtual service is instantiated from a service model, the service model is based at least in part on previously observed request-response pairs involving the particular data service, the service model models response behavior of the particular data service based on the previously observed request response pairs, the request comprises an uniform resource locator (URL), the URL comprises a service root portion and a resource path portion, and the resource path portion identifies a particular resource of a data structure; verifying, at the virtual service, syntax of at least the resource path portion based on a particular protocol; verifying, at the virtual service, consistency of the resource path portion with a structure of a data model corresponding to the particular data service, wherein the service model identifies the data model; performing, using the virtual service, a query of a database based on contents of at least the resource path portion; generating, at the virtual service, a simulated response of the particular data service to the request using results of the query; and sending the simulated response from the virtual service to the software component in lieu of an actual response by the particular data service.
-
-
20. A system comprising:
-
a data processor; a memory, wherein the memory stores a virtual service model; a database; and a virtual service engine to host a virtual service simulating a particular data service, wherein the virtual service is derived from the virtual service model, the virtual service model comprises a definition of a particular data model of the particular data service, and the virtual service is to; receive a request comprising an uniform resource locator (URL), the URL comprises a service root portion and a resource path portion, and the resource path portion identifies a particular resource of a data structure; verify syntax of at least the resource path portion based on a particular protocol; verify consistency of the resource path portion with a structure of the particular data model corresponding to the particular data service; perform a query of the database based on contents of at least the resource path portion; generate a simulated response of the particular data service to the request using results of the query; and send the simulated response to a software component in lieu of an actual response by the particular data service.
-
Specification