File tree 1 file changed +21
-0
lines changed 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -13,26 +13,45 @@ const TIMEOUT_L = 10_000;
13
13
const TIMEOUT_M = 5_000 ;
14
14
const TIMEOUT_S = 1_000 ;
15
15
16
+ const DEFAULT_OPTIONS = {
17
+ memory : null ,
18
+ maxInstances : null ,
19
+ minInstances : null ,
20
+ timeoutSeconds : null ,
21
+ vpcConnector : null ,
22
+ vpcConnectorEgressSettings : null ,
23
+ serviceAccount : null ,
24
+ ingressSettings : null ,
25
+ } ;
26
+
27
+ const DEFAULT_V1_OPTIONS = { ...DEFAULT_OPTIONS } ;
28
+
29
+ const DEFAULT_V2_OPTIONS = { ...DEFAULT_OPTIONS , concurrency : null } ;
30
+
16
31
const BASE_STACK = {
17
32
endpoints : {
18
33
v1http : {
34
+ ...DEFAULT_V1_OPTIONS ,
19
35
platform : "gcfv1" ,
20
36
entryPoint : "v1http" ,
21
37
httpsTrigger : { } ,
22
38
} ,
23
39
v1callable : {
40
+ ...DEFAULT_V1_OPTIONS ,
24
41
platform : "gcfv1" ,
25
42
entryPoint : "v1callable" ,
26
43
labels : { } ,
27
44
callableTrigger : { } ,
28
45
} ,
29
46
v2http : {
47
+ ...DEFAULT_V2_OPTIONS ,
30
48
platform : "gcfv2" ,
31
49
entryPoint : "v2http" ,
32
50
labels : { } ,
33
51
httpsTrigger : { } ,
34
52
} ,
35
53
v2callable : {
54
+ ...DEFAULT_V2_OPTIONS ,
36
55
platform : "gcfv2" ,
37
56
entryPoint : "v2callable" ,
38
57
labels : { } ,
@@ -183,11 +202,13 @@ describe("functions.yaml", () => {
183
202
endpoints : {
184
203
...BASE_STACK . endpoints ,
185
204
"g1-groupedhttp" : {
205
+ ...DEFAULT_V1_OPTIONS ,
186
206
platform : "gcfv1" ,
187
207
entryPoint : "g1.groupedhttp" ,
188
208
httpsTrigger : { } ,
189
209
} ,
190
210
"g1-groupedcallable" : {
211
+ ...DEFAULT_V1_OPTIONS ,
191
212
platform : "gcfv1" ,
192
213
entryPoint : "g1.groupedcallable" ,
193
214
labels : { } ,
You can’t perform that action at this time.
0 commit comments