-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Pub/Sub support + HTTPS testing (#925)
Add Pub/Sub support + HTTPS testing While adding Pub/Sub support I noticed that there were now v2/ tests. Added those tests + fixes that they uncovered. Also fixed issue where 'firebase-functions/logger' wasn't working as an import in my test project.
- Loading branch information
Showing
11 changed files
with
754 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
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', | ||
labels: { | ||
hello: 'world', | ||
}, | ||
}; | ||
|
||
export const FULL_TRIGGER = { | ||
apiVersion: 2, | ||
platform: 'gcfv2', | ||
regions: ['us-west1'], | ||
availableMemoryMb: 512, | ||
timeout: '60s', | ||
minInstances: 1, | ||
maxInstances: 3, | ||
concurrency: 20, | ||
vpcConnector: 'aConnector', | ||
vpcConnectorEgressSettings: 'ALL_TRAFFIC', | ||
serviceAccountEmail: '[email protected]', | ||
ingressSettings: 'ALLOW_ALL', | ||
labels: { | ||
hello: 'world', | ||
}, | ||
}; |
Oops, something went wrong.