Anton Grübel
9a020e6120
Fix events rule ARN for custom event bus ( #3809 )
...
* Fix events rule ARN for custom event bus
* Fix cloudformation test
2021-03-28 19:41:24 +01:00
Tom Noble
57aa83e6c1
Use MOCK_ACCOUNT_ID when building default Rule ARN ( #3808 )
...
Co-authored-by: Tom Noble <tom.noble@bjss.com>
2021-03-28 16:20:21 +01:00
David Baumgold
3debbcd8d4
Document installing Moto with Homebrew ( #3805 )
2021-03-28 14:59:38 +01:00
Tom Noble
a001c59f7e
Modify SSM put_parameter()
to raise ValidationException if value is empty string ( #3806 )
...
* Modify put_parameter() to raise ValidationError when value is empty string
* Simplify empty string check
Co-authored-by: Tom Noble <tom.noble@bjss.com>
2021-03-28 14:45:57 +01:00
Tom Noble
f549f1d087
Modify Rule.send_to_targets() to handle event_bus_name as ARN ( #3804 )
...
* Modify Rule.send_to_targets() to handle event_bus_name as ARN
* Apply black formatting
Co-authored-by: Tom Noble <tom.noble@bjss.com>
2021-03-28 11:33:47 +01:00
Codeglitches
9f9716ee01
Check S3_IGNORE_SUBDOMAIN_BUCKETNAME environment variable ( #3796 )
...
* Check S3_IGNORE_SUBDOMAIN_BUCKETNAME environment variable
* move S3_IGNORE_SUBDOMAIN_BUCKETNAME environment variable to settings
2021-03-26 16:51:19 +00:00
Brian Pandola
1761be46e3
Return error when trying to add rules to a non-existent security group ( #3802 )
...
Behavior and error code/message confirmed against real AWS backend.
2021-03-26 13:00:51 +00:00
Brian Pandola
2bae7e4e0d
Raise error when adding duplicate egress rule to ec2:SecurityGroup ( #3801 )
...
The `InvalidPermission.Duplicate` error was already implemented for inbound rules,
but AWS also returns this error for duplicate outbound rules.
Very minor changes were needed on existing tests that were adding duplicate
outbound rules (when testing the RulesPerSecurityGroupLimitExceeded error).
2021-03-26 11:23:07 +00:00
David Pedrosa
ba0f0bd513
Improve dynamodb query case sensitivity ( #3799 ) ( #3800 )
...
* between clause is not case-sensitive anymore
* begins_with will raise an exception unless lower-case is used
Co-authored-by: David Pedrosa <d.pedrosa@indizen.com>
2021-03-25 20:22:36 +00:00
Bert Blommers
5aa8d03a59
Admin - Use GraphQL to find PR, instead of commit msg ( #3792 )
2021-03-21 10:18:53 +00:00
Bert Blommers
0ab7362f8b
Automate 'This is now part of moto >= ..' comments ( #3791 )
2021-03-20 16:36:00 +00:00
Ismael Fernandez Molina
04cbd1fa1a
adding physical_resource_id in SubnetRouteTableAssociation, Route and NatGW classes ( #3789 )
...
* adding physical_resource_id in SubnetRouteTableAssociation, Route and NatGW classes
* adding tests
* passing litern at test
* passsing black==19.10b0 as lintern
* passing test to python 2.7
2021-03-20 08:57:53 +00:00
Andrés Álvarez
a5fc99c9af
Raise TemplateDoesNotExist
if template does not exist ( #3784 )
...
* Raise TemplateDoesNotExist if template does not exist
When sending templated emails
* Remove unnecessary 'when called with' in test
2021-03-19 15:36:53 +00:00
Connor
74272ae51c
feature/support create_case, resolve_case, describe_cases and associated tests ( #3776 )
...
* feature/support create_case, resolve_case, describe_cases and associated
tests
* review/support - addressed PR comments
- Have created a SupportCase object to persist case
- Associated testing to address PR comments
* Support - simplify tests
* Support - Simplify tests even more
Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-03-17 14:01:41 +00:00
Tibor Djurica Potpara
b06e77b604
Make put-object-acl return 404 if the key does not exist ( #3777 )
...
Co-authored-by: Tibor Djurica Potpara <tibor.djurica@reddit.com>
2021-03-16 22:24:41 +00:00
Sawyer Hollenshead
b9f83c200f
Cognito IdP: Raise UsernameExistsException from sign_up when user exists ( #3765 )
...
* Raise UsernameExistsException from sign_up when user exists
* Run formatter
* Use pytest.raises
* Fix test
2021-03-16 22:22:53 +00:00
tony-dot-sh
5fe3a707ed
fix route table association by internet gateway ( #3773 )
...
* fix route table association by internet gateway per https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AssociateRouteTable.html
* Route53
- Add test for route table association by internet gateway
- Minor test tweak for Main route table values
TODO: explicitly set the route table main route association
* Route53
- forgot subnet id association test
Co-authored-by: Tony Greising-Murschel <tony@platform.sh>
2021-03-16 14:15:58 +00:00
tony-dot-sh
1b288b6936
DNSName key retrieval for list-hosted-zones-by-dns-name ( #3774 )
...
* DNSName key retrieval for list-hosted-zones-by-dns-name per https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListHostedZonesByName.html#API_ListHostedZonesByName_RequestSyntax
* Route53
- uncomment return to be shared by zone list response
- add test to return list hosted zone by dns name without '.' in FQDN
Co-authored-by: Tony Greising-Murschel <tony@platform.sh>
2021-03-16 12:58:16 +00:00
Moto Admin
9bfd95476b
Increase version number post-release
2021-03-12 17:10:02 +00:00
Bert Blommers
a84459072d
Prep 2.0.2 release ( #3768 )
...
* Updating implementation coverage
* Changelog for 2.0.2
2021-03-12 16:19:36 +00:00
Franck Ndame
808f3c748f
Implementation of core AWS Mediapackage endpoints ( #3762 )
...
* write boilerplate code
* generate boilerplate code with scaffold script
* create mediapackage channel
* remove duplicate mediapackage reference
* remove Channel key from mediapackage response
* describe_channel endpoint added
* create_origin_endpoint-added
* keys changed to camel case to fix issue
* minor changes to clean up
* minor clean up again
* implement & test delete_channel
* delete origin endpoint created; WIP-tests failing
* fix delete_origin_endpoint issue
* refactor function call
* delete origin endpoint completed; test_server tests added
* implement and test describe_origin_endpoint
* update origin endpoint added
* remove print statements
* implement test_list_origin_endpoint_succeeds
* create test name changed
* create test name changed
* changes after flake8 and black run
* url assertion added to decribe origin endpoint test
* region dependent url enabled
Co-authored-by: Anya <anya.champaneria@capablue.com>
Co-authored-by: AnyaChamp <71766808+AnyaChamp@users.noreply.github.com>
2021-03-12 14:56:25 +00:00
George Vince
4da11da2bf
Secrets manager untag resource ( #3767 )
...
* added: untag_resource + test
* formatting
* formatting
* formatting
* added: formatting fix
2021-03-12 10:35:38 +00:00
Brian Pandola
f96ac40fca
Fix: ApproximateArrivalTimestamp
should be epoch with millisecond precision ( #3764 )
...
The Record class was already capturing a unix timestamp, but it was incorrectly
converting it to ISO format when sending back to the client.
Updating the model to return the correct timestamp necessitated a minor change
to one of the tests because `botocore` converts non-timezone aware timestamps
to local time.
2021-03-11 08:54:21 +00:00
Jon Michaelchuck
a4009e7bd1
MaxSessionDuration should be included in the list_roles response ( #3750 )
2021-03-10 08:49:50 +00:00
usmangani1
433e4c0733
Fix:Add functionality authorize-cluster-security-group-ingress ( #3742 )
...
* Fix:Add functionality authorize-cluster-security-group-ingress
* Added tests
* Added more test cases
2021-03-10 08:46:13 +00:00
Bert Blommers
5aefbb1e51
Update build.yml - install missing dep on deploy
2021-03-05 12:36:32 +00:00
Anton Grübel
6da4905da9
Fix AttributeNames for sqs.receive_message ( #3736 )
...
* Fix AttributeNames for sqs.receive_message
* Fix Lambda issue
* Change to parametrized tests
* Simplify attribute logic
2021-03-05 10:42:07 +00:00
Anton Grübel
ac0b4bbcf7
Fix Osaka region problem ( #3751 )
2021-03-05 10:36:34 +00:00
Bert Blommers
b6cb286b1c
Scaffold - create new __init__ file in test-dir
2021-03-03 14:29:25 +00:00
Moto Admin
751c5ec362
Increase version number post-release
2021-03-03 13:06:32 +00:00
Bert Blommers
9ec232936f
Build - use Py3.8
2021-03-03 09:57:08 +00:00
Bert Blommers
562d0eef69
Automate releases ( #3732 )
...
* Test custom action with custom input
* Run test workflow on push
* Automated release configuration
2021-03-03 09:06:22 +00:00
Bert Blommers
1579e44a27
Update CHANGELOG.md
2021-03-03 09:05:44 +00:00
usmangani1
5c04a4d8cc
Fix:update rule ( #3734 )
...
* Fix:SQS-message retention period consideration
* Fix:SQS-message retention period consideration
* Fix:SQS-message retention period consideration
* Added comments &linting
* Fixed tests
* Fix:update rule
* Linting and comments
2021-03-02 09:01:09 +00:00
Joakim Saario
457402fbe2
Support SSM Parameter tags ( #3739 )
2021-03-02 09:00:26 +00:00
Anton Grübel
3c810ad152
Add eventbridge replay ( #3735 )
...
* Add events.start_replay
* Add events.describe_replay
* Add events.list_replays
* Add events.cancel_replay
* implement actual replay functionality
* Fix Python 2.7 issues
2021-03-01 13:20:36 +00:00
Bert Blommers
6da8dc0aec
Update ImplementationCoverage for APIGateway ( #3733 )
2021-02-26 18:48:05 +00:00
rajinder
62f5adddc4
3730 update api key - doc update ( #3731 )
...
* updated doc for added update_api_key / update_usage_plan feature
* updated doc for added update_api_key / update_usage_plan feature
Co-authored-by: rajinder saini <rajinder.saini@c02vt5k2htd6.corp.climate.com>
2021-02-26 08:52:01 +00:00
Jordan Dimov
869b3c45c1
Implements core MediaConnect endpoints ( #3718 )
...
* Adds initial models and implements create_flow endpoint.
* Updates README with a Releases section
* Removes unused import
* Adds __init__.py files to MediaLive and MediaConnect test directories.
* Adds list_flows endpoint and tests.
* Adds describe_flow endpoint and tests.
* Adds delete_flow endpoint and tests.
* Adds URLs
* Adds start_flow and stop_flow endpoints and tests.
* Adds tag_resource and list_tags_for_resource endpoints and tests.
* Uses unquote for ARNs
2021-02-25 16:07:26 +00:00
rajinder
4b1c7225b6
added feature update_usage_plan and fixed some lint errors ( #3727 )
...
Co-authored-by: rajinder saini <rajinder.saini@c02vt5k2htd6.corp.climate.com>
2021-02-25 07:46:11 +00:00
Jon Michaelchuck
0625bbfa11
Fixes for IAM Role Description field in responses from list_roles and create_roles ( #3724 )
...
* Add IAM Role Description field to list_roles responses
The IAM ListRoles IAM API call will return the Description key/value
for each role if it exists. If it does not exist the Description
key is not included.
* fix handling in create_role resp
* blackg
* Combine two tests using pytest.mark.parametrize
* consistency
2021-02-24 19:14:11 +00:00
Bert Blommers
0ae1ce9042
Only allow release on manual trigger
2021-02-24 17:27:14 +00:00
Bert Blommers
52b10d9d3e
Automate release - Test Github Action ( #3726 )
...
* Test custom action with custom input
* Run test workflow on push
2021-02-24 14:42:22 +00:00
William Richard
0f4f01bb7b
Add the status field to ECS task definitions ( #3723 )
...
Also I found extra tests for describe_task_definition and deregister_task_definition that were not being run,
so I changed their names so they are found by pytest and made them pass. I also added checks to them for the new
status field.
2021-02-24 13:26:26 +00:00
Bert Blommers
6a6c2ffd13
Update release version
2021-02-23 17:07:51 +00:00
Bert Blommers
67c1dbc164
Changelog 2.0.0 ( #3721 )
...
* Changelog for upcoming release (..-27/01)
* Changelog for upcoming release (..-21-02)
* Update Implementation Coverage
* Update AWS Managed Policies
2021-02-23 15:16:07 +00:00
Bert Blommers
af8b658b26
Add installation-methods to docs ( #3720 )
2021-02-23 13:59:29 +00:00
Nuwan Goonasekera
a0d7a943ee
Fix unknown instance type ( #3710 )
...
* Use apiname when comparing unknown instance ids
* Use get_instance_types API to populate instance_types.json
* Fix scope of instances array when retrieving instance types
2021-02-22 10:21:59 +00:00
Luigi Tagliamonte
442fcd4e51
add tags support to ECS tasks ( #3715 )
...
* add tags support to ECS tasks
* lint
* lint
* fmt
* fmt with same version
Co-authored-by: ltagliamonte <ltagliamonte@users.noreply.github.com>
2021-02-21 10:11:34 +00:00
Jakub Musko
c8c6b0bf58
Fix stackset describe/delete. Fix stackset update. ( #3713 )
...
* Fix stack set fetching and deleting.
* Also fix stackset update operation to accept previous values.
* Fix linting.
* Rename aliased test.
2021-02-21 09:47:10 +00:00