2021-10-18 19:44:29 +00:00
|
|
|
import sure # noqa # pylint: disable=unused-import
|
2015-01-09 03:18:06 +00:00
|
|
|
|
|
|
|
import moto.server as server
|
|
|
|
from moto import mock_rds
|
|
|
|
|
2019-10-31 15:44:26 +00:00
|
|
|
"""
|
2015-01-09 03:18:06 +00:00
|
|
|
Test the different server responses
|
2019-10-31 15:44:26 +00:00
|
|
|
"""
|
2015-01-09 03:18:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
@mock_rds
|
|
|
|
def test_list_databases():
|
|
|
|
backend = server.create_backend_app("rds")
|
|
|
|
test_client = backend.test_client()
|
|
|
|
|
2019-10-31 15:44:26 +00:00
|
|
|
res = test_client.get("/?Action=DescribeDBInstances")
|
2015-01-09 03:18:06 +00:00
|
|
|
|
|
|
|
res.data.decode("utf-8").should.contain("<DescribeDBInstancesResult>")
|