Commit Graph

90 Commits

Author SHA1 Message Date
Bert Blommers
dea4a98b64 Techdebt: Remove old/deprecated code (#7220) 2024-01-27 19:38:09 +00:00
Jad El Kik
4c8096feb2
Expose ThreadedMotoServer publicly (#7076) 2023-11-30 21:26:47 -01:00
tungol
55c589072f
Admin: sorting imports with ruff (#7075) 2023-11-30 14:55:51 -01:00
Bert Blommers
f38babb026
Techdebt: MyPy S (#6261) 2023-04-26 22:20:28 +00:00
Bert Blommers
4ed8b93e18
MotoServer - deprecate server-argument (#5891) 2023-02-02 11:45:49 -01:00
Bert Blommers
eed32a5f72
Pylint - Enable more rules on source and tests-directory (#4929) 2022-03-11 20:28:45 -01:00
Bert Blommers
dc5353f1ae
Feature: Ability to start MotoServer within Python (#4904) 2022-03-03 19:54:10 -01:00
Cristopher Pinzón
8b81481d3e
Addition of s3control support in server mode (#4885) 2022-02-24 20:35:07 -01:00
Bert Blommers
3ba3f1460f
Propagate MotoHost via env vars to Lambda (#4658) 2022-01-27 11:04:03 -01:00
Bert Blommers
aa70ee254d
Remove deprecated decorators + boto dependency (#4378) 2022-01-18 14:18:57 -01:00
Bert Blommers
d118d592ca
Pylint remaining source code (#4760) 2022-01-14 18:51:49 -01:00
Bert Blommers
cf87e75d6e
Feature: Mock region (#4699) 2021-12-24 20:02:45 -01:00
Bert Blommers
9258316e16
Prep 2.2.17 release (#4642) 2021-11-29 19:35:18 -01:00
Bert Blommers
2cf37a4b90
Feature - CloudFront (#4640) 2021-11-29 13:35:43 -01:00
Bert Blommers
e4e58f777d
Feature - Budgets service (#4619) 2021-11-23 08:57:15 -01:00
Bert Blommers
8b5e926ec1
SimpleDB - initial implementation (#4585) 2021-11-17 19:09:24 -01:00
kbalk
958a129f97
Route53Resolver: Add resolver endpoint-related APIs (#4559) 2021-11-17 19:06:35 -01:00
Bert Blommers
f923d0d1e0
Feature: Custom cloudformation resources (#4512) 2021-11-03 20:00:42 -01:00
Vincent Barbaresi
03c170e206
S3: Implement CORS headers in OPTIONS requests (#4497) 2021-10-30 10:02:30 +00:00
Bert Blommers
0590ad296e
Feature: TimeStream support (#4454) 2021-10-21 15:13:43 +00:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
Bert Blommers
f5107b9252
STS - duplicate boto tests (#4329) 2021-09-23 12:09:24 +00:00
Bert Blommers
3498689d9d
Performance improvement - Only reset backends loaded into memory (#4274) 2021-09-15 21:53:31 +00:00
Thomas Rausch
e30169cfcb
Add url_bases index for faster backend lookup (#4209) 2021-09-08 15:06:43 +01:00
Waldemar Hummer
6803a473dc
add exception handling to signal handlers if moto is started from non-main thread (#4112) 2021-07-30 06:20:45 +01:00
Bert Blommers
7693d77333
Remove Py2 support (#3915) 2021-07-26 07:40:39 +01:00
Jordi Alhambra
759974d9cd
Media store data Service (#3955)
* Add delete container and list tags endpoints to MediaStore

* Black reformat

* Fixed Lint problems

* Check if dictionary was deleted effectively

* lint fix

* MediaPackageClientError

* Lint Fix

* Test unknown channel describe

* Concatenation Fix

* MediaPackage - fix error message

* MediaPackage ClientError part2

* Mediastoredata not working

Base url

tests and renaming

typo

List Items not returning proper JSON and wrongly hitting get_object response

MediaStore2

Tests

* More implementation

* Fix tests and format

* Comments fix

* Comments 2

* MediastoreData - alternative logic to figure out appropriate host

Co-authored-by: av <arcovoltaico@gmail.com>
Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-06-28 13:23:23 +01:00
Razvan Cosma
a268aae540
allow specifying the service as env var (#3899)
* allow specifying the service as env var

This is required if running as a Github Action which doesn't allow passing parameters to `docker create` but allows environment variables

* import os

* Update server.py
2021-05-06 14:47:08 +01: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
Brian Pandola
c9dd9cc7f9
Fix: IoT does not work in server mode (#3644)
Closes #1631
2021-02-01 13:15:57 +00:00
Pierce Lopez
2bdba88389
server: explicit signal handler for SIGINT and SIGTERM (#3595)
When running alone as pid 1 in a container, most signals that would
cause the process to exit by default, are instead ignored by default.
The container runtime will send SIGTERM, wait 10 seconds, then send
SIGKILL, which will work, but moto.server can exit much faster if
it has an explicit SIGTERM handler.
2021-01-19 17:46:00 +00:00
Christian Bandowski
f58e6e1038
#3494 fix using EventBridge via Go SDK (#3495) 2020-11-26 08:52:58 +00:00
Leo Sutic
cc0bd5213f
Enable CORS from everywhere using flask-cors. (#3316)
Co-authored-by: Leo Sutic <leo.sutic@matterport.com>
2020-09-19 10:07:17 +01:00
jweite
1b80b0a810
Sagemaker models (#3105)
* First failing test, and enough framework to run it.

* Rudimentary passing test.

* Sagemaker Notebook Support, take-1: create, describe, start, stop, delete.

* Added list_tags.

* Merged in model support from https://github.com/porthunt/moto/tree/sagemaker-support.

* Re-org'd

* Fixed up describe_model exception when no matching model.

* Segregated tests by Sagemaker entity.  Model arn check by regex..

* Python2 compabitility changes.

* Added sagemaker to list of known backends.  Corrected urls.

* Added sagemaker special case to moto.server.infer_service_region_host due to irregular url format (use of 'api' subdomain) to support server mode.

* Changes for PR 3105 comments of July 10, 2020

* PR3105 July 10, 2020, 8:55 AM EDT comment: dropped unnecessary re-addition of arn when formulating model list response.

* PR 3105 July 15, 2020 9:10 AM EDT Comment: clean-up SageMakerModelBackend.describe_models logic for finding the model in the dict.

* Optimized imports

Co-authored-by: Joseph Weitekamp <jweite@amazon.com>
2020-07-16 13:12:25 +01:00
Stijn Seghers
b8820009e8
Lazily import submodules 2020-04-28 10:40:32 +12:00
Bert Blommers
25d1e1059e STS - Only check request-body of eligible requests for Actions 2020-04-22 14:11:13 +01:00
Bert Blommers
50111929cc STS - Handle AssumeRoleWithSAML as an unsigned request 2020-04-22 12:18:27 +01:00
Asher Foa
3bb31c84fd Fix some typos 2019-11-16 12:31:45 -08:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
Łukasz Sznuk
e0304bc500 Allows leading // for mocked s3 paths (#1637). 2019-08-28 16:17:45 +02:00
Steve Pulec
1fb06e6a08 Cleanup refactor. 2019-07-21 23:03:36 -05:00
Steve Pulec
5de95b026a More refactoring. 2019-07-21 22:30:35 -05:00
Steve Pulec
4dd2b66b04 Refactor backend parsing. 2019-07-21 22:07:58 -05:00
Steve Pulec
e3eb4d1809 Cleanup host parsing. 2019-07-21 21:31:19 -05: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
Karl Gutwin
e7b01292e9 Fix test failures in server mode 2018-11-08 13:57:44 -05:00
José Luis Diaz
54cbc98506 Return given host for 'moto-api' 2018-09-03 19:16:14 -03: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
jbergknoff-10e
e111cd1ff9 Implement some of cognito-idp 2018-05-07 09:38:04 -05:00
jbergknoff-10e
86fed8ba27 lint 2018-05-04 16:42:16 -05:00