Skip to content

Clean up excessive test setup #132

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 1 commit into from
Jan 13, 2022
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
22 changes: 0 additions & 22 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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