Commit Graph

90 Commits

Author SHA1 Message Date
jbergknoff-10e
2ac8954b13 Accept paths to user-controlled SSL cert 2018-05-03 14:09:56 -05: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
Terry Cain
0bd3899cb3
Finished X-Ray + fixed routing bug 2017-09-23 11:02:25 +01:00
Waldemar Hummer
24d1562d2f allow non-ascii characters in request URLs 2017-08-05 21:03:50 +10:00
Waldemar Hummer
8921920ae6 add flag to enable SSL for moto_server 2017-06-27 18:25:22 +10:00
Steve Pulec
03c4d9fe20 Fix standalone server headers not having HTTP_AUTHORIZATION. Closes #874. 2017-04-12 20:40:55 -04:00
Steve Pulec
abe0460dc7 Merge branch 'master' into dashboard 2017-03-11 22:45:45 -05:00
Steve Pulec
1709208872 First version of dashboard. 2017-03-11 22:45:42 -05:00
Steve Pulec
cdd6e476cc If using newer dynamodb api, use version 2. 2017-03-11 20:50:24 -05:00
Steve Pulec
3c0c4c2996 Fix tests for py3. 2017-02-23 22:28:09 -05: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
Steve Pulec
cb28eeefbb Add moto reset API. 2017-02-20 18:25:10 -05:00
Steve Pulec
51df02e7cf Cleanup Server host parsing. 2017-02-20 14:31:19 -05:00
Jeffrey Gelens
8fc1ad03bd Reload the server on a file change (#817)
* Added simple server reload support

* updated help text
2017-02-08 21:22:14 -05:00
Steve Pulec
2c6a967f45 Disable strict_slashes for Flask so that S3 works in server mode. 2016-12-03 18:59:28 -05:00
Michael De La Rue
bf2fdbba76 Make server use 127.0.0.1 as default address. 2016-09-01 12:14:38 +01:00
Waldemar Hummer
db275a1573 initial support for apigateway stages, in particular the update_stage method 2016-08-22 13:36:19 +10:00
Jot
42b95023f5 Added iam backend to servers, added some tests to check backend 2015-08-03 00:31:36 +02:00
Steve Pulec
519726a70a Cleaning up SQS for boto3. Closes #385. 2015-08-02 09:45:40 -04:00
Jeffrey Gelens
450d14b4eb Fix ValueError for Python 2.6 2015-05-29 11:43:24 +02:00
Jeffrey Gelens
c2f2c16892 Fixed non threadsafe code 2015-03-16 13:13:40 +01:00
David Baumgold
eedb4c4b73 Support Python 3 using six 2014-08-28 10:57:43 -04:00
David Baumgold
4201e6b430 from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
Ghalib Suleiman
f4a2f1a51f Turn on threading for Werkzeug's run_simple()
This is now default behavior. Without this, moto is unable to deal
with simultaneous requests.
2014-08-12 15:07:29 -07:00
Steve Pulec
5e7936123c Add comments for optional argparse positional argument 2013-12-30 13:32:07 -05:00
Steve Pulec
f0c6d1124c Make service argument optional so that you can actually use all services 2013-12-30 13:30:11 -05:00
Steve Pulec
c4c342c570 Fix bug with backend_name vs backend. 2013-12-30 12:33:31 -05:00
Steve Pulec
8b278eb05d Clean up querystring logic. 2013-12-29 21:50:25 -05:00
Andres Riancho
ffcbaf366e Remove debug print 2013-12-29 21:50:05 -05:00
Andres Riancho
c6515af8bf Now we have a stand-alone server which can provide services for more than one backend at the same time 2013-12-29 21:50:05 -05:00
Steve Pulec
674a85ba0b Cleanup backend finding 2013-07-26 15:14:34 -04:00
Steve Pulec
8ad458cd72 Fix sys.argv bug 2013-07-26 15:03:16 -04:00
Lincoln de Sousa
2d51e38eab Using argparse instead of using sys.argv directly 2013-07-26 14:46:14 -04:00
Steve Pulec
befcadc7fc Add ELB server test 2013-07-22 22:56:02 -04:00
Steve Pulec
7ef6a1c44e clean backend finding 2013-06-25 12:45:24 -04:00
Steve Pulec
eb70174ed5 Add port option. 2013-06-25 12:42:24 -04:00
Steve Pulec
87c86bb902 Need to reset app view functions to prevent Flask assertion error on resetting view functions. 2013-06-25 12:36:21 -04:00
Steve Pulec
212d9c7abe core sts endpoints completed 2013-05-24 17:22:34 -04:00
Steve Pulec
a728b2581a Adding server mode 2013-03-05 08:14:43 -05:00