2022-01-25 20:01:03 +00:00
|
|
|
import json
|
|
|
|
|
|
|
|
import moto.server as server
|
2023-11-30 15:55:51 +00:00
|
|
|
from moto import mock_mq
|
2022-01-25 20:01:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
@mock_mq
|
|
|
|
def test_mq_list():
|
|
|
|
backend = server.create_backend_app("mq")
|
|
|
|
test_client = backend.test_client()
|
|
|
|
|
|
|
|
resp = test_client.get("/v1/brokers")
|
2023-08-15 07:59:14 +00:00
|
|
|
assert resp.status_code == 200
|
|
|
|
assert json.loads(resp.data) == {"brokerSummaries": []}
|