131 Commits

Author SHA1 Message Date
jkburges
8f070d58c4
fix(Templates): Add missing property in ruby template (#8195)
This property was previously missing from the fake lambda context when running ruby functions locally.

Ref: https://docs.aws.amazon.com/lambda/latest/dg/ruby-context.html
2020-09-07 11:07:43 +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
527233d263 fix(Standalone): Ensure local invocation wrappers are accessible 2020-07-27 11:42:02 +02:00
Mariusz Nowak
50bfd22096 refactor(AWS Local Invocation): Seclude runtime wrapping logic 2020-07-27 11:42:02 +02:00
Mariusz Nowak
5517ff0d26 test(AWS Local Invocation): Improve test reliability 2020-07-27 11:42:02 +02:00
Mariusz Nowak
095a26a445 test: Introduce debug log 2020-07-27 11:42:02 +02:00
Mariusz Nowak
46aa0b8676
test: Fix Buffer usage 2020-07-23 09:48:46 +02:00
Mariusz Nowak
475b9b4681 test: Add debug logs 2020-06-24 16:37:41 +02:00
TATSUNO Yasuhiro
8bb5517456
refactor: Replace _.{startsWith,endsWith,includes} with native methods
(PR #7715)
2020-05-19 12:22:25 +02:00
Alex Soto
4252422a94
fix(AWS Local Invocation): Ensure to mount as read only in docker
(PR #7622)
2020-05-18 21:45:07 +02:00
Arben Bakiu
d84e9e7d1e
fix: Fix handler resolution (multi . case) for local invocation (#7398) 2020-02-28 11:19:09 +13:00
frozenbonito
90b3a8f81e
fix: Ensure AWS creds resolution for local docker invocation (#7375) 2020-02-24 17:18:29 +13:00
frozenbonito
c09f71897a
fix: Ensure AWS env vars in local invocation made with docker (#7349) 2020-02-19 13:52:33 +13:00
Richard Davison
f6d9bfd6c6
feat: Improve performance of local invocation using docker (#7178) 2020-02-12 11:21:45 +13:00
Mariusz Nowak
2f0ce9495b
test: Expose cachedCredentials mishandling in invokeLocal 2019-12-05 11:15:07 +01:00
Mariusz Nowak
f2a41bf0bd
Improve tests 2019-12-04 10:07:11 +01:00
Michael Hart
5e2e09a81f Enable Content Trust checking when pulling lambci/lambda images
This ensures that the images are signed correctly:
https://docs.docker.com/v17.09/engine/security/trust/content_trust/
2019-11-21 13:28:57 -05:00
Mariusz Nowak
d66e457572
Ensure to update tests with a new runtime 2019-11-20 11:11:20 +01:00
Daniel Schep
ae36c256c0 plat-1798 - set env vars for AWS creds from cached credentials in invoke local
this allows for use of credentials provided by a deploy profile in the
serverless dashboard
2019-11-07 12:54:34 -05:00
Mariusz Nowak
6c949450bc
Refactor to rely on @serverless/test/skip-with-notice 2019-09-13 16:53:47 +02:00
drexler
5e425a7f84 test: update covering tests 2019-09-11 07:49:19 -04:00
Mariusz Nowak
4fa9854f81
Fix restore of process.stdin 2019-09-05 16:12:50 +02:00
Daniel Schep
e2e9a77c46 alternative approach to creds fail fast taht includes metadata check 2019-07-22 14:59:49 -04:00
Mariusz Nowak
d2e537329f
Fix lint issues
Came out after change to no-confusing-arrow rule
2019-07-19 17:46:08 +02:00
Mariusz Nowak
4944f471b1
Prettify 2019-06-26 12:43:01 +02:00
Mariusz Nowak
93a632f342
Ensure proper context 2019-06-05 11:03:52 +02: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
0f181edd67
Rely on skipWithNotice 2019-06-05 09:53:33 +02:00
Mariusz Nowak
7245160416
Improve comments 2019-06-04 16:06:54 +02:00
Mariusz Nowak
d25730344c
Improve comment 2019-06-04 16:01:41 +02:00
Mariusz Nowak
7d23851897
Skip tests for not installed runtimes 2019-06-04 15:56:26 +02:00
Mariusz Nowak
77118040df
Fix mock 2019-06-04 15:06:12 +02:00
Mariusz Nowak
0b801a6aca
Increase timeout 2019-06-04 13:59:09 +02:00
Mariusz Nowak
8a639fe777
Increase timeout for randomly failing test 2019-06-04 11:33:19 +02:00
Mariusz Nowak
f6d993e97b
Merge with master 2019-05-31 12:36:53 +02:00
Philipp Muens
773e9af3c1 Thorough integration testing 2019-05-30 15:20:58 +02:00
Mariusz Nowak
a791a999a0
Merge branch 'master' into improve-env-vars-handling 2019-05-30 14:51:59 +02:00
Mariusz Nowak
ec3d8d2649
Improve tests timeout in face of failures 2019-05-29 15:37:54 +02:00
Mariusz Nowak
531f4600db
Isolate process.env toggling in tests 2019-05-29 10:15:18 +02:00
Mariusz Nowak
ad9810fbc9
Merge branch 'master' into improve-promised-bdd-setup 2019-05-21 16:57:36 +02:00
Philipp Muens
25ca3bb84d Setup Travis to work with Windows / Remove AppVeyor 2019-05-21 12:34:15 +02:00
Mariusz Nowak
5208539327
Merge branch 'fix-tests-setup' into improve-promised-bdd-setup 2019-05-20 12:36:10 +02:00
Mariusz Nowak
28c1c1894a
Ensure to not leave orphaned async call 2019-05-20 12:35:27 +02:00
Mariusz Nowak
411762bc8b
Ensure to return promise 2019-05-20 09:53:55 +02:00
Mariusz Nowak
5155bbb16f
Merge branch 'master' into fix-tests-setup 2019-05-17 14:57:45 +02:00
Mariusz Nowak
c3dd6502ab
Ensure to cleanup temporary files 2019-05-16 12:48:10 +02:00
Mariusz Nowak
6fe596f735
Ensure we do not wait of stdin input in test run 2019-05-16 10:21:27 +02:00
Philipp Muens
5b5425d939 Update AWS Node.js runtime to version 10 2019-05-15 14:27:55 +02:00
Mariusz Nowak
0326d19722
Ensure no side effects 2019-05-14 13:47:32 +02:00