Bug 1324843 - stress_ refresh test fails in s390x and ppc64 archs
Summary: stress_ refresh test fails in s390x and ppc64 archs
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Pavel Březina
QA Contact: Steeve Goveas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-07 12:44 UTC by Steeve Goveas
Modified: 2016-05-04 13:42 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-04 13:42:16 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Steeve Goveas 2016-04-07 12:44:17 UTC
Description of problem:
function client_sudo_user_is_allowed()
{
    su user1 -c "sudo -u user2 ${*-true}"
}

function client_sudo_user_is_denied()
{
    { ! client_sudo_user_is_allowed "$@"; }
}


for ((i = 1; i<= 5; i++)); do
        server_rule_modify test <<<"\
            replace:            sudoUser
            sudoUser:   user2"
        sleep "0"
        client_sudo_user_is_denied || { status=1; break; }
        server_rule_modify test <<<"\
            replace:            sudoUser
            sudoUser:   user1"
        sleep "2"
        client_sudo_user_is_allowed || { status=1; break; }
    done



::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: stress_refresh
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [  BEGIN   ] :: stress_refresh_attr_user :: actually running 'strict eval 'stress_attr User user2 0 user_is_denied            user1 2 user_is_allowed''
user1 is not in the sudoers file.  This incident will be reported.
user1 is not in the sudoers file.  This incident will be reported.
user1 is not in the sudoers file.  This incident will be reported.
:: [   FAIL   ] :: stress_refresh_attr_user (Expected 0, got 1)

Version-Release number of selected component (if applicable):
sssd-1.13.3-22.el6.s390x

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Jakub Hrozek 2016-04-07 14:06:58 UTC
Pavel agreed he'd take a look.

Comment 6 Jakub Hrozek 2016-05-04 13:42:16 UTC
This turned out to be a bug in tests. Closing.


Note You need to log in before you can comment on or make changes to this bug.