2023-08-15 08:05:53 +00:00
|
|
|
"""Test the different server responses."""
|
2022-04-18 20:44:56 +00:00
|
|
|
import json
|
2023-11-30 15:55:51 +00:00
|
|
|
|
2021-10-30 11:12:08 +00:00
|
|
|
import moto.server as server
|
|
|
|
|
|
|
|
|
|
|
|
def test_list_virtual_clusters():
|
|
|
|
backend = server.create_backend_app("emr-containers")
|
|
|
|
test_client = backend.test_client()
|
|
|
|
|
|
|
|
res = test_client.get("/virtualclusters")
|
|
|
|
|
2023-08-15 08:05:53 +00:00
|
|
|
assert "virtualClusters" in json.loads(res.data)
|