Skip to content
Snippets Groups Projects
  1. Feb 06, 2023
    • Oleg Chaplashkin's avatar
      test: fix import and usage luatest module · 98dd8e69
      Oleg Chaplashkin authored
      After adding the autorequiring luatest [1,2], there is no need to use
      the following approach now:
      
      ```
      local t = require('luatest')
      local g = t.group()
      
      server:exec(function()
          local t = require('luatest') -- duplicate
          t.assert(...)
      end)
      ```
      
      Modern approach looks like:
      
      ```
      local t = require('luatest')
      local g = t.group()
      
      -- `t` already available in the remote server
      server:exec(function() t.assert(...) end)
      
      -- also it works with any variable
      local my_custom_t = require('luatest')
      
      server:exec(function()
          my_custom_t.assert(...) -- already available
      end)
      ```
      
      [1] tarantool/luatest#277
      [2] tarantool/luatest#289
      
      Part of tarantool/luatest#233
      
      NO_DOC=test fix
      NO_TEST=test fix
      NO_CHANGELOG=test fix
      98dd8e69
  2. Dec 05, 2022
    • Yaroslav Lobankov's avatar
      test: use luatest modules instead of internal ones · 21fc0770
      Yaroslav Lobankov authored
      Some internal modules have been recently copied to luatest repo [1,2]
      and now they can be safely removed, and the corresponding functionality
      from luatest can be used instead.
      
      Affected modules:
      
      - test/luatest_helpers/server.lua
      
      [1] tarantool/luatest#258
      [2] tarantool/luatest#266
      
      Closes tarantool/luatest#239
      
      NO_DOC=testing stuff
      NO_TEST=testing stuff
      NO_CHANGELOG=testing stuff
      21fc0770
  3. Nov 24, 2022
    • Vladimir Davydov's avatar
      box: include field number into ER_WRONG_SPACE_FORMAT message · 12b7a357
      Vladimir Davydov authored
      Currently, we include the bad field number into the error message
      manually, using tt_sprintf, which looks cumbersome. For some fields,
      we don't include it at all (e.g. invalid constraint definition).
      Let's include it into the error message format instead.
      
      Part of #7933
      
      NO_DOC=verbosity
      NO_CHANGELOG=later
      12b7a357
  4. Nov 02, 2022
  5. Apr 28, 2022
    • Vladimir Davydov's avatar
      test: add skip_if_enterprise luatest helper · d2b216e8
      Vladimir Davydov authored
      The helper skips a running test with luatest.skip_if in case executed by
      Tarantool Enterprise. It's better than checking the package directly in
      the test, because luatest.skip_if prints the reason why the test is
      skipped.
      
      NO_DOC=test
      NO_CHANGELOG=test
      d2b216e8
  6. Apr 21, 2022
    • Vladimir Davydov's avatar
      alter: raise ER_WRONG_SPACE_FORMAT instead of ER_CREATE/ALTER_SPACE · 6845a705
      Vladimir Davydov authored
      This is needed to factor out the function that decodes space format so
      that it can be used for online space upgrade. It's not a big deal,
      because we already use ER_WRONG_SPACE_OPTIONS if space options specified
      on space creation/alter are wrong so using ER_WRONG_SPACE_FORMAT would
      only be consistent.
      
      NO_DOC=minor change in error message
      NO_CHANGELOG=minor change in error message
      6845a705
  7. Mar 03, 2022
    • mechanik20051988's avatar
      alter: implement ability to set compression for tuple fields · a51313a4
      mechanik20051988 authored
      Implement ability to set compression for tuple fields. Compression type
      for tuple fields is set in the space format, and can be set during space
      creation or during setting of a new space format.
      ```lua
      format = {{name = 'x', type = 'unsigned', compression = 'none'}}
      space = box.schema.space.create('memtx_space', {format = format})
      space:drop()
      space = box.schema.space.create('memtx_space')
      space:format(format)
      ```
      For opensource build only one compression type ('none') is
      supported. This type of compression means its absence, so
      it doesn't affect something.
      
      Part of #2695
      
      NO_CHANGELOG=stubs for enterprise version
      NO_DOC=stubs for enterprise version
      a51313a4
Loading