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

问题汇总[err]: Arbitrary command gives an error when AUTH is required in tests/unit/auth.tcl #1676

Closed
hqh-cell opened this issue Jul 3, 2023 · 0 comments

Comments

@hqh-cell
Copy link
Contributor

hqh-cell commented Jul 3, 2023

单元测试
[err]: Arbitrary command gives an error when AUTH is required in ##tests/unit/auth.tcl时候,没有正确返回NOAUTH的信息导致测试不通过。
eaacade44b090b5b70cbdb909044acf

问题原因:在

// Initial permission status
void PikaClientConn::AuthStat::Init() {
// Check auth required
stat_ = g_pika_conf->userpass().empty() ? kLimitAuthed : kNoAuthed;
if (stat_ == kLimitAuthed && g_pika_conf->requirepass().empty()) {
stat_ = kAdminAuthed;
}
}

中,只有当配置文件userpass()非空时才会执行NoAuthed。

Unit Test To-Be-Fixed List | 单元测试待修复列表 #1605

hqh-cell added a commit to hqh-cell/pika that referenced this issue Jul 3, 2023
hqh-cell added a commit to hqh-cell/pika that referenced this issue Jul 3, 2023
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this issue Jun 8, 2024
…an error when AUTH is required (OpenAtomFoundation#1680)

* fix: fixed a test error of arbitrary command gives an error when auth is required in auth.tcl

Fixes: OpenAtomFoundation#1676

Signed-off-by: hqh-cell <[email protected]>

* Revert "fix: fixed a test error of arbitrary command gives an error when auth is required in auth.tcl"

This reverts commit 78de65e82e8266f8309884e537e961e497216121.

* fix: fixed a test error of arbitrary command gives an error when auth is required in auth.tcl

    Fixes: OpenAtomFoundation#1676

    Signed-off-by: hqh-cell <[email protected]>

---------

Signed-off-by: hqh-cell <[email protected]>
cheniujh pushed a commit to cheniujh/pika that referenced this issue Sep 24, 2024
…an error when AUTH is required (OpenAtomFoundation#1680)

* fix: fixed a test error of arbitrary command gives an error when auth is required in auth.tcl

Fixes: OpenAtomFoundation#1676

Signed-off-by: hqh-cell <[email protected]>

* Revert "fix: fixed a test error of arbitrary command gives an error when auth is required in auth.tcl"

This reverts commit 78de65e82e8266f8309884e537e961e497216121.

* fix: fixed a test error of arbitrary command gives an error when auth is required in auth.tcl

    Fixes: OpenAtomFoundation#1676

    Signed-off-by: hqh-cell <[email protected]>

---------

Signed-off-by: hqh-cell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant