@@ -2,7 +2,11 @@ import * as sinon from 'ts-sinon';
2
2
import faker from '@faker-js/faker' ;
3
3
import * as oas3 from 'openapi3-ts' ;
4
4
import { 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' ;
6
10
import * as storageServiceModule from '../lib/storageService' ;
7
11
import {
8
12
BuiltInArtifact ,
@@ -160,6 +164,12 @@ describe('Test CannerPersistenceStore', () => {
160
164
urlPath : '/orders' ,
161
165
templateSource : 'sales/orders' ,
162
166
profiles : [ faker . word . noun ( ) ] ,
167
+ cache : [
168
+ {
169
+ ...sinon . stubInterface < CacheLayerInfo > ( ) ,
170
+ profile : faker . lorem . word ( ) ,
171
+ } ,
172
+ ] ,
163
173
} ,
164
174
] ,
165
175
specs : {
@@ -184,6 +194,7 @@ describe('Test CannerPersistenceStore', () => {
184
194
urlPath : '/products/:id' ,
185
195
templateSource : 'marketing/products' ,
186
196
profiles : [ faker . word . noun ( ) ] ,
197
+ cache : [ ] ,
187
198
} ,
188
199
] ,
189
200
specs : {
@@ -213,11 +224,17 @@ describe('Test CannerPersistenceStore', () => {
213
224
urlPath : `${ fakeWorkspaces . ws1 . sqlName } /orders` ,
214
225
templateSource : `${ fakeWorkspaces . ws1 . sqlName } /sales/orders` ,
215
226
profiles : [ `canner-${ fakeWorkspaces . ws1 . sqlName } ` ] ,
227
+ cache : [
228
+ {
229
+ profile : `canner-${ fakeWorkspaces . ws1 . sqlName } ` ,
230
+ } ,
231
+ ] ,
216
232
} ,
217
233
{
218
234
urlPath : `${ fakeWorkspaces . ws2 . sqlName } /products/:id` ,
219
235
templateSource : `${ fakeWorkspaces . ws2 . sqlName } /marketing/products` ,
220
236
profiles : [ `canner-${ fakeWorkspaces . ws2 . sqlName } ` ] ,
237
+ cache : [ ] ,
221
238
} ,
222
239
] ,
223
240
specs : {
0 commit comments