mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-13 18:09:47 +08:00
Tests: fix koji.PathInfo
This should use "topurl". Remove the "weburl" config as it's not needed anymore. Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
This commit is contained in:
@@ -9,7 +9,6 @@ mbs_api: https://mbs.fedoraproject.org/module-build-service/2/module-builds/
|
||||
koji:
|
||||
server: https://koji.fedoraproject.org/kojihub
|
||||
topurl: https://kojipkgs.fedoraproject.org/
|
||||
weburl: https://brewweb.stage.engineering.redhat.com/brewroot
|
||||
# Test data to be used by the tests.
|
||||
# Items in here are mapped by their name to the tests that use them.
|
||||
# For example test_scratch_build will use scratch_build.
|
||||
|
||||
@@ -20,17 +20,15 @@ class Koji:
|
||||
|
||||
:attribute string _server: URL of the Koji hub
|
||||
:attribute string _topurl: URL of the top-level Koji download location
|
||||
:attribute string _weburl: URL of the web interface
|
||||
:attribute koji.ClientSession _session: Koji session
|
||||
:attribute koji.PathInfo _pathinfo: Koji path
|
||||
"""
|
||||
|
||||
def __init__(self, server, topurl, weburl):
|
||||
def __init__(self, server, topurl):
|
||||
self._server = server
|
||||
self._topurl = topurl
|
||||
self._weburl = weburl
|
||||
self._session = koji.ClientSession(self._server)
|
||||
self._pathinfo = koji.PathInfo(self._weburl)
|
||||
self._pathinfo = koji.PathInfo(self._topurl)
|
||||
|
||||
def get_build(self, nvr_dict):
|
||||
"""Koji build data for NVR
|
||||
|
||||
Reference in New Issue
Block a user