moto/tests/test_medialive/test_server.py
Jordan Dimov f11e3183bb
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
2021-01-19 16:11:39 +00:00

33 lines
712 B
Python

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": []')