Implementation of core AWS Media Live endpoins (#3428)
* Initial attempt to mock AWS Media Live create_channel endpoint. Test fails. * Completes basic implementation of Media Live create_channel endpoint * Completes basic implementation of Media Live list_channels endpoint * Adds skaffolds for describe_channel and delete_channel * Adds unit test for delete_channel * Adds unit test for describe_channel * Reduces repetitive code by introducing a Channel model * Implements MediaLive start_channel and stop_channel endpoints * Fixes lack of support for the dash character in resource ARNs * Implements MediaLive update_channel endpoint. * Implements MediaLive create_input endpoint (and Input model). * Implements MediaLive describe_input endpoint. * Implements MediaLive list_inputs endpoint. * Implements MediaLive update_input endpoint. * Addse server tests for MediaLive * Adds further url patterns for medialive * Fixes url patterns * Fixes url patterns
This commit is contained in:
parent
02ac5ca111
commit
f11e3183bb
11 changed files with 877 additions and 14 deletions
32
tests/test_medialive/test_server.py
Normal file
32
tests/test_medialive/test_server.py
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import sure # noqa
|
||||
|
||||
import moto.server as server
|
||||
from moto import mock_medialive
|
||||
|
||||
"""
|
||||
Test the different server responses
|
||||
"""
|
||||
|
||||
|
||||
@mock_medialive
|
||||
def test_medialive_list_channels():
|
||||
backend = server.create_backend_app("medialive")
|
||||
test_client = backend.test_client()
|
||||
|
||||
res = test_client.get("/prod/channels")
|
||||
|
||||
result = res.data.decode("utf-8")
|
||||
result.should.contain('"channels": []')
|
||||
|
||||
|
||||
@mock_medialive
|
||||
def test_medialive_list_inputs():
|
||||
backend = server.create_backend_app("medialive")
|
||||
test_client = backend.test_client()
|
||||
|
||||
res = test_client.get("/prod/inputs")
|
||||
|
||||
result = res.data.decode("utf-8")
|
||||
result.should.contain('"inputs": []')
|
||||
Loading…
Add table
Add a link
Reference in a new issue