Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1661589

Summary: mod_auth_gssapi: python3 test suite
Product: Red Hat Enterprise Linux 8 Reporter: Robbie Harwood <rharwood>
Component: mod_auth_gssapiAssignee: Robbie Harwood <rharwood>
Status: CLOSED ERRATA QA Contact: anuja <amore>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: amore, bnater
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.1   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/modauthgssapi/mod_auth_gssapi/pull/193
Whiteboard:
Fixed In Version: mod_auth_gssapi-1.6.1-3.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 20:41:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1682259, 1690074    
Bug Blocks:    
Attachments:
Description Flags
test console logs none

Description Robbie Harwood 2018-12-21 17:00:37 UTC
mod_auth_gssapi's test suite currently fails mysteriously when run with python3.  Apply fixes so that it's workable.

Comment 11 anuja 2019-07-23 07:06:58 UTC
Verified using :
---------------------------------------------------
Modified mod_auth_gssapi/Sanity/upstream/runtest.sh

[root@vm-idm-003 upstream]# diff runtest.sh /tmp/runtest.sh 

< PYTHON=${PYTHON:-python}
---
> PYTHON=${PYTHON:-python3}
52,54c52,55
<         # change shebang to use /usr/bin/python2
<         for test in tests/t_*; do sed -i 's#/usr/bin/env python#/usr/bin/python2#' $test; done
<         rlRun "pip2 install requests_gssapi" 0
---
>         # change shebang to use /usr/bin/python3
>         for test in tests/t_*; do sed -i 's#/usr/bin/env python#/usr/bin/python3#' $test; done
>         rlRun "dnf install -y python3-gssapi" 0
>         rlRun "pip3 install --user requests_gssapi enum34" 0
65c66
<         rlRun "pip2 uninstall -y requests_gssapi gssapi decorator enum34" 0
---
>         rlRun "pip3 uninstall -y requests_gssapi gssapi decorator enum34" 0

------------------------------------------------------------------------------------------

[root@vm-idm-003 upstream]# rpm -qa  mod_auth_gssapi
mod_auth_gssapi-1.6.1-6.el8.x86_64

[root@vm-idm-003 upstream]# 

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 12:01:32 ] :: [  BEGIN   ] :: Running upstream test suite :: actually running '/usr/bin/python3 tests/magtests.py --so-dir /usr/lib64/httpd/modules/'
SPNEGO: SUCCESS
SPNEGO Proxy Auth: SUCCESS
SPNEGO No Auth: SUCCESS
SPNEGO Rewrite: SUCCESS
SPNEGO Negotiate Once: SUCCESS
HOSTNAME ACCEPTOR: SUCCESS
BAD ACCEPTOR: SUCCESS
Required Name Attr: SUCCESS
BASIC-AUTH: SUCCESS
BASIC-AUTH Two Users: SUCCESS
BASIC Fail Second User: SUCCESS
BASIC Proxy Auth: SUCCESS
NO Negotiate: SUCCESS
:: [ 12:01:45 ] :: [   PASS   ] :: Running upstream test suite (Expected 0, got 0)
:: [ 12:01:45 ] :: [   PASS   ] :: File '/var/tmp/rlRun_LOG.4uTK0kM2' should contain 'SUCCESS' 
:: [ 12:01:45 ] :: [   PASS   ] :: File '/var/tmp/rlRun_LOG.4uTK0kM2' should not contain 'FAILED' 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 13s
::   Assertions: 3 good, 0 bad
::   RESULT: PASS (Test)

Comment 12 anuja 2019-07-23 07:09:23 UTC
Created attachment 1592758 [details]
test console logs

Comment 14 errata-xmlrpc 2019-11-05 20:41:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3324