Skip to content

Commit 8e9476e

Browse files
authored
Add CheckMultiDBSupport support to testkit backend (#521)
Add CheckMultiDBSupport request and MultiDBSupport response support to testkit backend
1 parent 23f59ed commit 8e9476e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

testkitbackend/requests.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ def VerifyConnectivity(backend, data):
6565
backend.send_response("Driver", {"id": driver_id})
6666

6767

68+
def CheckMultiDBSupport(backend, data):
69+
driver_id = data["driverId"]
70+
driver = backend.drivers[driver_id]
71+
backend.send_response(
72+
"MultiDBSupport",
73+
{"id": backend.next_key(), "available": driver.supports_multi_db()}
74+
)
75+
76+
6877
def resolution_func(backend):
6978
def resolve(address):
7079
key = backend.next_key()

0 commit comments

Comments
 (0)