Taro Sato
7cd404808b
Better EMR coverage and boto3 request/response handling
...
This revision includes:
- A handler for requests for which content-type is JSON (from boto3).
- A decorator (generate_boto3_response) to convert XML responses to
JSON (for boto3). This way, existing response templates for boto can
be shared for generating boto3 response.
- Utility class/functions to use botocore's service specification data
(accessible under botocore.data) for type casting, from query
parameters to Python objects and XML to JSON.
- Updates to response handlers/models to cover more EMR end points and
mockable parameters
2016-10-13 16:48:07 -07:00
Michael De La Rue
9062c654cf
Hopefully break build by testing for local only default server
2016-09-01 12:05:34 +01:00
Steve Pulec
705ec314a3
Cleanup different places using unix_time()
2015-11-27 14:14:40 -05:00
Jean-Baptiste Barth
a06f8b15f5
Add moto.core.utils.underscores_to_camelcase()
2015-11-23 14:09:31 +01:00
Jean-Baptiste Barth
a4dfdc8274
Add basic tests for moto.core.utils.camelcase_to_underscores()
2015-11-23 14:04:14 +01:00
Steve Pulec
3ed9428cb0
Cleanup class decorator. Closes #363 .
2015-06-27 19:01:01 -04:00
Konstantinos Koukopoulos
86cba4e82c
create a new connection after exiting context manager in test_decorator_calls
2015-02-20 21:39:26 +02:00
Steve Pulec
828ed13bde
Allow for class-based decorator. Closes #157
2014-11-16 19:05:28 -05:00
Joseph Lawson
cb88b8783d
raise NotImplementedError on unknown metadata path
2014-10-15 13:43:38 -04: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
Steve Pulec
f764e9e0f3
Add more test coverage for the server.
2014-03-30 12:05:38 -04:00
Steve Pulec
8b278eb05d
Clean up querystring logic.
2013-12-29 21:50:25 -05:00
Andres Riancho
748fa52cca
Fix for https://github.com/spulec/moto/issues/72
...
Need to run the whole test suite to make sure no regressions were added
2013-12-26 13:12:50 -03:00
Steve Pulec
dc2802a238
Set __wrapped__ on MockAWS decorator to be the test function. cc #41 .
2013-09-10 08:27:28 -04:00
Steve Pulec
59fe1abfdf
Cleanup flake8
2013-08-03 17:21:25 -04:00
Lincoln de Sousa
2d51e38eab
Using argparse instead of using sys.argv directly
2013-07-26 14:46:14 -04:00
Steve Pulec
dda5b2f145
Add tests for instance metadata
2013-07-08 19:40:24 -04:00
Steve Pulec
eb70174ed5
Add port option.
2013-06-25 12:42:24 -04:00
Steve Pulec
e55f26a07a
S3 should allow dashes in bucket names. Closes #5 .
2013-03-23 09:57:20 -04:00
Steve Pulec
9e9e057289
Mock out instance metadata. Make basic connection with iam roles work. Closes #3 .
2013-03-10 16:55:41 -04:00
Steve Pulec
e993917d4c
pep8
2013-03-05 08:35:18 -05:00
Steve Pulec
a728b2581a
Adding server mode
2013-03-05 08:14:43 -05:00
Steve Pulec
db943bcdbb
add other ways to call decorator
2013-02-27 22:25:15 -05:00