Skip to content
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

`verify!': Пользователь ИБ не идентифицирован #2

Open
leoniv opened this issue Jun 2, 2017 · 0 comments
Labels

Comments

@leoniv
Copy link
Owner

leoniv commented Jun 2, 2017

Если для базы которая должна быть создана по шаблону указать имя пользователя

AssTests::InfoBases.describe do
  file :test_ib do
    template 'infobase_dump.dt'
    user 'user'
    password 'pass'
  end
end

при заливке шаблона получиться ``verify!': Пользователь ИБ не идентифицирован`

 (AssLauncher::Support::Shell::RunAssResult::RunAssError)her/support/shell.rb:323:in `verify!': Пользователь ИБ не идентифицирован
        from /home/vlv/.gem/ruby/gems/ass_maintainer-info_base-0.1.2/lib/ass_maintainer/info_base.rb:314:in `restore!'
        from /home/vlv/.gem/ruby/bundler/gems/ass_tests-d4a64017633d/lib/ass_tests/info_bases/info_base.rb:134:in `load_dt'
        from /home/vlv/.gem/ruby/bundler/gems/ass_tests-d4a64017633d/lib/ass_tests/info_bases/info_base.rb:119:in `load_template'
        from /home/vlv/.gem/ruby/bundler/gems/ass_tests-d4a64017633d/lib/ass_tests/info_bases/info_base.rb:56:in `load_template!'
        from /home/vlv/.gem/ruby/bundler/gems/ass_tests-d4a64017633d/lib/ass_tests/info_bases/info_base.rb:47:in `make_infobase!'
        from /home/vlv/.gem/ruby/gems/ass_maintainer-info_base-0.1.2/lib/ass_maintainer/info_base.rb:154:in `make'
        from /home/vlv/.gem/ruby/bundler/gems/ass_tests-d4a64017633d/lib/ass_tests/info_bases.rb:313:in `[]'
        from bin/tech_inv.main.rb:204:in `<module:Test>'
        from bin/tech_inv.main.rb:186:in `<main>'

Причина в том, что пустая база в которую заливается шаблон еще не имеет пользователя.

Как обойти эту ошибку

Задать пользователя, если необходимо, после создания базы

    AssTests::InfoBases.describe do
      file :test_ib do
        template 'infobase_dump.dt'
      end
    end

    TEST_INFOBASE = AssTests::InfoBases[:test_ib]
    TEST_INFOBASE.rebuild! :yes
    TEST_INFOBASE.usr = 'user'
    TEST_INFOBASE.pwd = 'pass'

Возможно проблему надо решать не здесь, а в ass_maintainer-info_base

@leoniv leoniv added the bug label Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant