Skip to content

test: fix compatibility with Tarantool master #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion test/suites/crud_server.lua
Original file line number Diff line number Diff line change
@@ -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', {
Expand Down Expand Up @@ -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,
Expand Down