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
This commit is contained in:
parent
4b1c7225b6
commit
869b3c45c1
12 changed files with 491 additions and 9 deletions
21
tests/test_mediaconnect/test_server.py
Normal file
21
tests/test_mediaconnect/test_server.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import sure # noqa
|
||||
|
||||
import moto.server as server
|
||||
from moto import mock_mediaconnect
|
||||
|
||||
"""
|
||||
Test the different server responses
|
||||
"""
|
||||
|
||||
|
||||
@mock_mediaconnect
|
||||
def test_mediaconnect_list_flows():
|
||||
backend = server.create_backend_app("mediaconnect")
|
||||
test_client = backend.test_client()
|
||||
|
||||
res = test_client.get("/v1/flows")
|
||||
|
||||
result = res.data.decode("utf-8")
|
||||
result.should.contain('"flows": []')
|
||||
Loading…
Add table
Add a link
Reference in a new issue