2021-12-07 12:09:13 +00:00
|
|
|
import moto.server as server
|
|
|
|
|
|
|
|
|
|
|
|
def test_elasticache_describe_users():
|
|
|
|
backend = server.create_backend_app("elasticache")
|
|
|
|
test_client = backend.test_client()
|
|
|
|
|
|
|
|
data = "Action=DescribeUsers"
|
|
|
|
headers = {"Host": "elasticache.us-east-1.amazonaws.com"}
|
|
|
|
resp = test_client.post("/", data=data, headers=headers)
|
2023-07-20 09:36:20 +00:00
|
|
|
assert resp.status_code == 200
|
|
|
|
assert "<UserId>default</UserId>" in str(resp.data)
|