[Feedback Requested] Moto 1.0 Plan
See original GitHub issueI’ve been doing some work on a major upgrade of Moto and would appreciate any feedback/testing.
Big changes:
- Deprecate HTTPretty and boto support. These will still exist for now, just with separate decorators (@mock_ec2_deprecated). Since HTTPretty mocks at the socket level, it has caused issues in the past. Since we will primarily be supporting boto3 (and server mode) in the future and boto3 uses requests, we are switching to Responses
- More focus more on standalone server mode. I want Moto to work with any programming language. I’ve gone through and ensured that all of the tests work in server-mode and configured that to run on Travis going forward. As the projects moves forward, I see server mode becoming the primary way to use Moto and providing a few helpers for various programming languages.
- Drop python 2.6
- Moto APIs
- In the past, I’ve been hesitant to start adding custom APIs to manipulate state. I’m coming around on it 😃
- Reset API: I’ve added a reset API to flush all of the current data
requests.post("http://motoapi.amazonaws.com/moto-api/reset")
. - Exceptions: I’m looking to add a similar endpoint to force Moto to raise exceptions. Maybe
requests.post("http://motoapi.amazonaws.com/moto-api/set-next-error", data={"status_code": 400, "body": "Throttling Error: too many requests"})
. The subsequent request would then return a 400 response with the designated response body. I would like a better way than this, but can’t think of anything.
- Dashboard: A very basic dashboard to be able to see the current state of the system would be nice (list instances, queues, etc).
Feedback welcome.
The deprecation of HTTPretty and cleanup of the server mode is already available on a branch. If anyone is able to give that branch a test and report any issues, it would be very much appreciated.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Like to propose the idea of infrastructure failures being added ...
Such as an ERROR on volume state or API limit request exceeded. It woul... ... [Feedback Requested] Moto 1.0 Plan #848.
Read more >Advance calling 1.0 Moto X 2014 - Verizon Community
Have a phone you love? Get up to $500 when you bring your phone. $500 via Verizon e-gift card (sent w/in 8 wks)....
Read more >Why am I receiving "Can't connect to Internet" error?
† If you purchase Moto Care Accident Protection within 30 days of receiving your device, coverage begins on the date you purchased your...
Read more >Write a Review - Botta Moto Works
Thank you for writing a review. We value feedback from our customers. Your review will help us to improve our service and help...
Read more >Motorola DROID review | Engadget
It's hard to look at the DROID without looking at the company which brought the device to life.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As of now, there will be no plans to completely eliminate a Python decorator from Moto (it is still how I use Moto).
I agree that a header-based approach to exceptions sounds much better. Thanks!
Since version
1.0.0
was released, I’m going to close this. Please open issues for any feedback on the release or other feature ideas.