77 Commits

Author SHA1 Message Date
Jin
3632e0ee09
feat(AWS ALB): Recognize path as optional condition (#8571) 2020-12-11 14:04:11 +01:00
Juanjo Diaz
d102a3984a
refactor: Remove unused modules (#8598) 2020-12-10 16:38:40 +01:00
Mariusz Nowak
8545268162 test(AWS HTTP API): Improve tests organization 2020-12-09 14:59:30 +01:00
Mariusz Nowak
c1907a2dde refactor: Remove irrelevant fs modules 2020-12-09 12:43:11 +01:00
Mariusz Nowak
44d398694f
test(Packaging): Finalize spec 2020-12-09 11:53:24 +01:00
Mariusz Nowak
8cd7c98689
test(Packaging): Pave path for runServerless refactor 2020-12-09 10:46:25 +01:00
caiobessa
b12d565ea0
test: Refactor lib/plugins/aws/package/lib/mergeIamTemplates.test.js (#8575) 2020-12-08 14:02:19 +01:00
Mariusz Nowak
9bdcb4fc17 test(AWS Lambda): Pave path for layers tests refactor 2020-12-07 13:13:36 +01:00
Mariusz Nowak
c0ea4c1461 feat(AWS Lambda): Basic container image support 2020-12-04 13:53:49 +01:00
Mariusz Nowak
8f450e47e2
test(AWS ALB): Improve specifity of test function names 2020-12-04 11:27:07 +01:00
Mariusz Nowak
2f1332521c test(AWS ALB): Refactor main test file 2020-12-04 11:18:09 +01:00
Piotr Grzesik
c5ae9798d2
feat(AWS Lambda): Increase memory limits per changes on AWS side (#8569) 2020-12-02 13:50:19 +01:00
Ashish Sharma
ee1816772e
fix(AWS IAM): Prevent logs write access with disabled logging (#8561) 2020-12-01 10:45:16 +01:00
Mariusz Nowak
3808471972 test: Move unit tests to "test/unit" folder 2020-11-30 16:53:52 +01:00
Mariusz Nowak
3f0fe5986c
test: Improvements 2020-11-20 17:32:36 +01:00
Mariusz Nowak
444b1a3a84 test: Expose fixtureData on runServerless result 2020-11-18 16:06:10 +01:00
Mariusz Nowak
18bcc9f740 refactor: Refactor to async/await 2020-11-18 16:06:10 +01:00
Mariusz Nowak
0ffeb56452
test(AWS Cognito): Improve tests reliability 2020-11-12 12:28:12 +01:00
Frédéric Barthelet
e32b771425
fix(Config Schema): Fix defineFunctionEventProperties
Fix support for multiple event types

(PR #8486)
2020-11-09 12:16:19 +01:00
Mariusz Nowak
9e9d3e3678
test(Variables): Cover nested variable references with tests 2020-11-09 11:52:03 +01:00
Frédéric Barthelet
b5abfd8554
feat(ConfigSchema): defineFuntionEventProperties schema extension method (#8471) 2020-11-06 14:53:39 +01:00
Mariusz Nowak
2fffb168bc fix(CLI): Fix handling of command options in help display 2020-11-05 10:44:44 +01:00
Luis Helder
5003bbf983
feat(Config Schema): defineFunctionProperties schema extension method
(PR #8462)
2020-11-03 10:02:24 +01:00
Mariusz Nowak
92b269024a
test(AWS Cognito): Improve test reliability 2020-11-02 12:02:07 +01:00
Mariusz Nowak
371bf8f317
test(AWS IOT): Refactor to rely on confirmCloudWatchLogs 2020-11-02 11:47:19 +01:00
Mariusz Nowak
f56d1b3d01
test: Refactor to async/await 2020-11-02 11:35:32 +01:00
Mariusz Nowak
989bd66469
test: Improve flow error handling 2020-10-28 09:26:14 +01:00
Mariusz Nowak
b41f9ab944
docs: Improve test documentation 2020-10-19 13:30:38 +02:00
Mariusz Nowak
86bcf91f5d
test(AWS Schedule): Increase timeout to ensure trigger is observed 2020-10-14 16:20:00 +02:00
Piotr Grzesik
c382d869a8
fix(AWS Stream): Fix support for lambdas with provisioned concurrency
(PR #8342)
2020-10-13 10:29:27 +02:00
Mariusz Nowak
c1428c247e
test(AWS Stream): Improve streams test 2020-10-12 16:56:08 +02:00
Mariusz Nowak
676f13f61e
test(AWS Schedule): Refactor with confirmCloudWatchLogs util 2020-10-12 15:15:17 +02:00
Ryan Roemer
661caad22d
fix(AWS Deploy): Ensure to handle right overriden package.artifact (#8351)
It's to handle special case related to how plugins as jetpack override internal packaging.

In this case `package.artifact` is overridden with pre-prepared archive placed in `.serverless` folder. That was not handled cleanly by Framework internals, and this patch fixes that
2020-10-09 17:43:14 +02:00
Mariusz Nowak
18c3ded0f0
test: Reorder info retrieval 2020-10-09 14:15:37 +02:00
Piotr Grzesik
7914dcb8c8
test: Fix filename typo (#8360) 2020-10-08 09:40:57 +02:00
Mariusz Nowak
e75339958f
test(AWS Cognito): Improve tests setup 2020-10-06 12:56:23 +02:00
Mariusz Nowak
ac34110852 fix(Variables): Fix support for ${self:} 2020-10-05 15:47:41 +02:00
Mariusz Nowak
5851bcadcf
fix(AWS Lambda): Revert inclusion of version hashi in env var (#8332)
This reverts commit 73c34b9f2bbe3b7c063a257a5b032b7460f263c0.

We need to revert it, as it'll break lambdas intended to back cloudFront distributions
2020-10-02 12:06:27 +02:00
Piotr Grzesik
34ad69f9bc
test(AWS SQS): Test integration with provisioned lambda (#8326) 2020-10-02 11:57:30 +02:00
Brent Jackson
73c34b9f2b
fix(AWS Lambda): Ensure version hash is in all cases effective (#8310)
In some instances the version hash may change due to a change involving
CloudFormation instrisic functions, but upon resolving the functions, the
resulting lambda configuration is identical to what is currently
deployed. This causes the Lambda::Version to fail to publish since AWS
sees the lambdas as identical.

This commit embeds an environment variable onto each lambda function with
the value of the version config hash, ensuring that anytime the config
hash changes, the resulting lambda configuration will be changed,
allowing a Lambda::Version to be published.
2020-10-01 18:20:08 +02:00
Mariusz Nowak
4a3216c9b1
test(AWS Cognito Pool): Prevent race condition failures
As observed e.g. here https://github.com/serverless/serverless/runs/1189045670
2020-10-01 13:34:07 +02:00
Piotr Grzesik
3ed97790ba
test(AWS Lambda): refactor EFS test to rely on infra (#8289) 2020-09-25 15:53:17 +02:00
Mariusz Nowak
8409d61e29
test(AWS Cognito): Improve logs handling 2020-09-24 16:09:19 +02:00
Matthieu Napoli
2fdeb51174
fix(Variables): Ensure no collisions with AWS CloudFormation variables
(PR #8279)
2020-09-24 15:31:02 +02:00
Patrick Withams
e43c889647
fix(AWS Lambda): Ensure version hash is affected by layer changes
(PR #8066)
2020-09-24 12:19:43 +02:00
Piotr Grzesik
05d703e6d5
feat(AWS MSK): Support MSK through "msk" event (#8164) 2020-09-24 10:23:09 +02:00
Mariusz Nowak
e241cc21db test(AWS HTTP API): Fix after drop for timeout support 2020-09-10 13:26:17 +02:00
Mariusz Nowak
0597cfb7b3 chore: Upgrade ESLint configuration to support ES2019 syntax 2020-09-10 13:26:17 +02:00
Mariusz Nowak
12b979c0d3 test(AWS HTTP API): FIx after default payload mode change 2020-09-10 13:26:17 +02:00
Mariusz Nowak
0bed880466
docs: Update test documentation 2020-09-09 12:01:24 +02:00