Mariusz Nowak
0326d19722
Ensure no side effects
2019-05-14 13:47:32 +02:00
Mariusz Nowak
edc3138ed6
Support color output in tests
2019-05-10 17:18:45 +02:00
Deepak N
19e7b7b522
Merge remote-tracking branch 'origin/master' into bugfix/5945_invoke_local_docker_env_vars
2019-04-09 15:25:13 +05:30
Deepak N
de0e24803c
Merge remote-tracking branch 'origin/master' into bugfix/5947_invoke_local_handle_dependency
2019-04-09 07:44:43 +05:30
Deepak N
10e6df83e9
Merge remote-tracking branch 'origin/master' into bugfix/5945_invoke_local_docker_env_vars
2019-04-09 07:39:14 +05:30
Daniel Schep
10d73b2bf3
Merge pull request #5992 from endeepak/bugfix/5990_invoke_local_docker_layer_cache_fix
...
#5990 : Fix layer download caching during invoke local docker
2019-04-08 16:14:14 -04:00
Philipp Muens
580396ac15
Merge pull request #5994 from endeepak/feature/5993_invoke_local_docker_arg
...
#5993 : Ability to pass args for docker run command during invoke local docker
2019-04-08 03:34:50 -07:00
Deepak N
8981cbc570
#5947 : Handle creation of files under subfolder name starting with dot
2019-04-04 10:36:26 +05:30
Deepak N
94921b3f43
#5993 : Fix flatMap function usage
2019-04-03 19:18:15 +05:30
Deepak N
f9aae6a1c6
#5993 : Ability to pass args for docker run command during invoke local docker
2019-04-03 18:50:55 +05:30
Deepak N
5593209a8b
#5990 : Fix layer download caching during invoke local docker
2019-04-02 15:44:58 +05:30
Deepak N
d9a3fd545d
#5947 : Ensure package zip without subfolders doesn't fail
2019-04-02 10:44:29 +05:30
Deepak N
7a5745b1c6
#5945 : Invoke local docker to pass env vars to lambda container
2019-04-02 10:01:17 +05:30
Deepak N
83465af9a2
#5947 : Ensure invoke local docker runs lambda with the dependencies by using packaged artifact
2019-03-29 19:09:45 +05:30
Jerome Doby
bfd2641388
increment invoke-bridge version
2019-03-26 07:31:26 -05:00
Jerome Doby
e10bbe9c61
correctly format the test json payload.
2019-03-25 13:59:34 -05:00
Jerome Doby
56f46edf16
fix tests directory
2019-03-25 13:03:44 -05:00
Jerome Doby
8fdc137975
add .gitignore entry for intellij project file
2019-03-25 12:48:41 -05:00
Jerome Doby
363361af01
#4750 - add support for com.amazonaws.services.lambda.runtime.RequestStreamHandler compatible handlers during "sls invoke local"
2019-03-25 12:12:50 -05:00
Philipp Muens
2dbc267eac
Add check if Docker daemon is running
2019-03-14 13:05:24 +01:00
Daniel Schep
6cf3563139
jszip as main dep, DRY getting runtime, use on exit instead of on close
2019-03-13 09:27:34 -04:00
Daniel Schep
af92c09335
review feedback
2019-03-06 09:27:42 -05:00
Daniel Schep
accd9316fe
test covvg!
2019-03-05 16:46:59 -05:00
Daniel Schep
ee3fef217d
support for package artifact based services!
2019-03-05 11:28:13 -05:00
Daniel Schep
60c4151baf
global layer cache
2019-03-05 11:28:13 -05:00
Daniel Schep
50d2c737fa
comment out failing test for non node/java/python/ruby runtimes
2019-03-05 11:28:13 -05:00
Daniel Schep
df1860dc46
restore original functionality! docker as fallback/flag
2019-03-05 11:28:13 -05:00
Daniel Schep
6ceef70718
move docker to own func to retain old functionality
2019-03-05 11:28:13 -05:00
Daniel Schep
dbd6b0a19c
rework a bit
2019-03-05 11:28:13 -05:00
Daniel Schep
47d08005de
use 's builtin unzipping
2019-03-05 11:28:13 -05:00
Daniel Schep
9e5512e66e
use path.join, right log func, and pre-download base image if needed
2019-03-05 11:28:13 -05:00
Daniel Schep
ebf9eef917
support for service wide layer declaration. closes #5582
2019-03-05 11:28:13 -05:00
Daniel Schep
6046d9463a
fix executable & binary layer contents
2019-03-05 11:28:13 -05:00
Daniel Schep
0dc1a5f38f
support for layers!!
2019-03-05 11:28:13 -05:00
Daniel Schep
c71ae6808a
WIP
2019-03-05 11:28:13 -05:00
Philipp Muens
0fd67336f7
Rework error tests
2019-02-14 16:06:18 +01:00
Tan Zhen Yong
998e8e5761
Add stack trace to error from AWS invokeLocal
2019-02-14 20:31:14 +08:00
Daniel Schep
b32b200b14
Merge pull request #5718 from Biteable/make-local-ruby-pry-work
...
Make local ruby pry work
2019-02-08 10:00:48 -05:00
Jon Burgess
801278039c
Ensure we don't break ruby local invocation on linux
2019-02-08 09:11:47 +11:00
Daniel Schep
9b716b4be0
lint
2019-02-05 13:16:32 -05:00
Daniel Schep
931caf866d
set timout&others on context in python invoke local
...
closes #5792
2019-02-05 13:02:39 -05:00
Daniel Schep
f54081216c
don't check call tty on macs
2019-01-28 11:41:58 -05:00
Jon Burgess
f490cb5458
Revert "Don't add newlines to echoed input"
...
This reverts commit e30e24222bd9cd584e127d8cd9ea85386c614857.
This breaks a couple of tests which are depending on:
serverless.cli.consoleLog.lastCall.args[0]
being set.
Also, it introduces an inconsistency c.f. invokeLocalPython et al.
I think here, consistency and passing tests trumps the slight annoyance of each input charact appearing on a new line. At least, for the moment and until a better way is found.
2019-01-23 09:31:40 +11:00
Jon Burgess
3bfc724fb3
Ensure tty device exists before trying to open it
2019-01-23 09:17:03 +11:00
Philipp Muens
89d037c468
Merge pull request #5662 from jetbridge/master
...
Provide AWS_PROFILE from configuration for invoke local
2019-01-22 13:12:29 +01:00
Philipp Muens
da83822905
Fix and update tests
2019-01-22 13:01:24 +01:00
Jon Burgess
e30e24222b
Don't add newlines to echoed input
...
Prior to this, debug output would look something like the following:
```
[1] pry(Kernel)>
f
o
o
=
"
f
o
o
"
=> "foo"
[2] pry(Kernel)>
```
i.e. there's a newline being added after each character is entered, making things somewhat difficult to read.
2019-01-18 11:56:30 +11:00
Jon Burgess
1530af2025
Make local ruby debugging work
...
This follows a similar change for local python invocation at ad5decb080/lib/plugins/aws/invokeLocal/invoke.py (L76-L82)
A handler such as the following will now pause at the breakpoint:
```ruby
require 'json'
require 'pry'
def hello(event:, context:)
binding.pry # breakpoint
{ statusCode: 200, body: JSON.generate('Go Serverless v1.0! Your function executed successfully!') }
end
```
2019-01-18 11:37:08 +11:00
Mischa Spiegelmock
b563fb218e
attempting to create a test for invoke local with profile
2019-01-16 15:58:30 +02:00
Daniel Schep
c0a48b1ef7
remove use of Object.entries & String.includes & Array.includes
2019-01-16 07:32:07 -05:00