2015-06-04 02:55:07 +00:00
|
|
|
import json
|
2021-10-18 19:44:29 +00:00
|
|
|
import sure # noqa # pylint: disable=unused-import
|
2015-06-04 02:55:07 +00:00
|
|
|
|
|
|
|
import moto.server as server
|
|
|
|
from moto import mock_glacier
|
|
|
|
|
2019-10-31 15:44:26 +00:00
|
|
|
"""
|
2015-06-04 02:55:07 +00:00
|
|
|
Test the different server responses
|
2019-10-31 15:44:26 +00:00
|
|
|
"""
|
2015-06-04 02:55:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
@mock_glacier
|
|
|
|
def test_list_vaults():
|
|
|
|
backend = server.create_backend_app("glacier")
|
|
|
|
test_client = backend.test_client()
|
|
|
|
|
|
|
|
res = test_client.get("/1234bcd/vaults")
|
|
|
|
|
2017-02-24 02:37:43 +00:00
|
|
|
json.loads(res.data.decode("utf-8")).should.equal({"Marker": None, "VaultList": []})
|