#4431 unit test reads system hub config
Closed: Fixed by mikem. Opened by mikem.

@joev discovered that unit tests fail if there is no local hub config.

E.g.

ERROR    koji:kojixmlrpc.py:793 Traceback (most recent call last):
  File "/home/mikem/Devel/koji/koji/kojihub/kojixmlrpc.py", line 777, in server_setup
    opts = load_config(environ)
  File "/home/mikem/Devel/koji/koji/kojihub/kojixmlrpc.py", line 546, in load_config
    config = koji.read_config_files([cfdir, (cf, True)], raw=True)
  File "/home/mikem/Devel/koji/koji/koji/__init__.py", line 2340, in read_config_files
    raise ConfigurationError("Config file %s can't be opened."
                             % config_file)
koji.ConfigurationError: Config file /etc/koji-hub/hub.conf can't be opened.
================================================= short test summary info =================================================
FAILED tests/test_hub/test_client_session.py::TestClientSession::test_echo - koji.ServerOffline: server startup error

~~I have a fix for this, but cannot file a PR because of a pagure issue~~
https://pagure.io/fedora-infrastructure/issue/12692

Metadata Update from @mikem:
- Custom field Size adjusted to None

Metadata Update from @mikem:
- Issue set to the milestone: 1.36
- Issue tagged with: no_qe

Metadata Update from @mikem:
- Issue untagged with: no_qe

Metadata Update from @mikem:
- Issue tagged with: no_qe

Commit 5619342e fixes this issue

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/4431

Please continue any further discussion there.

Metadata
Related Pull Requests