2022-04-18 20:44:56 +00:00
|
|
|
import json
|
2021-10-30 11:12:08 +00:00
|
|
|
import sure # noqa # pylint: disable=unused-import
|
|
|
|
import moto.server as server
|
|
|
|
|
|
|
|
"""
|
|
|
|
Test the different server responses
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
def test_list_virtual_clusters():
|
|
|
|
backend = server.create_backend_app("emr-containers")
|
|
|
|
test_client = backend.test_client()
|
|
|
|
|
|
|
|
res = test_client.get("/virtualclusters")
|
|
|
|
|
2022-04-18 20:44:56 +00:00
|
|
|
json.loads(res.data).should.have.key("virtualClusters")
|