From b2485a615029a1d179803d78576d63c558bfcaa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hunor=20Csomort=C3=A1ni?= Date: Fri, 6 Dec 2019 12:30:10 +0100 Subject: [PATCH] Tests: fix koji.PathInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should use "topurl". Remove the "weburl" config as it's not needed anymore. Signed-off-by: Hunor Csomortáni --- tests/integration/example.test.env.yaml | 1 - tests/integration/utils.py | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/integration/example.test.env.yaml b/tests/integration/example.test.env.yaml index 595494b2..b364754e 100644 --- a/tests/integration/example.test.env.yaml +++ b/tests/integration/example.test.env.yaml @@ -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. diff --git a/tests/integration/utils.py b/tests/integration/utils.py index 5f76572d..d5a71a67 100644 --- a/tests/integration/utils.py +++ b/tests/integration/utils.py @@ -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