moto/tests/test_es/test_server.py
2021-12-20 11:51:59 -01:00

14 lines
352 B
Python

import json
import sure # noqa # pylint: disable=unused-import
import moto.server as server
def test_es_list():
backend = server.create_backend_app("es")
test_client = backend.test_client()
resp = test_client.get("/2015-01-01/domain")
resp.status_code.should.equal(200)
json.loads(resp.data).should.equals({"DomainNames": []})