From 566d72e6d3fff857b7a888b97c7e875d38ee2b87 Mon Sep 17 00:00:00 2001 From: Georgy Moiseev Date: Thu, 13 Jan 2022 17:36:37 +0300 Subject: [PATCH] Clean up excessive test setup After moving UUID-related code (including tests) in PR #104 to separate folder, test setup of UUID space was remained in main folder config.lua by mistake. This patch removes it. Closes #128 --- config.lua | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/config.lua b/config.lua index 96017160c..c2a9ae966 100644 --- a/config.lua +++ b/config.lua @@ -60,25 +60,3 @@ local console = require 'console' console.listen '0.0.0.0:33015' --box.schema.user.revoke('guest', 'read,write,execute', 'universe') - --- Create space with UUID pk if supported -local uuid = require('uuid') -local msgpack = require('msgpack') - -local uuid_msgpack_supported = pcall(msgpack.encode, uuid.new()) -if uuid_msgpack_supported then - local suuid = box.schema.space.create('testUUID', { - id = 524, - if_not_exists = true, - }) - suuid:create_index('primary', { - type = 'tree', - parts = {{ field = 1, type = 'uuid' }}, - if_not_exists = true - }) - suuid:truncate() - - box.schema.user.grant('test', 'read,write', 'space', 'testUUID', { if_not_exists = true }) - - suuid:insert({ uuid.fromstr("c8f0fa1f-da29-438c-a040-393f1126ad39") }) -end