Commit Graph

4230 Commits

Author SHA1 Message Date
acsbendi
9149852217 Implemented returning correct health for stopped instances. 2019-07-18 16:57:27 +02:00
acsbendi
44e93c94e8 Created test for describing health of a stopped instance target. 2019-07-18 16:25:41 +02:00
sblumin
a2ac341e3d added support to UPSERT records that are not simple routing policy 2019-07-17 16:37:47 -07:00
acsbendi
e4374431d6 Fixed instance_id not set to a default value in create_auto_scaling_group. 2019-07-17 21:46:07 +02:00
acsbendi
4834fc41c6 Fixed a linting error. 2019-07-17 21:15:31 +02:00
Don Kuntz
c8d8aa4dd0
Add glue.batch_get_partition endpoint 2019-07-17 14:11:34 -05:00
acsbendi
c8abd43c88 Implemented creating autoscaling group from instance. 2019-07-17 20:58:23 +02:00
acsbendi
4ca0bd807f Created tests for calling CreateAutoScalingGroup with an instance id. 2019-07-17 20:15:59 +02:00
Jongseok Choi
5d91ce20fc Fix 'MaxRecords' type issues by _get_param()
It alternates _get_param() with _get_int_param() on parsing the
parameter 'MaxRecords'.
2019-07-18 03:09:53 +09:00
Carlos Aguado
19fef76a5f Fix moto_server handling of unsigned requests
Certain AWS requests are unsigned. Moto in standalone server mode
implements an heuristic to deduce the endpoint and region based on the
X-Amz-Target HTTP header. This commit extends this concept to add
additional endpoints that used unsigned requests at times.
2019-07-17 09:25:14 +10:00
acsbendi
95799b99bc Fixed incorrect authentication error handling in S3. 2019-07-16 16:27:50 +02:00
Berislav Kovacki
1b3157ced0 Handle change of ASG desired capacity on min and max size update
A change in UpdateAutoScalingGroup:
* if a value for MinSize is specified without specifying a value for
DesiredCapacity, and the new MinSize is larger than the current size of
the group, set the group's DesiredCapacity to the new MinSize value
* if a value for MaxSize is specified without specifying a value for
DesiredCapacity, and the new MaxSize is smaller than the current size of
the group, set the group's DesiredCapacity to the new MaxSize value
2019-07-16 09:12:03 +02:00
Steve Pulec
6bc07360a1
Merge pull request #2313 from caguado/fix/2312
Implement assume_role_with_web_identity
2019-07-15 23:08:23 -05:00
Steve Pulec
d1e057ecab
Merge pull request #2309 from caguado/fix/2308
Implement update_user_pool_domain
2019-07-15 22:46:26 -05:00
Carlos Aguado
e54f74776b Implement assume_role_with_web_identity
The AssumeRoleWithWebIdentity is a similar endpoint to STS's AssumeRole
where the authentication element is a JWT id_token from a configured OP.
This commit implements the functionality and relies on the same result
generated for the regular AssumeRole.
2019-07-16 13:27:47 +10:00
Carlos Aguado
7c17fcd21d Implement get_open_id_token
Introduce the CognitoIdentity's GetOpenIDToken endpoint to retrieve a
JWT tuple from Cognito's Identity Pool for a given IdentityId.
2019-07-16 13:20:31 +10:00
Steve Pulec
9acdc59aa4
Merge pull request #2291 from spulec/context-manager-return-mock
Have context manager return mock.
2019-07-15 22:09:19 -05:00
Carlos Aguado
81980850d4 Implement update_user_pool_domain
Introduce the CognitoIDP's UpdateUserPoolDomain to update configuration
options of the associated domain to a Cognito IDP (e.g. ACM certificate).
2019-07-16 13:09:13 +10:00
Steve Pulec
e4ed14b131
Merge pull request #2297 from yan12125/patch-2
setup.py: remove unnecessary 'datetime' entry
2019-07-15 20:49:23 -05:00
Steve Pulec
25ab3afc31
Merge pull request #2295 from garrettheel/condition-expr-or-evaluation
dynamodb2: Defer evaluation of the OR RHS in condition expr
2019-07-15 20:46:11 -05:00
Steve Pulec
ef4f7e1ecc
Merge pull request #2307 from efiop/master
moto: s3: support partNumber for head_object
2019-07-15 20:33:21 -05:00
Steve Pulec
67b3d07e5d
Merge pull request #2306 from bkovacki/extend-describe-network-interface-filter
Extend EC2 DescribeNetworkInterface filter support
2019-07-15 20:30:22 -05:00
Steve Pulec
f80b309835
Merge pull request #2301 from asherf/versions
Update supported python versions, add badages.
2019-07-15 20:29:22 -05:00
Steve Pulec
3ad72a9871
Merge pull request #2299 from bkovacki/rds-vpc-security-groups-set-update
Add support for VpcSecurityGroups set/update in RDS
2019-07-15 20:19:36 -05:00
Steve Pulec
3a92d0f016
Merge pull request #2305 from jakzo/fix-id-generation
Fix ID generation
2019-07-15 20:04:22 -05:00
Ruslan Kuprieiev
2c2dff22bc moto: s3: support partNumber for head_object
To support it, we need to keep multipart info in the key itself when
completing multipart upload.

Fixes #2154

Signed-off-by: Ruslan Kuprieiev <ruslan@iterative.ai>
2019-07-15 20:47:29 +03:00
Steve Pulec
8b3b1f88ab Remove double-dev from release name. 2019-07-14 22:40:41 -05:00
Steve Pulec
86e650ff01 Set version to 1.3.14.dev. 2019-07-14 22:30:09 -05:00
Steve Pulec
cf95313b39 Disable non-prereleases; prep for 1.3.13. 2019-07-14 21:14:20 -05:00
Steve Pulec
77d5d099b9 Fix where we check version length. 2019-07-14 20:58:59 -05:00
Steve Pulec
81da2f5ff1 Add more debug logs. 2019-07-14 20:49:30 -05:00
Steve Pulec
57136a5f1b Prep for release 1.3.12 2019-07-14 20:39:57 -05:00
Berislav Kovacki
e67e2deee4 Extend EC2 DescribeNetworkInterface filter support
* add description property to EC2 NetworkInterface
* extend DescribeNetworkInterfaces filter support with description,
subnet-id, private-ip-address attributes
2019-07-15 00:01:37 +02:00
jakzo
9633917aec Fix ID generation 2019-07-14 16:37:54 +00:00
Asher Foa
4a87bdf1f3 Update supported python versions, add badages. 2019-07-13 13:16:12 -07:00
acsbendi
1b8179992e GetUser returns the IAM user who owns the access key in the request. 2019-07-13 15:58:34 +02:00
acsbendi
7db2d0f38c Use abc in a python2-compatible way. 2019-07-13 15:12:21 +02:00
acsbendi
7b096d690f Replaced print with log.debug. 2019-07-13 15:04:41 +02:00
acsbendi
de01adec57 Fixed linting errors. 2019-07-13 14:58:42 +02:00
acsbendi
b0fbd834c0 Merge branch 'spulec-master' 2019-07-13 13:44:11 +02:00
acsbendi
419fcf2ee9 Merge branch 'master' of https://github.com/spulec/moto into spulec-master 2019-07-13 13:43:19 +02:00
Berislav Kovacki
4ed189c454 Add support for VpcSecurityGroups set/update in RDS 2019-07-13 08:19:23 +02:00
Chih-Hsuan Yen
92bf8eff12
setup.py: remove unnecessary 'datetime' entry
This entry is added in [1]. New statements in [1] use the built-in datetime module, which is available since Python 2.3 [2]. On the other hand, when running `pip install moto`, pip installs Zope Datetime module [3], which is unnecessary.

[1] ed93821621
[2] https://docs.python.org/2.7/library/datetime.html
[3] https://pypi.org/project/DateTime/
2019-07-12 11:48:07 +08:00
Steve Pulec
396cb39676
Merge pull request #2296 from bkovacki/create-rds-with-option-group
Add support for OptionGroupName in create_db_instance
2019-07-11 19:56:41 -05:00
Berislav Kovacki
4fd0b5c710 Add support for OptionGroupName in create_db_instance 2019-07-11 22:43:42 +02:00
Steve Pulec
2a0df1e1a8 Flip when we test passthru. 2019-07-11 10:09:01 -05:00
Garrett Heel
0093a7992f dynamodb2: Defer evaluation of the OR RHS in condition expr 2019-07-11 08:29:07 -04:00
acsbendi
9d992c9335 Fixed error on single (non-list) Statements. 2019-07-11 14:22:42 +02:00
acsbendi
59f091bdea Default INITIAL_NO_AUTH_ACTION_COUNT should be infinity. 2019-07-11 13:58:57 +02:00
Mariusz Strzelecki
f32db6e64a Raising MalformedXML exception when using boto3 client and s3.delete_objects() 2019-07-11 09:53:23 +02:00