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 - mod_auth_gssapi: python3 test suite
Summary: mod_auth_gssapi: python3 test suite
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: mod_auth_gssapi
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.1
Assignee: Robbie Harwood
QA Contact: anuja
URL: https://github.com/modauthgssapi/mod_...
Whiteboard:
Depends On: 1682259 1690074
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-21 17:00 UTC by Robbie Harwood
Modified: 2020-11-14 08:24 UTC (History)
2 users (show)

Fixed In Version: mod_auth_gssapi-1.6.1-3.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 20:41:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
test console logs (22.21 KB, text/plain)
2019-07-23 07:09 UTC, anuja
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3324 0 None None None 2019-11-05 20:41:36 UTC

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


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