From 0614c0a5f9fce9fbda8653bd0553c25a5b54038c Mon Sep 17 00:00:00 2001 From: Georgy Moiseev Date: Thu, 18 May 2023 16:08:29 +0300 Subject: [PATCH] test: fix compatibility with Tarantool master New Tarantool 3.0 patch introduces a breaking change [1]. This patch adds a compatibility layer to test instance. 1. https://github.com/tarantool/tarantool/pull/8289 Closes #293 --- test/suites/crud_server.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/suites/crud_server.lua b/test/suites/crud_server.lua index 55d4fc48..8bb58fcb 100644 --- a/test/suites/crud_server.lua +++ b/test/suites/crud_server.lua @@ -1,5 +1,13 @@ #!/usr/bin/env tarantool +local function replicaset_uuid() + if box.info().replicaset ~= nil and box.info().replicaset.uuid ~= nil then + return box.info().replicaset.uuid + end + + return box.info().cluster.uuid +end + local function configure_crud_instance(primary_listen, crud, vshard) box.schema.create_space( 'tester', { @@ -30,7 +38,7 @@ local function configure_crud_instance(primary_listen, crud, vshard) local cfg = { bucket_count = 300, sharding = { - [box.info().cluster.uuid] = { + [replicaset_uuid()] = { replicas = { [box.info().uuid] = { uri = uri,