#4357 Fix two unit test issues
Merged by tkopecek. Opened by mikem.
mikem/koji gssapi-test-stall  into  master

Download 4357.patch

On some systems, the gssapi test can stall when the session is deleted by the gc (trying to make a logout call to a fake hostname).

While fixing this, I also found an intermittent failure caused a test that modifies koji.pathinfo. This could cause future tests to fail path-related assertions.

Both issues fixed by a little extra mocking.

An example of the pathinfo error

tests/test_hub/test_list_archive_files.py::TestListArchiveFiles::test_image_archive FAILED                              [ 59%]
...
>           raise AssertionError(_error_message()) from cause
E           AssertionError: expected call not found.
E           Expected: _get_tarball_list(1, '/mnt/koji/vol/archive_vol/packages/somebuild/1.2.3/1.el6/images/somearchive.zip')
E             Actual: _get_tarball_list(1, '/tmp/tmpcpulut0w/vol/archive_vol/packages/somebuild/1.2.3/1.el6/images/somearchive.zip')

Ah, the latter issue was introduced recently in #4310

Metadata Update from @tkopecek:
- Pull-request tagged with: no_qe

Commit caeac8e7 fixes this pull-request

Pull-Request has been merged by tkopecek

Metadata