Skip to content
Snippets Groups Projects
Select Git revision
  • 351dbb1ded66be91a863ab34c752b2a19f6bd807
  • 2.11.5-picodata default protected
  • ipotemin/trigger-binding
  • picodata-25.4
  • astrochuk/fiber-stack-addr
  • mlaletin/ci-tarantool-module protected
  • astrochuk/remove-rows
  • artshmelev/try-remove-condition-replicaset_connect_quorum
  • kusancho/fiber_stack_report
  • e.dmitriev/osx-arm-build-fix
  • nnk/warning-limit-and-iproto-executor
  • kdy/ci_build_with_tag protected
  • nnk/iproto-emergency-executor
  • nnk/add-vdbe-soft-limit
  • origin/picodata-25.3
  • artshmelev/debug-tls
  • v.klimenko/box_index_iterator_with_offset
  • picodata-25.3
  • funbringer/2.11.5-fix-select-param-having
  • max/new-cache2
  • nnk/expose-actual-vdbe-opcode-count
  • 2.11.5.283 protected
  • 2.11.5.266 protected
  • 2.11.5.265 protected
  • 2.11.5.254 protected
  • 2.11.5.253 protected
  • 2.11.5.233 protected
  • 2.11.5.230 protected
  • 2.11.5.228 protected
  • 2.11.5.226 protected
  • 2.11.5.225 protected
  • 2.11.5.223 protected
  • 2.11.5.221 protected
  • 2.11.5.220 protected
  • 2.11.5.219 protected
  • 2.11.5.218 protected
  • 2.11.5.217 protected
  • 2.11.5 protected
  • 2.11.2.159 protected
  • 2.11.4 protected
  • 2.11.2.155 protected
41 results

downgrade_helper.lua

Blame
  • fix-passing-password-instead-of-user-name-in-box-passwd_test.lua 800 B
    local server = require('luatest.server')
    local t = require('luatest')
    
    local g = t.group()
    
    g.before_all(function()
        g.server = server:new({alias = 'master'})
        g.server:start()
    end)
    
    g.after_all(function()
        g.server:stop()
    end)
    
    g.test_box_password_without_username_argument = function()
        t.assert(g.server:exec(function()
            box.cfg{auth_type='md5'}
            local user = 'admin'
            local pass = 'dwsadwaeaDSdawDsa321_#!$'
            box.session.su(user)
            local hash = box.space._user:select(1)[1][5]['md5']
            t.assert_not_equals (hash, box.schema.user.password(pass, user))
            box.schema.user.passwd(pass)
            hash = box.space._user:select(1)[1][5]['md5']
            t.assert_equals(hash, box.schema.user.password(pass, user))
            return true
        end))
    end