Skip to content

Commit b1ba499

Browse files
committed
Fix broken bin test.
1 parent cb088dd commit b1ba499

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

scripts/bin-test/test.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,45 @@ const TIMEOUT_L = 10_000;
1313
const TIMEOUT_M = 5_000;
1414
const TIMEOUT_S = 1_000;
1515

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+
1631
const BASE_STACK = {
1732
endpoints: {
1833
v1http: {
34+
...DEFAULT_V1_OPTIONS,
1935
platform: "gcfv1",
2036
entryPoint: "v1http",
2137
httpsTrigger: {},
2238
},
2339
v1callable: {
40+
...DEFAULT_V1_OPTIONS,
2441
platform: "gcfv1",
2542
entryPoint: "v1callable",
2643
labels: {},
2744
callableTrigger: {},
2845
},
2946
v2http: {
47+
...DEFAULT_V2_OPTIONS,
3048
platform: "gcfv2",
3149
entryPoint: "v2http",
3250
labels: {},
3351
httpsTrigger: {},
3452
},
3553
v2callable: {
54+
...DEFAULT_V2_OPTIONS,
3655
platform: "gcfv2",
3756
entryPoint: "v2callable",
3857
labels: {},
@@ -183,11 +202,13 @@ describe("functions.yaml", () => {
183202
endpoints: {
184203
...BASE_STACK.endpoints,
185204
"g1-groupedhttp": {
205+
...DEFAULT_V1_OPTIONS,
186206
platform: "gcfv1",
187207
entryPoint: "g1.groupedhttp",
188208
httpsTrigger: {},
189209
},
190210
"g1-groupedcallable": {
211+
...DEFAULT_V1_OPTIONS,
191212
platform: "gcfv1",
192213
entryPoint: "g1.groupedcallable",
193214
labels: {},

0 commit comments

Comments
 (0)