2015-09-16 14:00:38 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import json
|
|
|
|
import sure # noqa
|
|
|
|
|
|
|
|
import moto.server as server
|
|
|
|
from moto import mock_datapipeline
|
|
|
|
|
|
|
|
'''
|
|
|
|
Test the different server responses
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
@mock_datapipeline
|
|
|
|
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"))
|
|
|
|
json_data.should.equal({
|
2015-09-17 19:18:57 +00:00
|
|
|
'pipelineDescriptionList': []
|
2015-09-16 14:00:38 +00:00
|
|
|
})
|