-
Notifications
You must be signed in to change notification settings - Fork 200
/
fixtures.ts
60 lines (57 loc) · 1.42 KB
/
fixtures.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { ManifestEndpoint } from '../../../src/runtime/manifest';
import { TriggerAnnotation } from '../../../src/v2/core';
import * as options from '../../../src/v2/options';
export const FULL_OPTIONS: options.GlobalOptions = {
region: 'us-west1',
memory: '512MB',
timeoutSeconds: 60,
minInstances: 1,
maxInstances: 3,
concurrency: 20,
vpcConnector: 'aConnector',
vpcConnectorEgressSettings: 'ALL_TRAFFIC',
serviceAccount: 'root@',
ingressSettings: 'ALLOW_ALL',
cpu: 'gcf_gen1',
labels: {
hello: 'world',
},
secrets: ['MY_SECRET'],
};
export const FULL_TRIGGER: TriggerAnnotation = {
platform: 'gcfv2',
regions: ['us-west1'],
availableMemoryMb: 512,
timeout: '60s',
minInstances: 1,
maxInstances: 3,
concurrency: 20,
vpcConnector: 'aConnector',
vpcConnectorEgressSettings: 'ALL_TRAFFIC',
serviceAccountEmail: 'root@aProject.iam.gserviceaccount.com',
ingressSettings: 'ALLOW_ALL',
labels: {
hello: 'world',
},
secrets: ['MY_SECRET'],
};
export const FULL_ENDPOINT: ManifestEndpoint = {
platform: 'gcfv2',
region: ['us-west1'],
availableMemoryMb: 512,
timeoutSeconds: 60,
minInstances: 1,
maxInstances: 3,
concurrency: 20,
vpc: {
connector: 'aConnector',
egressSettings: 'ALL_TRAFFIC',
},
serviceAccountEmail: 'root@',
ingressSettings: 'ALLOW_ALL',
cpu: 'gcf_gen1',
labels: {
hello: 'world',
},
secretEnvironmentVariables: [{ key: 'MY_SECRET' }],
};