From cd291bd8c82e0c7a187b2507f13c255310cf390b Mon Sep 17 00:00:00 2001 From: Rouven Bauer Date: Wed, 21 Apr 2021 15:14:20 +0200 Subject: [PATCH] Testkit: send server info with summary --- testkitbackend/requests.py | 10 ++++++++-- testkitbackend/skipped_tests.json | 2 -- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/testkitbackend/requests.py b/testkitbackend/requests.py index eb3fe73c..c9e01cf8 100644 --- a/testkitbackend/requests.py +++ b/testkitbackend/requests.py @@ -289,8 +289,14 @@ def ResultNext(backend, data): def ResultConsume(backend, data): result = backend.results[data["resultId"]] - result.consume() - backend.send_response("Summary", {}) + summary = result.consume() + backend.send_response("Summary", { + "serverInfo": { + "protocolVersion": + ".".join(map(str, summary.server.protocol_version)), + "agent": summary.server.agent + } + }) def RetryablePositive(backend, data): diff --git a/testkitbackend/skipped_tests.json b/testkitbackend/skipped_tests.json index 4adc212f..c80c2a81 100644 --- a/testkitbackend/skipped_tests.json +++ b/testkitbackend/skipped_tests.json @@ -1,6 +1,4 @@ { - "stub.retry.TestRetryClustering.test_retry_ForbiddenOnReadOnlyDatabase_ChangingWriter": - "Closes connection to router after ROUTE", "stub.routing.Routing.test_should_use_resolver_during_rediscovery_when_existing_routers_fail": "DNS resolver not implemented", "stub.routing.RoutingV3.test_should_use_resolver_during_rediscovery_when_existing_routers_fail":