77 Commits

Author SHA1 Message Date
Mariusz Nowak
05921b61ee test: Upgrade to use new fixtures engine 2020-09-09 11:17:21 +02:00
Geoff Baskwill
00d6f79c50
feat(Config Schema): Schema for AWS resources section (#8139) 2020-09-07 09:21:16 +02:00
Mariusz Nowak
c0fb04af3d fix: Fix handling of pre-releases in frameworkVersion validation 2020-09-02 10:06:18 +02:00
Mariusz Nowak
8c3c7c4e3a chore: Rename "tests" folder to "test"
Also upgrade @serverless/eslint-config to v2
2020-08-28 16:22:09 +02:00
Mariusz Nowak
c64d6d5f01
test: Ensure result of tests does not depend on package version 2020-08-25 14:28:40 +02:00
Petr Reshetin
268f714357
feat: Schema based validation of service config (#7335)
Co-authored-by: Mariusz Nowak <medyk@medikoo.com>
2020-08-03 15:41:05 +02:00
Mariusz Nowak
d9b9b92a1b test: Rewrite Service.test.js so it relies on runServeless 2020-07-10 17:35:23 +02:00
Arben Bakiu
7310782294
fix(Variables): Relax pattern to allow non-ascii defaults (#7431) 2020-03-08 09:43:16 +13:00
Mariusz Nowak
d66e457572
Ensure to update tests with a new runtime 2019-11-20 11:11:20 +01:00
kdnakt
12cad14dce Make question mark available as variables fallback 2019-10-09 09:10:32 +09:00
Mariusz Nowak
4944f471b1
Prettify 2019-06-26 12:43:01 +02:00
Philipp Muens
6d05d83edb
Merge pull request #6200 from mydiemho/myho/removeRegionDefaultFromBase
Remove default stage value in provider object
2019-06-21 12:54:57 +02:00
Daniel Schep
94bf5a4382 delint 2019-06-10 11:19:14 -04:00
Daniel Schep
2b81303370 --config option.
closes #5589
closes #4485
closes #4473
closes #4124
closes #5822
2019-06-10 11:19:14 -04:00
Philipp Muens
e252259791 Fix linting issues 2019-06-06 12:27:19 +02:00
My Ho
5541f2b9ef
Fix tests 2019-06-05 16:08:51 -07:00
Mariusz Nowak
8ca00b6f9f
Increase default timeout
Some tests tend to timeout especially when run on Windows in VM
2019-06-05 10:59:22 +02:00
Mariusz Nowak
d3b7d2eac0
Unify timeout notices 2019-06-05 10:07:05 +02:00
Mariusz Nowak
aa9210e85b
Increase timeout 2019-06-04 13:51:53 +02:00
Mariusz Nowak
98ce05b6a8
Increase test timeout 2019-06-04 13:20:16 +02:00
Mariusz Nowak
d9ff5b6dc3
Improve test timeout setting 2019-06-04 13:09:10 +02:00
Mariusz Nowak
304f43ff18
Update after chai upgrade 2019-06-03 17:30:26 +02:00
Philipp Muens
773e9af3c1 Thorough integration testing 2019-05-30 15:20:58 +02:00
Mariusz Nowak
3cdb51d07a
Increase timeout as test occasionally times out 2019-05-22 13:40:14 +02:00
Philipp Muens
5b5425d939 Update AWS Node.js runtime to version 10 2019-05-15 14:27:55 +02:00
Philipp Muens
606e82d85b Fix validation after API Gateway deployment 2019-05-13 15:11:25 +02:00
Philipp Muens
5cba21730c Merge branch 'master' into sls-5225 2019-03-22 10:47:11 +01:00
exoego
5fe43898d1 Remove unnecessary dependency. 2019-01-22 09:31:21 +09:00
exoego
3d31c43bcf Remove duplicate-handler warnings based on community feedback. 2019-01-22 09:22:49 +09:00
exoego
f434009c45 Move stage name validation to Service#validate.
Since validation should be performed after service.functions are resolved.
2019-01-16 16:39:09 +09:00
Daniel Schep
d837e9baae Merge remote-tracking branch 'origin/master' into sls-5225 2019-01-07 13:25:57 -05:00
Daniel Schep
0896f311b1
Merge pull request #5312 from Limess/4496/handle-scoped-packages
Handle scoped npm packages in ${file()} variables
2019-01-07 10:56:25 -05:00
Daniel Schep
5c2c1ae405 Allow * in variable string literal defaults
closes #5225
closes #4959
2018-12-31 10:47:24 -05:00
exoego
e6599f3953 Refactor: move service validations to Service#validate 2018-12-31 07:38:24 +09:00
Daniel Schep
dd4a49d7f5
Merge pull request #4827 from simonbuchan/config-promises
Support returning promises from serverless.js
2018-11-27 11:45:07 -05:00
Charlie Briggs
8f8c27ae7e Handle scoped packages in ${file()} variables
Currently @ is not a valid variable character, so it doesn't get parsed
as one.
When it does get parsed, @ is not considered valid as part of a file path
- we add a blacklist as per https://github.com/serverless/serverless/pull/4528 to
handle this case.
2018-09-19 17:26:50 +01:00
Doug Moscrop
8bde1b4902 Support arrays in function definition too 2018-04-04 20:03:56 -04:00
Simon Buchan
33759c2736 Support returning promises from serverless.js 2018-03-14 19:50:52 +13:00
Pavel Vlasov
d05e45668e validate serverless.js to export plain object + address feedback 2017-12-20 08:50:10 +11:00
Pavel Vlasov
bca4da55b3 add support for serverless.js 2017-12-19 20:14:39 +11:00
Philipp Muens
6ee4cd4df8 Fix Service class tests 2017-09-04 09:18:41 +02:00
Mariusz Nowak
5dce256f00 Ensure errorneous calls are properly exposed 2017-08-22 15:11:33 +02:00
Philipp Muens
f8787d4289 Minor fixes 2017-08-21 13:35:04 +02:00
Philipp Muens
701187bc59 Update all variableSyntax usages 2017-08-21 13:11:29 +02:00
Toby Hede
33431cb45a Allow double-quoted and single-quoted variables
Empty string is now valid
2017-08-20 11:05:15 +10:00
Toby Hede
2b3181c362 Handle both single and double quoted strings 2017-08-18 09:13:01 +10:00
Toby Hede
a1c8a37b9a Allow use of string as default values in variables 2017-08-18 09:07:29 +10:00
Philipp Muens
5d1bbd5999 Remove provider name validation 2017-07-17 14:33:33 +02:00
Eslam λ Hefnawy
bb32b01f7a Merge pull request #3909 from jaikdean/variable-syntax-documentation-fix
Update example custom variable syntax to work with loading files
2017-07-12 19:42:18 +07:00
Jaik Dean
214e57621e Lint service tests 2017-07-10 13:55:33 +01:00