* write boilerplate code * generate boilerplate code with scaffold script * create mediapackage channel * remove duplicate mediapackage reference * remove Channel key from mediapackage response * describe_channel endpoint added * create_origin_endpoint-added * keys changed to camel case to fix issue * minor changes to clean up * minor clean up again * implement & test delete_channel * delete origin endpoint created; WIP-tests failing * fix delete_origin_endpoint issue * refactor function call * delete origin endpoint completed; test_server tests added * implement and test describe_origin_endpoint * update origin endpoint added * remove print statements * implement test_list_origin_endpoint_succeeds * create test name changed * create test name changed * changes after flake8 and black run * url assertion added to decribe origin endpoint test * region dependent url enabled Co-authored-by: Anya <anya.champaneria@capablue.com> Co-authored-by: AnyaChamp <71766808+AnyaChamp@users.noreply.github.com>
17 lines
412 B
Python
17 lines
412 B
Python
from __future__ import unicode_literals
|
|
from .responses import MediaPackageResponse
|
|
|
|
url_bases = [
|
|
"https?://mediapackage.(.+).amazonaws.com",
|
|
]
|
|
|
|
|
|
response = MediaPackageResponse()
|
|
|
|
|
|
url_paths = {
|
|
"{0}/channels": response.dispatch,
|
|
"{0}/channels/(?P<channelid>[^/.]+)": response.dispatch,
|
|
"{0}/origin_endpoints": response.dispatch,
|
|
"{0}/origin_endpoints/(?P<id>[^/.]+)": response.dispatch,
|
|
}
|