@@ -2,7 +2,11 @@ import * as sinon from 'ts-sinon';
22import faker from '@faker-js/faker' ;
33import * as oas3 from 'openapi3-ts' ;
44import { BaseStorageService } from '@canner/canner-storage' ;
5- import { APISchema , ArtifactBuilderOptions } from '@vulcan-sql/core' ;
5+ import {
6+ APISchema ,
7+ ArtifactBuilderOptions ,
8+ CacheLayerInfo ,
9+ } from '@vulcan-sql/core' ;
610import * as storageServiceModule from '../lib/storageService' ;
711import {
812 BuiltInArtifact ,
@@ -160,6 +164,12 @@ describe('Test CannerPersistenceStore', () => {
160164 urlPath : '/orders' ,
161165 templateSource : 'sales/orders' ,
162166 profiles : [ faker . word . noun ( ) ] ,
167+ cache : [
168+ {
169+ ...sinon . stubInterface < CacheLayerInfo > ( ) ,
170+ profile : faker . lorem . word ( ) ,
171+ } ,
172+ ] ,
163173 } ,
164174 ] ,
165175 specs : {
@@ -184,6 +194,7 @@ describe('Test CannerPersistenceStore', () => {
184194 urlPath : '/products/:id' ,
185195 templateSource : 'marketing/products' ,
186196 profiles : [ faker . word . noun ( ) ] ,
197+ cache : [ ] ,
187198 } ,
188199 ] ,
189200 specs : {
@@ -213,11 +224,17 @@ describe('Test CannerPersistenceStore', () => {
213224 urlPath : `${ fakeWorkspaces . ws1 . sqlName } /orders` ,
214225 templateSource : `${ fakeWorkspaces . ws1 . sqlName } /sales/orders` ,
215226 profiles : [ `canner-${ fakeWorkspaces . ws1 . sqlName } ` ] ,
227+ cache : [
228+ {
229+ profile : `canner-${ fakeWorkspaces . ws1 . sqlName } ` ,
230+ } ,
231+ ] ,
216232 } ,
217233 {
218234 urlPath : `${ fakeWorkspaces . ws2 . sqlName } /products/:id` ,
219235 templateSource : `${ fakeWorkspaces . ws2 . sqlName } /marketing/products` ,
220236 profiles : [ `canner-${ fakeWorkspaces . ws2 . sqlName } ` ] ,
237+ cache : [ ] ,
221238 } ,
222239 ] ,
223240 specs : {
0 commit comments