Skip to content
Snippets Groups Projects
Select Git revision
  • 99d55fe01d92644d1c51daee2fad0a1c9bfaa0b3
  • master default protected
  • ypodlesov/unite-projection
  • max/parse-anonymous-blocks
  • sd/constant
  • docs/server_setup
  • ekhamitov/union-types
  • docs/privileges
  • sd/2244-issue
  • raiondesu/1984-used-tier-memory
  • lomakin/adr-client-bucket-awareness
  • lomakin/insert-query-sharding-metadata
  • 25.4 protected
  • kirovets_doc
  • ekhamitov/1977-remove-additional-child
  • gmoshkin/box-error-improvements
  • astrochuk/explain-fix
  • dkoltsov/support-https
  • docs/config_storage
  • ekhamitov/2365-fix-flaky
  • kostja-check-quorum
  • 25.4.4 protected
  • 25.3.8 protected
  • 25.3.7 protected
  • 25.4.3 protected
  • 25.3.6 protected
  • 25.4.2 protected
  • 25.3.5 protected
  • 25.4.1 protected
  • 25.5.0 protected
  • 25.3.4 protected
  • 25.3.3 protected
  • 25.3.2 protected
  • 25.4.0 protected
  • 25.3.1 protected
  • 25.2.4 protected
  • 25.2.3 protected
  • 25.2.2 protected
  • 25.2.1 protected
  • 25.3.0 protected
  • 25.1.2 protected
41 results

test_http_server.py

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