Commit Graph

143 Commits

Author SHA1 Message Date
acsbendi
62b25f9914 Added a few more tests to achieve better coverage. 2019-07-28 22:19:50 +02:00
acsbendi
cc843bb8c5 Created tests for IAM auth. 2019-07-26 20:40:15 +02:00
Steve Pulec
4dd2b66b04 Refactor backend parsing. 2019-07-21 22:07:58 -05:00
Steve Pulec
2a0df1e1a8 Flip when we test passthru. 2019-07-11 10:09:01 -05:00
Steve Pulec
11506e21d5 Only test passthrough exception in non-server mode. 2019-07-10 22:45:26 -05:00
Steve Pulec
c7147b06b1 Cleanup responses mocking. Closes #1567
This unblocks requests to other websites with requests while Moto
is activated. It also adds a wildcard for AWS services to still
ensure no accidental requests are made for unmocked services
2019-07-10 21:59:25 -05:00
Steve Pulec
c2e382f537 Dont test context manager in server mode. 2019-07-10 21:40:49 -05:00
Steve Pulec
b19c201975 Cleanup model ref resetting. 2019-07-10 21:16:11 -05:00
Steve Pulec
308712841c Have context manager return mock. 2019-07-09 20:31:43 -05:00
Cory Dolphin
f11a5dcf6b Fix socket.fakesock compatibility 2019-07-03 11:26:33 -07:00
Garrett
c739c5331e Handle UnicodeEncodeError when parsing querystring (#2170) 2019-05-25 18:34:47 +01:00
Ollie Ford
28aa5d34b0
Add failing test for #1809 2018-09-05 11:31:47 +01:00
Steve Pulec
25e2af0320 Fix camelcase_to_underscore. Closes #767. 2017-03-15 23:39:36 -04:00
Steve Pulec
cda553abfb Change tests to use default server port of 5000. 2017-03-12 21:04:19 -04:00
Steve Pulec
1709208872 First version of dashboard. 2017-03-11 22:45:42 -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
51df02e7cf Cleanup Server host parsing. 2017-02-20 14:31:19 -05:00
Steve Pulec
fde721bed7 Testing new version of decorator. 2017-02-15 22:35:45 -05:00
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