US 12,259,851 B2
Testing templates used for implementing infrastructure as code
Zemann Phoesop Sheen, San Francisco, CA (US); Abhishek B. Waichal, Fremont, CA (US); and Srinivas Dhruvakumar, Vancouver (CA)
Assigned to Salesforce, Inc., San Francisco, CA (US)
Filed by Salesforce, Inc., San Francisco, CA (US)
Filed on Jan. 31, 2023, as Appl. No. 18/104,139.
Prior Publication US 2024/0256497 A1, Aug. 1, 2024
Int. Cl. G06F 16/185 (2019.01); G06F 11/3668 (2025.01)
CPC G06F 16/185 (2019.01) [G06F 11/3688 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A computer implemented method for generating pipelines for data centers configured on a cloud platform, the method comprising:
configuring a datacenter on the cloud platform based on a declarative specification specifying a hierarchy of datacenter entities;
identifying at least one template stored in a template directory in a file system;
identifying a set of macros defined in the template;
converting macros in the set of macros to a set of callable entities;
matching directory structures of candidate directories in the file system with a directory structure of the template directory;
determining a location of a test directory in the file system as a candidate directory matching the directory structure of the template directory;
setting a path of the template based on the location of the test directory;
executing testing code in the test directory for testing the template, wherein executing the testing code invokes the set of callable entities corresponding to the set of macros defined in the template; and
responsive to successful completion of executing the testing code for testing the template, executing the template to generate a set of pipelines to deploy software artifacts corresponding to the successfully tested template on the datacenter configured on the cloud platform.