Commit Graph

31 Commits

Author SHA1 Message Date
Chris Keogh
9bb07e6b6e add awslambda.add_permission 2017-10-03 20:02:23 +13:00
Chris Keogh
b994cf5291 add more realistic policy 2017-10-03 14:52:00 +13:00
Chris Keogh
fc9c250922 add basic awslambda get_policy 2017-10-03 13:33:50 +13:00
Alexander Mohr
9008b85299 lambda + SNS enhancements (#1048)
* updates

- support lambda messages from SNS
- run lambda in docker container

* decode output

* populate timeout

* simplify

* whoops

* skeletons of cloudwatchlogs

* impl filter log streams

* fix logging

* PEP fixes

* PEP fixes

* fix reset

* fix reset

* add new endpoint

* fix region name

* add docker

* try to fix tests

* try to fix travis issue with boto

* fix escaping in urls

* fix environment variables

* fix PEP

* more pep

* switch back to precise

* another fix attempt

* fix typo

* fix lambda invoke

* fix more unittests

* work on getting this to work in new scheme

* fix py2

* fix error

* fix tests when running in server mode

* more lambda fixes

* try running with latest docker

adapted from aiodocker

* switch to docker python client

* pep fixes

* switch to docker volume

* fix unittest

* fix invoke from sns

* fix zip2tar

* add hack impl for get_function with zip

* try fix

* fix for py < 3.6

* add volume refcount

* try to fix travis

* docker test

* fix yaml

* try fix

* update endpoints

* fix

* another attempt

* try again

* fix recursive import

* refactor fix

* revert changes with better fix

* more reverts

* wait for service to come up

* add back detached mode

* sleep and add another exception type

* put this back for logging

* put back with note

* whoops :)

* docker in docker!

* fix invalid url

* hopefully last fix!

* fix lambda regions

* fix protocol

* travis!!!!

* just run lambda test for now

* use one print

* fix escaping

* another attempt

* yet another

* re-enable all tests

* fixes

* fix for py2

* revert change

* fix for py2.7

* fix output ordering

* remove this given there's a new unittest that covers it

* changes based on review

- add skeleton logs test file
- switch to docker image that matches test env
- fix mock_logs import

* add readme entry
2017-09-27 16:04:58 -07:00
Chris Keogh
101dfaa412 fix tests for python 3.x 2017-09-15 15:41:48 +12:00
Chris Keogh
2c8326e9b9 allow get_function for lambda created with zipfile 2017-09-15 14:49:32 +12:00
Chris Keogh
c20d365021 fix merge conflicts 2017-09-14 14:30:55 +12:00
Chris Keogh
a379d76cfc add aws_lamba.invoke_async method 2017-09-14 13:59:35 +12:00
aohara-admin
98f95dd4a7 add Lambda tag_resource, untag_resource, and list_tags methods 2017-09-13 15:41:49 -04:00
Steve Pulec
e7a3f3408e Add Lambda header for invoking error. Closes #770. 2017-03-16 22:00:57 -04:00
Steve Pulec
cda553abfb Change tests to use default server port of 5000. 2017-03-12 21:04:19 -04:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -05:00
Steve Pulec
81836b6981 Get standalone server mode working for all tests. 2017-02-23 19:43:48 -05:00
Rob Walker
ed0e81fc61 Fixup lambda for ResponseRequest (#781)
* Fixup lambda for ResponseRequest

* one day will get this right
2016-12-03 18:17:15 -05:00
rocky4570fft
dc98cf6f64 argh 2 days trying to work python3 into working python2 :( 2016-10-10 01:13:52 +10:00
rocky4570fft
7c3005e582 attmpt 2 to resolve StringIO not being within Python 3 anymore 2016-10-07 00:14:47 +10:00
rocky4570fft
6c577091da lambderize the moto lambda 2016-10-06 19:52:23 +10:00
Steve Pulec
ae938223d4 Cleanup headers popping. 2016-07-24 09:50:39 -04:00
Steve Pulec
8e8f3d99f6 Merge pull request #655 from 2rs2ts/work-around-httpheaders
Remove HTTPHeaders from ResponseMetadata in some tests
2016-07-24 09:36:58 -04:00
Andrew Garrett
aab137ae66 Remove HTTPHeaders from ResponseMetadata in some tests
botocore 1.4.29 started adding this. I'd match against it, but it
contains a date object and it's just not worth rewriting the assertions
for a key-by-key approach.
2016-06-29 23:45:21 +00:00
Mike Grima
bfa079ec4e Added Lambda invoke capability. 2016-06-22 12:24:46 -07:00
Hugo Lopes Tavares
8f586d8637 [lambda] Use S3Key to figure out code size and SHA256 2016-02-17 16:24:17 -05:00
Hugo Lopes Tavares
b8d8844286 [lambda] Renamed test file to follow the convention 2016-02-17 16:16:50 -05:00
Hugo Lopes Tavares
45d91bf963 [lambda] Do not use ZipFile as a context manager (it is not supported in Python 2.6) 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
482751f731 [lambda] Add S3 validation for Code["S3Bucket"] and Code["S3Key"].
TODO: validate region.
2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
4c10e54a36 [lambda] Add 404 test for DeleteFunction 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
7c36fca1dd [lambda] Add VpcConfig to the responses 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
5f7ea2b77f [lambda] Fix HTTP code of CreateFunction 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
5a29ec4986 [lambda] Add support to upload functions with ZipFile 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
9c4d07fb6a [lambda] Add more meaningful names to tests 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
bfad9b9ed6 [lambda] Implement ListFunctions, GetFunction, and DeleteFunction 2016-02-17 16:13:57 -05:00