44 Commits

Author SHA1 Message Date
Philipp Muens
cf7a6fb4bf Enhance tests for invoke local 2017-07-17 10:51:20 +02:00
Daniel Schep
d5e12e9ed0 Also set region env vars from config, not just CLI, for invoke local 2017-07-06 11:06:45 -04:00
Frank Schmid
aca8db9ba7 Set IS_LOCAL for every provider. Added unit tests. 2017-05-29 11:15:32 +02:00
Philipp Muens
8dd462007b Fix test 2017-05-19 10:26:49 +02:00
Philipp Muens
ca9ee443e1 Add test 2017-05-19 10:18:54 +02:00
Frank Schmid
c85300e4d4 Set IS_LOCAL environment variable with invoke local command 2017-05-18 10:55:43 +02:00
Daniel Schep
e1c27c3569 🐍🐍🐍 Python3.6 support is coming to Lambda!
closes #3482

https://aws.amazon.com/releasenotes/5198208415517126
2017-04-18 17:57:48 -04:00
Eslam λ Hefnawy
a7d39352a2 Merge pull request #3403 from assaflavie/master
support any AWS nodejs runtime, not just 4.3
2017-03-24 20:00:24 +08:00
Assaf Lavie
c708469e9f fix lint errors 2017-03-23 17:12:15 +02:00
Assaf Lavie
f2ccc00484 Test that nodejs6.10 local invoke works. 2017-03-23 15:14:42 +02:00
Assaf Lavie
b5a365e055 support any AWS nodejs runtime, not just 4.3 2017-03-23 13:46:45 +02:00
Philipp Muens
8d348da0ce Merge master into PR 2017-03-23 12:29:07 +01:00
Eslam λ Hefnawy
8a32b39c37 Merge pull request #3037 from breath103/master
add features on AWSInvokeLocal Plugin.
2017-03-13 19:23:39 +08:00
Daniel Schep
1f0e671f5b Add virtualenv suppport to Python invokeLocal
Since the invoke local functionality overrides `process.env.PATH`, only the
system python is found, not the python provided by an active virtualenv. This
checks for the `VIRTUAL_ENV` environment variable and if present, adds it's bin
dir to `PATH`.
2017-03-09 16:47:26 -05:00
Doug Moscrop
1012c351b7 add sinon-bluebird to make promises in tests a bit cleaner 2017-02-08 12:59:18 -05:00
Daniel Schep
a163e65d9f invoke local python functions! closes #2862 2017-01-18 09:54:29 -05:00
Kurt Lee
50e9c5fb7d add features on AWSInvokeLocal Plugin.
1. Added support js file that has export as an data input
2. You can specify the location of handlers, such as “/dst”
3. Show JSON.parse result if Content-Type = ‘application/json’
2017-01-01 17:58:56 +09:00
Eslam A. Hefnawy
08009c2945 handling strings 2016-12-13 18:08:05 +07:00
Eslam A. Hefnawy
142946e295 fixed bug where you can now invoke without any input data 2016-12-13 17:52:03 +07:00
Maciej Winnicki
b78f7ac254
remove duplicated tests 2016-12-08 11:23:18 +01:00
Maciej Winnicki
5a978afa92
add support for stdin in invoke command 2016-12-08 10:48:53 +01:00
Eslam A. Hefnawy
a4be376aa0 updates invoke local test 2016-12-07 18:52:05 +07:00
Eslam A. Hefnawy
343439f157 removed double default region setting 2016-12-07 16:55:19 +07:00
Eslam A. Hefnawy
9bcde02ce6 lowercase MemorySize in invoke local 2016-12-07 16:44:24 +07:00
Eslam A. Hefnawy
f8dc2481ca added default lambda env vars to local invoke 2016-12-07 16:44:24 +07:00
Maciej Winnicki
b494005543
fix setting exit code 2016-12-02 18:50:46 +01:00
Maciej Winnicki
ca5b9e119e
fix returning error from local invocation 2016-12-02 10:14:42 +01:00
Philipp Muens
a39e2969de Remove reassignment of this.options.data if JSON parsing fails 2016-11-29 15:06:10 +01:00
Philipp Muens
f02c990fd8 Remove check if options.data exists 2016-11-29 13:32:29 +01:00
Philipp Muens
d048cc3e09 Add check if data is JSON or simple string 2016-11-29 10:35:26 +01:00
Philipp Muens
ef7ccfc8e3 Add tests 2016-11-29 10:35:26 +01:00
Philipp Muens
7837acf360 Fix minor typos 2016-11-29 10:35:26 +01:00
ac360
ee7f0c24bf sanitize strings 2016-11-29 10:35:26 +01:00
Erik Erikson
6cc5d1364a Merge branch 'master' into logical-ids-missed-details 2016-11-22 13:26:28 -08:00
Philipp Muens
8aad2372eb Refactor test structure
So that all tests follow the *.test.js pattern and globs are used to find test files.
2016-11-22 12:49:26 +01:00
Eslam A. Hefnawy
5ed4c0d01d add support for lambda env vars in invoke local 2016-11-21 17:42:13 +07:00
Erik Erikson
749204d962 Logical IDs Centralization Missed Details
A few places where names had been hard coded were missed in #2679.  This pull request attempts to get the rest of these (although I fear a few more exist).
The hard coding of the logical ids for the role and policy were removed from the json files defining those values.
Additionally, the path and name of the default role and policy were extrapolated as were log group and api gateway names.
The new role path, role name, and policy name values were used to amend the static role and policy.
Commentary in the centralization file was re-added.

Tests were updated
No function or documentation changes occurred by these changes
2016-11-15 17:22:59 -08:00
horike37
dc2f45b94e Improve responses in invoke local 2016-11-11 05:24:21 +09:00
Maciej Winnicki
8a73fc420f
fix failing tests exit code 2016-11-03 12:39:15 +01:00
Eslam A. Hefnawy
07a2d92e96 added default context 2016-10-31 20:53:33 +07:00
Eslam A. Hefnawy
0df8cbc60e added unit tests for invoke local 2016-10-25 19:32:39 +07:00
Eslam A. Hefnawy
3eab2fdadc removed comment 2016-10-25 17:18:58 +07:00
Eslam A. Hefnawy
8c373e5857 fixed runtime check for invoke local 2016-10-25 17:17:28 +07:00
Eslam A. Hefnawy
abc9d91ed1 added invoke local plugin 2016-10-25 16:59:34 +07:00