Add moto reset API.
This commit is contained in:
parent
fe46b4c5b9
commit
cb28eeefbb
6 changed files with 71 additions and 3 deletions
|
|
@ -366,6 +366,14 @@ def metadata_response(request, full_url, headers):
|
|||
return 200, headers, result
|
||||
|
||||
|
||||
class MotoAPIResponse(BaseResponse):
|
||||
|
||||
def reset_response(self, request, full_url, headers):
|
||||
from .models import moto_api_backend
|
||||
moto_api_backend.reset()
|
||||
return 200, {}, json.dumps({"status": "ok"})
|
||||
|
||||
|
||||
class _RecursiveDictRef(object):
|
||||
"""Store a recursive reference to dict."""
|
||||
def __init__(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue