Commit Graph

237 Commits

Author SHA1 Message Date
Matthew Neal
50f8d5e13c Pin boto3 version to 1.7.84
Pinning boto3 to this version would remove the mismatch between
boto3 and the botocore dependency in setup.py.

Closes #1800
2018-08-29 15:43:45 -04:00
Steve Pulec
c4b630e20f Version 1.3.5. 2018-08-29 08:44:03 -04:00
Steve Pulec
f7b039e787
Merge pull request #1794 from garyd203/1793-workaround
RFC: Change setup.py to require older version of botocore with compatible implementation
2018-08-29 08:42:07 -04:00
Gary Donovan
abc15f0ae8 Mitigate #1793 by restricting maximum version for botocore.
botocore v1.11.0 changed it's internal implementation so that it now
uses a different library for HTTP requests. This means that moto's
mocking will not work, and test code will inadvertently call the live
AWS service.

As an interim solution to reduce the impact of this breakage, we
restrict the "required" (ie. recommended) version of botocore so that
users will be less likely to use an incompatible version, and will
receive a pip warning when they do.
2018-08-27 17:29:55 +10:00
Jack Danger
ba9e795394
Version 1.3.4 (#1757)
* bumping to version 1.3.4

* updating changelog

* fixing generation of implementation coverage
2018-08-07 10:53:21 -07:00
Steve Pulec
4198abfd24
Merge pull request #1617 from jbergknoff-rival/jbergknoff/cognito
Implement some of cognito-idp
2018-05-30 20:23:11 -04:00
Steve Pulec
b5bdf6693c Require version of responses that supports callbacks. 2018-05-29 21:57:54 -04:00
jbergknoff-10e
e111cd1ff9 Implement some of cognito-idp 2018-05-07 09:38:04 -05:00
David Baumgold
04b36b4488 Allow dateutil below 3.0.0 2018-04-21 09:46:12 +02:00
Steve Pulec
7cc08a9c5c bumping to version 1.3.3 2018-04-18 18:40:32 -04:00
Jack Danger
3ac4532968
Version 1.3.2 (#1564)
* bumping to version 1.3.2

* Updating implementation coverage

* updating CHANGELOG
2018-04-12 14:37:00 -07:00
Steve Pulec
cd1c6d3e6c Unvendor responses, move back to upstream. 2018-04-05 16:57:43 -04:00
Mike Grima
4184acc0d2 Added Filtering support for S3 lifecycle (#1535)
* Added Filtering support for S3 lifecycle

Also added `ExpiredObjectDeleteMarker`.

closes #1533
closes #1479

* Result set no longer contains "Prefix" if "Filter" is set.
2018-04-02 14:19:14 -07:00
Jack Danger
5fe575b6ed
bumping to version 1.3.1 (#1530)
* bumping to version 1.3.1

* Updating implementation coverage
2018-03-22 11:28:32 -07:00
acrewdson
fceeb5d55f Allow older Jinja2 dep for project compatability (#1474)
In commit 4157abe8de, the Jinja2
dep in setup.py was changed from being unpinned to requiring version
2.8 or newer. That change was made in response to this issue:

    https://github.com/spulec/moto/issues/728

which pointed out that the use of 'lstrip_blocks' needed to
be supported. Support for that option was added in Jinja 2.7,
so it seems like the best option here, unless 2.8 is truly
required by moto, would be to allow Jinja 2.7.3 and newer --
preventing dep resolution conflicts in Python projects that pin
Jinja2 2.7.3 but also need to use moto.
2018-03-21 09:05:12 -07:00
Jack Danger
17f3758591
releasing version 1.3.0 (#1526)
* Adding CHANGELOG entry for 1.3.0

* bumping to version 1.3.0

* Updating implementation coverage
2018-03-21 09:01:22 -07:00
Iain Bullard
02ffce1a15 Tighten upper bound on python-dateutil to match botocore (#1519)
90d7692702
2018-03-21 08:50:14 -07:00
Steve Pulec
31eac49e15 Lock down version of aws-xray-sdk
See https://travis-ci.org/spulec/moto/jobs/350056229
2018-03-06 17:49:02 -05:00
Jack Danger
24fee6726a bumping version to 1.2.0 2018-01-10 15:29:22 -08:00
Jack Danger
1744f4340f bumping to version 1.1.25 2017-11-20 10:26:59 -08:00
Toshiya Kawasaki
0de2e55b13 Support iot and iot-data (#1303)
* append appropriate urls when scaffolding

* make dispatch for rest-api

* fix dispatch for rest-json

* fix moto/core/response to obtain path and body parameters

* small fixes

* remove unused import

* fix get_int_param

* Add features of things and thing-types

* fix scaffold

* basic crud of cert

* support basic CRUD of policy

* refactor

* fix formatting of scaffold

* support principal_pocicy

* support thing_principal

* update readme

* escape service to handle service w/ hyphen like iot-data

* escape service w/ hyphen

* fix regexp to extract region from url

* escape service

* Implement basic iota-data feature

* iot-data shadow delta

* update readme

* remove unused import

* remove comment

* fix syntax

* specify region when creating boto3 client for test

* use uuid for seed of generating cert id

* specify region_name to iotdata client in test

* specify region to boto3 client in moto response

* excude iot and iotdata tests on server mode

* fix handling of thingTypeName in describe-thing

* test if server is up for iot
2017-11-10 09:44:02 +00:00
Jack Danger
fc78e6fee8 bumping to version 1.1.24 2017-10-24 13:17:49 +02:00
Florent Rivoire
5c55119562 Do not freeze requirement aws-xray-sdk to a specific version (>= instead of ==) 2017-10-23 10:47:56 +02:00
Jack Danger
b286123425 bumping to version 1.1.23 (#1269) 2017-10-17 18:33:57 -07:00
Jack Danger
317dbbd1a3 requiring minimum botocore (#1268)
Boto and Boto3 can be a little old but Moto will throw an error if
botocoe doesn't even know about some of the services it supports.
As of this commit Polly is new enough some users are running into
exceptions.
2017-10-17 18:13:27 -07:00
Terry Cain
49ddb500a8 AWS X-Ray client mock. (#1255)
* X-Ray Client SDK patched

Fixes #1250

* Fixed flake8

* Fixed some issues

* Fixed flake8

* Fixed more typos

* Fixed python2 string

* Fixed aws-sdk patch order

* Added more test cases to test the patching
2017-10-16 17:06:22 -07:00
Jack Danger
94fd0ad9f8 bumping to version 1.1.22 2017-10-10 13:36:50 -07:00
Jack Danger
6e889daaa8 bumping to version 1.1.21 2017-10-02 15:35:36 -07:00
Jack Danger
867fc3b7f7 Removing dicttoxml dependency 2017-10-02 15:10:06 -07:00
Jack Danger
c5b6f5ea07 bumping to version 1.1.20 2017-10-01 17:00:48 -07: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
Jack Danger
ca8ce8705b Merge pull request #1216 from JackDanger/version-1.1.19
bumping to version 1.1.19
2017-09-27 14:43:54 -07:00
Jack Danger
ca9db672b4 bumping to version 1.1.19 2017-09-27 14:43:39 -07:00
Jack Danger
8656f8deef Merge pull request #1215 from kevinfrommelt/fix-missing-json
Install addition package files
2017-09-27 14:43:26 -07:00
Kevin Frommelt
a8b64022bb
Install addition package files 2017-09-27 16:33:52 -05:00
Jack Danger
9c5d05dd61 bumping to version 1.1.18 2017-09-27 14:01:34 -07:00
Jack Danger
4768c28443 bumping to version 1.1.17 2017-09-27 13:51:41 -07:00
Jack Danger
12d3cc7558 bumping to version 1.1.16 2017-09-27 12:53:36 -07:00
Jack Danger
dd32e02dfa bumping to version 1.1.15 2017-09-27 11:54:35 -07:00
Jack Danger
8355024db8 bumping to version 1.1.14 2017-09-25 14:42:56 -07:00
Jack Danger
8e79fadb0f Merge pull request #1174 from terrycain/acm
ACM Implementation
2017-09-25 14:36:08 -07:00
Jack Danger
c2e0d8876d bumping to version 1.1.13 2017-09-22 10:11:09 -07:00
Terry Cain
283b67cb9b
Added nearly all ACM method implementations
Added cryptography>=2.0.0 to install deps
Created base backend and certificate objects
Implemented most of the methods
Added pregenerated certs
2017-09-22 00:20:26 +01:00
Jack Danger
a1292d8c6e bumping to version 1.1.12 2017-09-21 10:55:19 -07:00
Jack Danger
39f3e575be bumping to version 1.1.11 2017-09-18 14:00:16 -07:00
Jack Danger
dc1d0da63c bumping to version 1.1.10 2017-09-16 20:09:07 -07:00
Jack Danger
3c0710720a bumping to version 1.1.9 2017-09-15 10:52:44 -07:00
Jack Danger
bbd541ce15 bumping to version 1.1.8 2017-09-14 22:58:09 -07:00
Jack Danger
21df9b9a78 bumping to version 1.1.7 2017-09-14 11:14:41 -07:00
Jack Danger
b2423f44ac bumping to version 1.1.6 2017-09-13 15:25:16 -07:00
Jack Danger
417ade7b8f bumping to version 1.1.5 2017-09-12 14:53:50 -07:00
Jack Danger
88b4d0b271 bumping version to 1.1.4 2017-09-11 12:34:20 -07:00
Jack Danger
60cfa3e32b bumping version to 1.1.3 2017-09-08 16:38:49 -07:00
Jack Danger
b088811d06 bump version to 1.1.2 2017-09-07 11:31:42 -07:00
Chris Evett
646e45b7e4 update dependencies so that make init will work; exclude ropeproject folder in gitignore (#1111) 2017-09-07 11:30:46 -07:00
Jack Danger
15e5fe44e9 bump version to 1.1.1 (#1089) 2017-08-25 23:45:19 -07:00
Jack Danger
8e57dc92f4 bump version to 1.1.0 (#1084) 2017-08-25 21:46:14 -07:00
Toshiya Kawasaki
04880dec22 use requests version more than 2.5.0, because requests.request started support json argument from v2.4.2 2017-08-17 23:34:03 +09:00
Steve Pulec
856de724d0 1.0.1 2017-06-03 20:13:03 -04:00
Anthony Miyaguchi
601fd8a7b4 Fix issue #949 - Add mock as dependency 2017-05-16 14:56:29 -07:00
Steve Pulec
af9c65c5cc Version 1.0.0 2017-05-12 19:59:26 -04:00
Steve Pulec
0fe824277b Merge pull request #923 from JackDanger/jack/cloud-formation-yaml
Allow yaml templates for cloud formation
2017-05-12 18:41:46 -04:00
Jack Danger Canty
94a923ae91 adding pyaml dependency 2017-05-11 06:50:33 -07:00
Steve Pulec
0adebeed24 Merge #913. 2017-05-10 21:58:42 -04:00
Steve Pulec
3cdb4afad0 Fix redshift responses to work with json or xml. 2017-03-15 21:58:37 -04:00
Steve Pulec
cf771d7f14 Add py26 deprecation to changelog 2017-03-06 21:22:37 -05:00
Steve Pulec
d530bcf4a7 remove py26. 2017-02-28 21:29:28 -05:00
Steve Pulec
468a1b970c Add responses dependencies. 2017-02-15 22:47:33 -05:00
Steve Pulec
fde721bed7 Testing new version of decorator. 2017-02-15 22:35:45 -05:00
Steve Pulec
4eaf5d527e 0.4.31 2017-01-24 09:48:31 -05:00
Steve Pulec
1c61498cc8 0.4.30 2016-11-09 11:25:14 -05:00
Steve Pulec
24035877f6 0.4.29 2016-11-07 14:55:08 -05:00
Steve Pulec
c3e0ff4fe7 0.4.28 2016-11-07 12:57:18 -05:00
Taro Sato
484faa54c4 Implement filters and pagers for some EMR end points 2016-10-20 10:03:17 -07: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
Steve Pulec
4157abe8de Need to require higher Jinja2. Closes #728. 2016-10-12 22:25:14 -04:00
Steve Pulec
c87b001f7d Merge pull request #719 from spulec/refactor/remove-sure-from-setup.py
Remove sure and freezegun from setup.py
2016-10-09 19:05:47 -04:00
Andrew Gross
8720601eaa Remove sure and freezegun from setup.py, they still exist in requirements-dev.txt 2016-09-29 16:37:34 -04:00
Adam Chainz
e6bf5550ce setup.py - use extras_require for flask
Adding `moto` to the requirements file for my Django project pulls in `flask`, even though I don't need the server component. By making the `server` 'extra' then there is no hard requirement on flask.
2016-09-26 13:44:05 +01:00
Steve Pulec
97513590c8 0.4.27 2016-09-16 18:41:11 -04:00
Steve Pulec
18b6197bf2 Merge pull request #674 from IlyaSukhanov/master
Preserve Namespace and MetricName when creating cloudwatch alarm.
2016-08-27 21:05:31 -04:00
Waldemar Hummer
5075f6684f add support for requestTemplates parameter in apigateway mock 2016-08-10 13:55:59 +10:00
Ilya Sukhanov
a37838b638 Preserve Namespace and MetricName when creating cloudwatch alarm. 2016-08-01 17:31:08 -04:00
Steve Pulec
5ed874cd6e 0.4.25 2016-06-18 20:47:49 -04:00
Steve Pulec
9c176671d0 0.4.24 2016-05-01 22:35:49 -04:00
Jay O'Conor
13ef083271 Update setup.py
Boto >= 2.36.0 required to resolve awslambda ImportError
2016-03-18 12:12:24 -07:00
Jay O'Conor
3957a93a64 Moto requires boto >= 2.33.0
Moto imports a class in boto that did not exist before boto 2.33.0

Partial traceback showing ImportError with versions of boto < 2.33.0:
  File "/src/python/moto/moto/__init__.py", line 8, in <module>
    from .autoscaling import mock_autoscaling  # flake8: noqa
  File "/src/python/moto/moto/autoscaling/__init__.py", line 2, in <module>
    from .models import autoscaling_backends
  File "/src/python/moto/moto/autoscaling/models.py", line 5, in <module>
    from moto.elb import elb_backends
  File "/src/python/moto/moto/elb/__init__.py", line 2, in <module>
    from .models import elb_backends
  File "/src/python/moto/moto/elb/models.py", line 4, in <module>
    from boto.ec2.elb.attributes import (
ImportError: cannot import name ConnectionSettingAttribute
2016-03-18 10:50:40 -07:00
Steve Pulec
b5d5c02d75 0.4.23 2016-03-02 15:40:21 -05:00
Steve Pulec
a9d161e58e 0.4.22 2016-02-17 16:44:57 -05:00
Steve Pulec
ac4ce7d53f 0.4.21 2016-01-24 17:21:19 -05:00
Steve Pulec
595259a99d 0.4.20 2016-01-17 18:11:00 -05:00
Steve Pulec
2e69986e01 lock httpretty. 2015-12-13 21:53:58 -05:00
Steve Pulec
fe946588b2 Make moto require boto>=2.26.0. Closes #469. 2015-11-28 08:51:41 -05:00
Steve Pulec
704110d9c7 0.4.19 2015-11-27 14:46:50 -05:00
Steve Pulec
0061eb77d7 0.4.18 2015-11-03 14:01:09 -05:00
Steve Pulec
99a4bcf98f 0.4.17 2015-11-02 10:11:14 -05:00
Steve Pulec
fcaa8fbce7 0.4.16 2015-11-02 10:09:17 -05:00
Steve Pulec
11cb2fba16 0.4.15 2015-10-06 15:20:21 -04:00
Steve Pulec
967c778390 0.4.14 2015-09-17 17:21:57 -04:00
Steve Pulec
1b811e6949 0.4.13 2015-09-16 11:29:03 -04:00