moto/tests/test_datapipeline/test_server.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
512 B
Python
Raw Normal View History

2015-09-16 14:00:38 +00:00
import json
import moto.server as server
2024-01-07 12:03:33 +00:00
from moto import mock_aws
2015-09-16 14:00:38 +00:00
2019-10-31 15:44:26 +00:00
"""
2015-09-16 14:00:38 +00:00
Test the different server responses
2019-10-31 15:44:26 +00:00
"""
2015-09-16 14:00:38 +00:00
2024-01-07 12:03:33 +00:00
@mock_aws
2015-09-16 14:00:38 +00:00
def test_list_streams():
backend = server.create_backend_app("datapipeline")
test_client = backend.test_client()
2015-09-16 14:11:43 +00:00
res = test_client.post(
"/",
2017-02-24 02:37:43 +00:00
data={"pipelineIds": ["ASdf"]},
headers={"X-Amz-Target": "DataPipeline.DescribePipelines"},
)
2015-09-16 14:00:38 +00:00
json_data = json.loads(res.data.decode("utf-8"))
assert json_data == {"pipelineDescriptionList": []}