Skip to content

Commit

Permalink
Merge bffa9c1 into 6d2cff5
Browse files Browse the repository at this point in the history
  • Loading branch information
bao1018 committed Mar 29, 2020
2 parents 6d2cff5 + bffa9c1 commit c298c2a
Show file tree
Hide file tree
Showing 3 changed files with 6,598 additions and 21 deletions.
4 changes: 0 additions & 4 deletions package/lib/compileFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ module.exports = {
_.get(funcObject, 'memorySize') ||
_.get(this, 'serverless.service.provider.memorySize') ||
256;
funcTemplate.properties.location =
_.get(funcObject, 'location') ||
_.get(this, 'serverless.service.provider.region') ||
'us-central1';
funcTemplate.properties.runtime =
_.get(funcObject, 'runtime') ||
_.get(this, 'serverless.service.provider.runtime') ||
Expand Down
17 changes: 0 additions & 17 deletions package/lib/compileFunctions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ describe('CompileFunctions', () => {
entryPoint: 'func1',
availableMemoryMb: 1024,
timeout: '60s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
httpsTrigger: {
url: 'foo',
Expand Down Expand Up @@ -152,7 +151,6 @@ describe('CompileFunctions', () => {
entryPoint: 'func1',
availableMemoryMb: 1024,
timeout: '60s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
httpsTrigger: {
url: 'foo',
Expand Down Expand Up @@ -190,7 +188,6 @@ describe('CompileFunctions', () => {
entryPoint: 'func1',
availableMemoryMb: 256,
timeout: '120s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
httpsTrigger: {
url: 'foo',
Expand Down Expand Up @@ -228,7 +225,6 @@ describe('CompileFunctions', () => {
entryPoint: 'func1',
availableMemoryMb: 256,
timeout: '120s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
httpsTrigger: {
url: 'foo',
Expand Down Expand Up @@ -268,7 +264,6 @@ describe('CompileFunctions', () => {
entryPoint: 'func1',
availableMemoryMb: 256,
timeout: '60s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
httpsTrigger: {
url: 'foo',
Expand Down Expand Up @@ -310,7 +305,6 @@ describe('CompileFunctions', () => {
entryPoint: 'func1',
availableMemoryMb: 256,
timeout: '60s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
httpsTrigger: {
url: 'foo',
Expand Down Expand Up @@ -356,7 +350,6 @@ describe('CompileFunctions', () => {
entryPoint: 'func1',
availableMemoryMb: 256,
timeout: '60s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
httpsTrigger: {
url: 'foo',
Expand Down Expand Up @@ -402,7 +395,6 @@ describe('CompileFunctions', () => {
TEST_VAR: 'test',
},
timeout: '60s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
httpsTrigger: {
url: 'foo',
Expand Down Expand Up @@ -445,7 +437,6 @@ describe('CompileFunctions', () => {
TEST_VAR: 'test',
},
timeout: '60s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
httpsTrigger: {
url: 'foo',
Expand Down Expand Up @@ -485,7 +476,6 @@ describe('CompileFunctions', () => {
name: 'my-service-dev-func1',
properties: {
parent: 'projects/myProject/locations/us-central1',
location: 'us-central1',
runtime: 'nodejs8',
function: 'my-service-dev-func1',
entryPoint: 'func1',
Expand Down Expand Up @@ -536,7 +526,6 @@ describe('CompileFunctions', () => {
entryPoint: 'func1',
availableMemoryMb: 256,
timeout: '60s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
httpsTrigger: {
url: 'foo',
Expand Down Expand Up @@ -592,7 +581,6 @@ describe('CompileFunctions', () => {
entryPoint: 'func1',
availableMemoryMb: 256,
timeout: '60s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
eventTrigger: {
eventType: 'foo',
Expand All @@ -612,7 +600,6 @@ describe('CompileFunctions', () => {
entryPoint: 'func2',
availableMemoryMb: 256,
timeout: '60s',
location: 'us-central1',
sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
eventTrigger: {
eventType: 'foo',
Expand Down Expand Up @@ -648,7 +635,6 @@ describe('CompileFunctions', () => {
name: 'my-service-dev-func1',
properties: {
parent: 'projects/myProject/locations/us-central1',
location: 'us-central1',
runtime: 'nodejs8',
function: 'my-service-dev-func1',
entryPoint: 'func1',
Expand Down Expand Up @@ -690,7 +676,6 @@ describe('CompileFunctions', () => {
name: 'my-service-dev-func1',
properties: {
parent: 'projects/myProject/locations/us-central1',
location: 'us-central1',
runtime: 'nodejs8',
function: 'my-service-dev-func1',
entryPoint: 'func1',
Expand Down Expand Up @@ -740,7 +725,6 @@ describe('CompileFunctions', () => {
name: 'my-service-dev-func1',
properties: {
parent: 'projects/myProject/locations/us-central1',
location: 'us-central1',
runtime: 'nodejs8',
function: 'my-service-dev-func1',
entryPoint: 'func1',
Expand All @@ -759,7 +743,6 @@ describe('CompileFunctions', () => {
name: 'my-service-dev-func2',
properties: {
parent: 'projects/myProject/locations/us-central1',
location: 'us-central1',
runtime: 'nodejs8',
function: 'my-service-dev-func2',
entryPoint: 'func2',
Expand Down

0 comments on commit c298c2a

Please sign in to comment.