2021-10-21 15:13:43 +00:00
|
|
|
import json
|
|
|
|
|
|
|
|
import moto.server as server
|
2024-01-07 12:03:33 +00:00
|
|
|
from moto import mock_aws
|
2021-10-21 15:13:43 +00:00
|
|
|
|
|
|
|
|
2024-01-07 12:03:33 +00:00
|
|
|
@mock_aws
|
2021-10-21 15:13:43 +00:00
|
|
|
def test_timestreamwrite_list():
|
|
|
|
backend = server.create_backend_app("timestream-write")
|
|
|
|
test_client = backend.test_client()
|
|
|
|
|
|
|
|
headers = {"X-Amz-Target": "Timestream_20181101.ListDatabases"}
|
|
|
|
resp = test_client.post("/", headers=headers, json={})
|
2023-08-14 09:53:02 +00:00
|
|
|
assert resp.status_code == 200
|
|
|
|
assert json.loads(resp.data) == {"Databases": []}
|