moto/tests/test_glacier/test_server.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
372 B
Python
Raw Normal View History

2015-06-04 02:55:07 +00:00
import json
import moto.server as server
2024-01-07 12:03:33 +00:00
from moto import mock_aws
2015-06-04 02:55:07 +00:00
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
2024-01-07 12:03:33 +00:00
@mock_aws
2015-06-04 02:55:07 +00:00
def test_list_vaults():
backend = server.create_backend_app("glacier")
test_client = backend.test_client()
res = test_client.get("/1234bcd/vaults")
assert json.loads(res.data.decode("utf-8")) == {"Marker": None, "VaultList": []}