Skip to content

Commit 0e27f5e

Browse files
authored
Fix tests (#96)
1 parent 858287b commit 0e27f5e

File tree

17 files changed

+71
-102
lines changed

17 files changed

+71
-102
lines changed

examples/container-schedule/serverless.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ provider:
55
# Global Environment variables - used in every functions
66
env:
77
test: test
8-
# the path to the credentials file needs to be absolute
9-
scwToken: <scw-token>
10-
scwProject: <scw-project-id>
11-
# region in which the deployment will happen
12-
scwRegion: fr-par
138

149
plugins:
1510
- serverless-scaleway-functions

examples/container/serverless.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ provider:
55
# Global Environment variables - used in every functions
66
env:
77
test: test
8-
# the path to the credentials file needs to be absolute
9-
scwToken: <scw-token>
10-
scwProject: <scw-project-id>
11-
# region in which the deployment will happen
12-
scwRegion: fr-par
138

149
plugins:
1510
- serverless-scaleway-functions

examples/go/serverless.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ provider:
66
# Global Environment variables - used in every functions
77
env:
88
test: test
9-
# the path to the credentials file needs to be absolute
10-
scwToken: <scw-token>
11-
scwProject: <scw-project-id>
12-
# region in which the deployment will happen
13-
scwRegion: fr-par
149

1510
plugins:
1611
- serverless-scaleway-functions

examples/go113/serverless.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ provider:
66
# Global Environment variables - used in every functions
77
env:
88
test: test
9-
# the path to the credentials file needs to be absolute
10-
scwToken: <scw-token>
11-
scwProject: <scw-project-id>
12-
# region in which the deployment will happen
13-
scwRegion: fr-par
149

1510
plugins:
1611
- serverless-scaleway-functions

examples/multiple/serverless.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ provider:
66
# Global Environment variables - used in every functions
77
env:
88
test: test
9-
# the path to the credentials file needs to be absolute
10-
scwToken: <scw-token>
11-
scwProject: <scw-project-id>
12-
# region in which the deployment will happen
13-
scwRegion: fr-par
149

1510
plugins:
1611
- serverless-scaleway-functions

examples/nodejs-es-modules/serverless.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ provider:
66
# Global Environment variables - used in every functions
77
env:
88
test: test
9-
# the path to the credentials file needs to be absolute
10-
scwToken: <scw-token>
11-
scwProject: <scw-project-id>
12-
# region in which the deployment will happen
13-
scwRegion: fr-par
149

1510
plugins:
1611
- serverless-scaleway-functions

examples/nodejs-schedule/serverless.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ provider:
66
# Global Environment variables - used in every functions
77
env:
88
test: test
9-
# the path to the credentials file needs to be absolute
10-
scwToken: <scw-token>
11-
scwProject: <scw-project-id>
12-
# region in which the deployment will happen
13-
scwRegion: fr-par
149

1510
plugins:
1611
- serverless-scaleway-functions

examples/nodejs/serverless.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ provider:
77
# Global Environment variables - used in every functions
88
env:
99
test: test
10-
# the path to the credentials file needs to be absolute
11-
scwToken: <scw-token>
12-
scwProject: <scw-project-id>
13-
# region in which the deployment will happen
14-
scwRegion: fr-par
1510

1611
plugins:
1712
- serverless-scaleway-functions

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"test:functions": "jest --maxWorkers 5 tests/functions",
1414
"test:containers": "jest --maxWorkers 5 tests/containers",
1515
"test:multi-region": "jest --maxWorkers 5 tests/multi-region",
16+
"test:provider": "jest --maxWorkers 5 tests/provider",
1617
"test:runtimes": "jest --maxWorkers 5 tests/runtimes",
1718
"test:triggers": "jest --maxWorkers 5 tests/triggers",
1819
"coverage": "jest --coverage",

provider/scalewayProvider.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ class ScalewayProvider {
4848
// On serverless info command we do not want log pollution from authentication.
4949
// This is necessary to use it in an automated environment.
5050
let hideLog = false;
51-
if (this.serverless.configurationInput.service &&
51+
if (this.serverless.configurationInput &&
52+
this.serverless.configurationInput.service &&
5253
this.serverless.configurationInput.service === 'serverlessInfo') {
5354
hideLog = true;
5455
}

0 commit comments

Comments
 (0)